post-conversation webhook and turns each finished call into a conversation with an event for every caller and agent exchange. Atoms already provides the transcript with a start time for each turn, so Agnost AI does not run speech-to-text again. No SDK or code change is needed.
Setup takes about five minutes.
Atoms is a hosted platform and does not export OpenTelemetry traces, so this guide uses its webhook instead of an OpenTelemetry setup.
1. Get your organization ID
Sign in to app.agnost.ai, open Settings, and copy the Organization ID under General. It is a UUID.2. Build your webhook URL
agent_name is optional and must be URL-encoded, for example Collections%20Agent. The Atoms payload carries the agent ID but not the agent’s name, so without agent_name the agent ID becomes the agent name in Agnost AI. Use one endpoint per agent if you want each agent to keep its own name.
3. Create the webhook endpoint in Atoms
In the Smallest AI dashboard, open Configure and then Webhooks. Smallest AI is moving organizations to a new Webhooks page in stages, so follow the steps for the page you see. If the page has a New endpoint button (Endpoints, Deliveries, and Audit log tabs):- Select New endpoint, give it a name, paste the URL into Endpoint URL, and select Create endpoint.
- Select Done, add a subscription, then Add agent, and pick the agent.
- Turn on the
post-conversationevent. Keep Full payload, or choose fields and include at leastcallData,transcript, andvariables. - Select Save.
- Select Create, paste the URL into Endpoint URL, and select Add endpoint.
- Open the agent, select the Tools tab, then System triggers, and turn on Webhook.
- Pick the endpoint under Webhook endpoint, tick End (
post-conversation), and save.
pre-conversation and analytics-completed without storing anything.
4. Place a call and find it in Agnost AI
Place or receive a call with the agent. Atoms sendspost-conversation right after the call ends, so the conversation appears within a few seconds of hang-up.
In app.agnost.ai, open Users. Each call is a session for the caller’s number, with the full transcript in the conversation panel. The conversation’s Metadata tab shows the call status, direction, duration, recording location, and agent variables.
5. Add patterns
Agnost AI evaluates the full call against your patterns, including caller needs and agent behavior. Create definitions on the Patterns page, such as “Promise to pay” or “Agent quotes the wrong due amount.” Agnost AI classifies each call automatically about 15 minutes after it ends.Verify
- Place a short test call and say at least one sentence as the caller.
- On the new Webhooks page, open the endpoint’s Deliveries tab. The
post-conversationdelivery showsSucceededwith a200response containing"status": "accepted". - In Agnost AI, open Users and find the caller’s number. The conversation shows each caller and agent exchange at the time it happened in the call.
post-conversation sample with a caller turn, it appears as a conversation.
Troubleshooting
- Deliveries fail with
HTTP_4XX: check thatorg_idis a valid UUID and that the URL starts withhttps://api.agnost.ai. - Deliveries succeed with
204and no conversation appears: the delivery was notpost-conversation, or the caller never spoke. Calls where only the agent spoke are not captured. - Conversations have no transcript: if you chose fields on the subscription, include
transcript. - Calls appear under the call ID instead of a phone number: web calls and chats have no phone numbers. Include
variablesandcallDatain the subscription fields so Agnost AI can find the caller’s number on phone calls.
Data mapping
metadata.callIdbecomes the Agnost AI conversation ID.variables.user_numberbecomes the user ID. If it is missing, Agnost AI usescallData.fromNumberon inbound calls andcallData.toNumberon outbound calls, then the call ID.- Each
transcriptturn with roleagentoruserbecomes an agent or caller turn. Each turn starts at itstimestampand ends where the next turn starts. The last turn ends atcallData.endTime. The conversation is markedtranscript_timing: turn_start. callData.answerTimeanchors the conversation start time.agentId,conversationType,callData.callStatus,callDirection,answerTime,endTime,callDuration, the deliveryid, andtoolCallPayloadsOmittedbecome conversation metadata. Thevariablesobject is stored as JSON.recordingUrlandrecordingDualUrlare stored as metadata. Atoms treats them as stable identifiers; fetch a playable link with the Smallest AI recordings API and your Smallest AI API key.
timestamp, Agnost AI spreads all turns across callDuration in proportion to their length and marks the conversation with transcript_timing: estimated.
The analytics-completed summary and metrics arrive in a separate, later delivery and are not stored. Agnost AI produces its own summary and patterns for each call.
Delivery behavior
Agnost AI capturespost-conversation deliveries where the caller spoke and returns 200. It returns 204 for pre-conversation, analytics-completed, and calls where the caller never spoke, such as unanswered or busy calls. An invalid org_id, or a payload without metadata, its event type, or callId, returns 400. A missing org_id or data that cannot be normalized returns 422. A transcript over 1 MiB (1,048,576 bytes) returns 413. Downstream ingestion failures return 502.
On the new Webhooks page, Atoms retries a failed delivery up to 7 times over about 31 hours, and you can retry or replay deliveries by hand. If the same call is delivered again, Agnost AI returns 200 with "status": "duplicate" and does not store it twice. Captured calls are remembered in memory for 24 hours, so a redelivery after the voice service restarts is stored again. A call whose capture failed is not remembered, so a retry of it is captured. The older Webhooks page does not retry.
Atoms signs every delivery (Webhook-Signature on the new page, X-Signature on the older one). Verifying it requires storing each organization’s Atoms signing secret, so this integration follows the same organization-routing trust model as the other voice webhook adapters and does not verify the signature. Treat the webhook URL as sensitive until per-organization signature verification is available.
References
Next steps
- Conversations: review complete Atoms calls.
- Events: inspect each caller and agent exchange.
- Patterns: understand why callers contacted the agent.