Talk to your first agent
Create a new voice agent, deploy it and talk to it in under 5 minutes. Then, learn how to make a quick change to customize an agent.
Already created an agent in the Playground?
Other guides might be a better starting point for you.
Deploy and call your first agent
Prerequisites
- ○A free Cartesia account, sign up here.
- ○Access to a terminal on your local machine.
Connect to Cartesia
Authenticate with your Cartesia account. This will prompt you to add an API key from your playground.
Verify authentication succeeded.
Initialize your agent
Link your local template to a Cartesia agent.
You’ll see a success message with a link to your agent in the playground.
Deploy your agent
Deploy your agent to make it available in the playground.
You’ll see deployment progress with a status command to track it.
Talk to your agent
Your agent should deploy in < 1 minute. Use the CLI to have your agent call your phone number.
Or visit the Playground to call your agent from the web interface.
This first agent should only give you canned responses. Next, we’ll enable it to give intelligent responses.
Setup local agent development
Now let’s set up your local environment to iterate on your agent.
Additional Prerequisites
- ○Python 3.9+ installed on your machine.
- ●A Gemini API key (recommended for intelligent responses).(optional)
Customize and redeploy your agent
Let’s customize your agent’s personality and voice to make it truly unique.
Customize your agent
Open config.py
and modify SYSTEM_PROMPT
to set your agent’s personality.
Update the initial message in main.py
in the handle_new_call
function.
(Optional) Set remote environment variables
If you set a Gemini API key earlier, make it available to your deployed agent. Your prompt change will have no effect without this key.
Make sure to run this command in the same terminal where you previously set the GEMINI_API_KEY
environment variable.
Redeploy your changes
Verify that you’re in the simple-chat-example
folder and redeploy your changes.
Check deployment status
Check that your deployment is ready and get your agent URL.
Visit your agent page in the Playground using the URL from the status command.