Use Cases
ElevenLabs
Integrating the ElevenLabs Conversational AI Agent with Pica
ElevenLabs Conversational AI Agent Example
Clone the repository to get started with the ElevenLabs Conversational AI Agent.
Getting Started
This example demonstrates how to integrate an ElevenLabs Conversational AI Agent with Pica OneTool.
Clone the repository:
Prerequisites
Before you begin, ensure you have:
- A Pica account
- An ElevenLabs account
- Node.js installed
- ngrok installed (Installation guide)
Setup
1. Create a Pica Connection
- Go to your Pica dashboard.
- Click “Connections” and create a new connection.
2. Retrieve Your Pica Secret Key
- In the Pica dashboard, go to the “Connections” tab.
- Click “Settings” and copy the secret key.
3. Get Your ElevenLabs API Key
- Log in to ElevenLabs.
- Navigate to your API keys and copy your key.
4. Install Dependencies
Run the following command:
5. Start the Server
Run the server locally:
To expose your server to the internet, use ngrok
:
Copy the public URL generated by ngrok
.
Configuration
Create a .env
file and add the following:
Variable | Description | Required |
---|---|---|
PICA_SECRET_KEY | Your Pica API secret key | Yes |
OPENAI_API_KEY | Your OpenAI API key | Yes |
PICA_URL | Your Pica endpoint URL [copied from ngrok] | Yes |
ELEVEN_LABS_API_KEY | Your ElevenLabs API key | Yes |
Create Your ElevenLabs Agent
Run the initialization script:
Once successful, you’ll see:
Copy the provided URL and open it 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 john@doe.com
- 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 for the ElevenLabs Hackathon?
For support, please join the ElevenLabs Discord server!