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 150+ APIs and use 25,000+ 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
  • 🔄 Model Switching: Switch between multiple models (OpenAI, Google, Anthropic)

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
GOOGLE_GENERATIVE_AI_API_KEY=your_google_api_key
ANTHROPIC_API_KEY=your_anthropic_api_key
Variable Description Required
PICA_SECRET_KEY Your Pica API secret key Yes
OPENAI_API_KEY Your OpenAI API key No
GOOGLE_GENERATIVE_AI_API_KEY Your Google API key No
ANTHROPIC_API_KEY Your Anthropic API key No

Configure one or more model API keys (OPENAI_API_KEY, GOOGLE_GENERATIVE_AI_API_KEY, ANTHROPIC_API_KEY) to enable their respective models. You can switch between any configured models in the UI - while you don't need all three keys set up, having multiple enables more model options. Set as many or as few as you'd like to use.

  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].

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •