Inline agents
An inline agent is sent inside the request — you don't save anything and you get no agt_ id. Best when the config changes on every call, like a per-customer prompt.
It runs exactly like a saved agent. Same result, same price, same webhooks.
The rule: `agentId` or `agent`, never both
Anywhere you'd pass an agentId, you can instead pass an agent object — the agent configuration shape. Send exactly one. Both, or neither, → 400.
On a call
POST /v1/calls — drop the agent object in place of agentId:
curl -X POST https://platform.eurekatechlabs.com/v1/calls \
-H "Authorization: Bearer ek_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"toNumber": "+919876543210",
"fromNumber": "+918008001234",
"agent": {
"model": "nirwana-1-flash",
"voiceId": "asha",
"systemPrompt": "You are calling Priya about her order #4421. Be brief and polite.",
"firstMessage": "Hi Priya, calling about your order."
}
}'await fetch('https://platform.eurekatechlabs.com/v1/calls', {
method: 'POST',
headers: {
'Authorization': 'Bearer ek_live_YOUR_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
toNumber: '+919876543210',
fromNumber: '+918008001234',
agent: {
model: 'nirwana-1-flash',
voiceId: 'asha',
systemPrompt: 'You are calling Priya about her order #4421. Be brief and polite.',
firstMessage: 'Hi Priya, calling about your order.',
},
}),
});This is how you run thousands of personalised calls without saving thousands of agents.
On a Voice Socket
Same idea when you mint a token — pass agent instead of agentId:
curl -X POST https://platform.eurekatechlabs.com/v1/voice/tokens \
-H "Authorization: Bearer ek_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"agent": {
"model": "nirwana-1-flash",
"voiceId": "asha",
"systemPrompt": "You are a helpful in-app assistant."
}
}'See Voice Socket auth for the full token flow.
Saved vs inline — which one?
| Use a saved agent when… | Use an inline agent when… |
|---|---|
| The same agent handles many calls | The prompt/voice changes every call |
| You manage agents in one place | You generate the config on the fly |
You want a stable agt_ id to reference |
You don't want to store anything |
You can mix them freely across calls.
Tools inline
A saved agent gets its tools from your dashboard. An inline agent has no dashboard entry, so it carries its tools in the config — see Tools.
Next
- Agent configuration — the shape you send
- Make a call · Tools
