Skip to main content
Agnost AI accepts the Atoms 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):
  1. Select New endpoint, give it a name, paste the URL into Endpoint URL, and select Create endpoint.
  2. Select Done, add a subscription, then Add agent, and pick the agent.
  3. Turn on the post-conversation event. Keep Full payload, or choose fields and include at least callData, transcript, and variables.
  4. Select Save.
If the page has a Create button:
  1. Select Create, paste the URL into Endpoint URL, and select Add endpoint.
  2. Open the agent, select the Tools tab, then System triggers, and turn on Webhook.
  3. Pick the endpoint under Webhook endpoint, tick End (post-conversation), and save.
You can subscribe the other events too. Agnost AI acknowledges 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 sends post-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

  1. Place a short test call and say at least one sentence as the caller.
  2. On the new Webhooks page, open the endpoint’s Deliveries tab. The post-conversation delivery shows Succeeded with a 200 response containing "status": "accepted".
  3. 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.
Send test event on the new Webhooks page posts a signed sample to your endpoint. Use it to check that the URL is reachable. Agnost AI handles the sample like a real delivery, so if it is a post-conversation sample with a caller turn, it appears as a conversation.

Troubleshooting

  • Deliveries fail with HTTP_4XX: check that org_id is a valid UUID and that the URL starts with https://api.agnost.ai.
  • Deliveries succeed with 204 and no conversation appears: the delivery was not post-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 variables and callData in the subscription fields so Agnost AI can find the caller’s number on phone calls.

Data mapping

  • metadata.callId becomes the Agnost AI conversation ID.
  • variables.user_number becomes the user ID. If it is missing, Agnost AI uses callData.fromNumber on inbound calls and callData.toNumber on outbound calls, then the call ID.
  • Each transcript turn with role agent or user becomes an agent or caller turn. Each turn starts at its timestamp and ends where the next turn starts. The last turn ends at callData.endTime. The conversation is marked transcript_timing: turn_start.
  • callData.answerTime anchors the conversation start time.
  • agentId, conversationType, callData.callStatus, callDirection, answerTime, endTime, callDuration, the delivery id, and toolCallPayloadsOmitted become conversation metadata. The variables object is stored as JSON.
  • recordingUrl and recordingDualUrl are 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.
If a turn has no 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 captures post-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.