Skip to main content
Talk to a voice agent in your browser in four commands, then put it on a phone number.

Python starter

Python 3.9+, standard library only.

JavaScript starter

Node 18+, no dependencies.

Step 1: Clone

Step 2: Add your key

Paste your API key into .env:
.env

Step 3: Publish the starter agent

Publishes the starter agent to your account and saves its ID for the next step.

Step 4: Talk to it

Open http://localhost:3000 in Chrome or Edge and start talking.

Put it on a phone number

Twilio passes calls to AssemblyAI over SIP, so there’s no media server or webhook to run. Buy a Twilio number, then add your credentials and a trunk domain you invent:
.env
That creates the SIP trunk on your domain, routes it to AssemblyAI, attaches your number to it, and binds your agent. Every step checks for existing state first, so it’s safe to re-run. Call the number.

Next steps

Every file in agents/ is the request body for POST /v1/agents, sent unchanged. The starter agent is four fields:
agents/minimal.jsonc
Copy the closest file to start your own (cp agents/http-tools.jsonc agents/my-agent.jsonc). Every field is commented. Publish again and both the browser tab and the phone number pick up the change on the next call.
Nine agents ship with each starter. Set AGENT= to pick one:
Values written as ${VAR} in an agent file are substituted at publish time from .env, or from agents/<name>.env for credentials only one agent uses. Both are gitignored, so the JSON is safe to commit.
Deploy the Python or JavaScript starter to Render. It prompts for ASSEMBLYAI_API_KEY and nothing else.Anyone with the URL can start sessions billed to that key.

1. Create

Create a reusable agent with one REST call, then update, list, and delete it.

2. Configure

Shape how it sounds and behaves: prompt, voice, greeting, audio, turn detection, keyterms, tools.

3. Deploy

Connect by agent_id over the API, from a browser, or to a phone number with Twilio.
Or jump straight to a topic: No code at all? Talk to an agent in the Voice Agent playground.