Agents
Agent configuration
This is the shape of an agent. The same shape is used everywhere:
- as the
configwhen you create or update a saved agent, - as the inline
agentwhen you run one in a call.
Learn it once.
The full shape
{
"model": "nirwana-1-flash",
"voiceId": "asha",
"systemPrompt": "You are the receptionist for Sharma Dental. Book appointments and answer questions about hours. Never quote prices.",
"firstMessage": "Hi, thanks for calling Sharma Dental — how can I help?",
"welcomeMessageId": null,
"maxConversationTime": 600,
"tools": [],
"transfer": { "enabled": false },
"endCall": { "enabled": false }
}Only model is required. Everything else is optional.
Fields
| Field | Type | Required | What it does |
|---|---|---|---|
model |
string | yes | The model code. Pick one from Models & voices. This sets the brain, the voice quality, and the per-minute price. |
voiceId |
string | no | Which voice to speak in. Must be a voice that belongs to the model. Defaults to the model's first voice. |
systemPrompt |
string | no | Your instructions — who the agent is, what it does, what it must and must not say. |
firstMessage |
string | no | The first line the agent says when the call connects. Leave it out and the agent opens on its own. Not spoken when welcomeMessageId is set. |
welcomeMessageId |
string | no | Play a pre-recorded greeting at pickup instead of speaking firstMessage. |
maxConversationTime |
number | no | Hard limit in seconds (120–1200). The agent hangs up at this point. No limit if omitted. |
tools |
array | no | Things the agent can do mid-call — look up data, fire a webhook. See Tools. |
transfer |
object | no | Let the agent hand the call to a human. See Transfer & end call. |
endCall |
object | no | Let the agent hang up by itself. See Transfer & end call. |
Picking a model and voice
You pick a model by its code (like nirwana-1-flash) and a voice by its id (like asha). The model decides everything technical — you don't choose anything below it.
Browse the full list, hear each voice, and see prices on the Models & voices page. Or fetch it from the API:
curl https://platform.eurekatechlabs.com/v1/pricing \
-H "Authorization: Bearer ek_live_YOUR_KEY"Every model and voice is ours. You can't bring an outside model.
A minimal agent
The smallest agent that works:
{
"model": "nirwana-1-flash",
"voiceId": "asha",
"systemPrompt": "You are a friendly assistant. Keep replies short."
}A fuller agent
With an opening line, a time cap, a transfer, and auto-hangup:
{
"model": "nirwana-1-flash",
"voiceId": "asha",
"systemPrompt": "You are a support agent for Acme. Help with orders. If the caller is angry or asks for a person, transfer them.",
"firstMessage": "Hi, you've reached Acme support — how can I help?",
"maxConversationTime": 600,
"transfer": {
"enabled": true,
"mode": "always",
"to_number": "+919812345678",
"when": "The caller asks for a human, or you cannot resolve their problem."
},
"endCall": {
"enabled": true,
"when": "The caller says goodbye and has nothing else to ask."
}
}Next
- Saved agents — store this and reuse it
- Inline agents — send it per call
- Tools · Transfer & end call
