Skip to content

picahq/onetool-demo

Repository files navigation

Pica OneTool Demo Chat App ✨

Pica OneTool in Action

Pica OneTool is a powerful integration layer that seamlessly connects AI with any API. With automatic handling of schema definitions, authentication flows, and execution processes, it eliminates the complexity of API integrations - allowing you to focus on building great experiences.

Overview

A demo chat app showcasing Pica OneTool's capabilities. Built with @picahq/ai and the Vercel AI SDK, it demonstrates how you can use natural language to interact with various APIs directly through a chat interface.

Features

  • 🔌 Universal Integration: Connect with 100+ APIs and use 6000+ actions powered by Pica
  • 🤖 AI-Powered Assistant: Natural language interface that understands your intent
  • 🧠 Smart Execution: Automatically handles prerequisite actions and complex workflows
  • 📊 Knowledge Fetching: Dynamically learns API capabilities and requirements
  • 🔍 Action Observability: View success responses and error messages

Getting Started

  1. Clone the repository:
git clone https://github.com/picahq/onetool-demo.git
cd onetool-demo
  1. Install dependencies:
npm install
  1. Create a .env file in the root directory from the .env.example file:
PICA_SECRET_KEY=your_secret_key
OPENAI_API_KEY=your_openai_api_key
Variable Description Required
PICA_SECRET_KEY Your Pica API secret key Yes
OPENAI_API_KEY Your OpenAI API key Yes
  1. Run the development server:
npm run dev
  1. Open http://localhost:3000 in your browser 🚀

Usage

Here are some example commands you can use to get started:

  • What connections are available?
  • Send an email using gmail to [email protected]
  • Create a new Shopify product
  • Insert a new record into my Postgres database
  • Create a record in Airtable
  • What actions are supported for Attio?
  • Search the web for the best restaurants in SF using Exa

Support

Read more about Pica OneTool in the documentation or contact us at [email protected].