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:

git clone https://github.com/picahq/awesome-pica.git
cd awesome-pica/elevenlabs-conversational-ai-agent

Prerequisites

Before you begin, ensure you have:

Setup

1. Create a Pica Connection

  1. Go to your Pica dashboard.
  2. Click “Connections” and create a new connection.

2. Retrieve Your Pica Secret Key

  1. In the Pica dashboard, go to the “Connections” tab.
  2. Click “Settings” and copy the secret key.

3. Get Your ElevenLabs API Key

  1. Log in to ElevenLabs.
  2. Navigate to your API keys and copy your key.

4. Install Dependencies

Run the following command:

npm install

5. Start the Server

Run the server locally:

npm start

To expose your server to the internet, use ngrok:

ngrok http 3000

Copy the public URL generated by ngrok.

Configuration

Create a .env file and add the following:

VariableDescriptionRequired
PICA_SECRET_KEYYour Pica API secret keyYes
OPENAI_API_KEYYour OpenAI API keyYes
PICA_URLYour Pica endpoint URL [copied from ngrok]Yes
ELEVEN_LABS_API_KEYYour ElevenLabs API keyYes

Create Your ElevenLabs Agent

Run the initialization script:

./init.sh

Once successful, you’ll see:

Agent created successfully. You can access it at:  
https://elevenlabs.io/app/talk-to?agent_id=<agent_id>

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!