> ## Documentation Index
> Fetch the complete documentation index at: https://www.bolna.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Monitor Bolna calls with Agnost AI

> Send finished Bolna calls to Agnost AI through the agent webhook to review transcripts, tag caller intents and check agent turns against your rules.

[Agnost AI](https://agnost.ai) monitors production AI agents. It accepts Bolna's execution webhook and turns each
finished call into a conversation, with an event for every caller and agent exchange. Agnost AI uses the transcript
Bolna sends, so there is no SDK to install and no code to change.

> [!NOTE]
>
> Agnost AI is a separate product with its own account and pricing. You need an
> [Agnost AI account](https://app.agnost.ai) to follow this guide. Agnost AI's own setup guide is
> [Bolna - Agnost AI](https://docs.agnost.ai/bolna).

## Connect an agent to Agnost AI

**1. Copy your Agnost AI organization ID**

Sign in to [app.agnost.ai](https://app.agnost.ai), open **Settings**, and copy the **Organization ID** under
**General**. It is a UUID.

**2. Build the webhook URL**

```text theme={"system"}
https://api.agnost.ai/api/voice/v1/webhooks/bolna?org_id=<your-agnost-org-id>&agent_name=<display-name>
```

`org_id` is required and must be a valid UUID; Agnost AI rejects any other value with `400`.
`agent_name` is optional and must be URL-encoded, for example `Collections%20Agent`. The Bolna payload carries
the agent ID but not the agent's name, so without `agent_name` the agent ID is the agent's name in Agnost AI.

**3. Paste it into the agent's webhook**

Open your agent and go to the **[Extractions Tab](https://www.bolna.ai/docs/agent-setup/analytics-tab.md)**. In the
**Webhook Configuration** card, paste the URL into **Webhook URL** and leave **Trigger on statuses** on
**All statuses (default)**. Click **Save agent**.

**4. Send a test**

Click **Send test**. Bolna posts a sample `completed` payload and shows **Delivered** with the HTTP status
Agnost AI returned. Agnost AI answers the sample with `204` and does not create a conversation from it.

**5. Place a call**

Place or receive a call with the agent. Bolna sends the finished call after post-call processing ends, and it
appears in Agnost AI under **Users** as a session for the caller's number. The conversation's **Metadata** tab
shows Bolna's call details, such as the termination reason, duration, summary and extractions.

**6. Add intents and rules**

On the **Intents** and **Violations** pages in Agnost AI, create the intents to tag caller messages with and the
rules to check agent turns against. Agnost AI classifies each call about 15 minutes after it ends.

You can also set the webhook through the API with [Patch agent](https://www.bolna.ai/docs/api-reference/agent/v2/patch_update.md):

```bash theme={"system"}
curl -X PATCH "https://api.bolna.ai/v2/agent/<agent_id>" \
  -H "Authorization: Bearer $BOLNA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"agent_config": {"webhook_url": "<your-agnost-webhook-url>"}}'
```

Webhooks are set per agent. Repeat these steps for every agent you want to monitor, each with its own `agent_name`.

## Choose which statuses to send

Bolna posts the execution every time the call's status changes, so one call produces several deliveries with the
same `id`. Agnost AI captures the call from its final delivery, after the transcript, cost, summary and extractions
are filled in, and ignores the earlier ones.

Leave **Trigger on statuses** on **All statuses (default)**. The selector only offers `initiated`, `ringing`,
`in-progress`, `call-disconnected`, `completed`, `no-answer`, `busy`, `scheduled` and `queued`, so final statuses
outside that list, such as `stopped` and `error`, reach Agnost AI only when no status is selected. If you narrow the
list, include `completed`.

## If the agent already sends its webhook to your server

An agent has one **Webhook URL**. To keep your own endpoint, leave it as the webhook and have your server forward each
delivery's JSON body to the Agnost AI URL unchanged.

## What Agnost AI does with the payload

Bolna sends the same [execution payload](https://www.bolna.ai/docs/post-call/execution-payload.md) as every other webhook. Agnost AI maps it like
this:

| Bolna field | In Agnost AI |
| - | - |
| `id` | Conversation ID |
| `user_number` | User ID. If it is empty, Agnost AI uses `telephony_data.from_number` on inbound calls and `to_number` on outbound calls, then the execution ID. |
| `transcript` | Caller and agent turns, split on the `user:` and `assistant:` prefixes |
| `initiated_at` | Conversation start time |
| `total_cost` | Conversation cost. Bolna reports it in cents and Agnost AI converts it to USD. |
| `telephony_data.recording_url` | Conversation recording |
| `termination_reason`, `summary`, `extracted_data`, `cost_breakdown` and other call details | Conversation metadata |

Bolna does not send per-turn timestamps, so Agnost AI estimates each turn's timing from `conversation_duration`.
`tool_call_logs` is always empty in the payload, so Bolna conversations have no tool events in Agnost AI.

## Security and privacy

* **Treat the webhook URL as a secret.** Bolna does not sign its webhooks and Agnost AI routes each delivery by the
  `org_id` in the URL, so anyone with the URL can post to your Agnost AI organization.
* **PII masking.** If PII masking is on for your account, Agnost AI receives the masked transcript, summary and
  extractions, and the redacted recording.
* **Phone number masking.** If phone number masking is on for your account, `user_number` arrives masked, for example
  `+919*******10`. Agnost AI uses it as the user ID, so callers whose numbers share the visible digits appear as one
  user.

## Troubleshooting

* **Send test fails:** check that the URL starts with `https://api.agnost.ai` and that `org_id` is a valid UUID.
* **The test passes but calls don't appear:** check that `org_id` matches the organization selected in Agnost AI and
  that **Trigger on statuses** includes `completed`. Agnost AI skips calls where the caller never spoke, such as
  unanswered dials, voicemail and silence timeouts.
* **Check what Bolna delivered:** click **Delivery health** on the agent's Webhook Configuration card to see failed
  deliveries and why. See [Webhook delivery health](https://www.bolna.ai/docs/post-call/webhook-delivery-health.md).

## Next steps

> [card] [Webhooks](https://www.bolna.ai/docs/post-call/polling-call-status-webhooks)
>
> How Bolna sends call updates to your webhook

> [card] [Agnost AI intents and rules](https://docs.agnost.ai/using-intents)
>
> Tag why callers contacted your agent


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.