# Webhook – Call Outcome Integration

## VoiceB.ai Webhook – Call Outcome Integration

Webhooks let you receive structured call outcomes, transcripts, and lead data after every call. Use this to:

* Save conversations to your database
* Trigger follow-ups or automations

***

### 🔗 How it Works

1. Configure your webhook URL in **Settings → Integrations**
2. Optionally enable **signature signing** for secure verification
3. VoiceB will POST call result data in real-time

***

### How to Add a Webhook Integration

1. **In your VoiceB account**, go to **Campaigns**.
2. Select the **Agent** you want to configure.
3. Once inside the **Agent Config** (Name, AI Provider, Goal, Script…), scroll down to **Integrations**.
4. Click on the **“+”** button.
5. Choose **Webhook** from the list.
6. You will now see the configuration screen with instructions and examples.

<figure><img src="/files/gWB5EWkyAHorRy5N89a6" alt="" width="563"><figcaption></figcaption></figure>

<figure><img src="/files/CwqmK6gF6Zh8qOC4wTQN" alt="" width="563"><figcaption></figcaption></figure>

<figure><img src="/files/ddABEFJNtF5k7rrRq4GR" alt="" width="563"><figcaption></figcaption></figure>

***

### 📬 Sample Webhook Payload

```json
{
  "agent": "AgentName",
  "from": "+1234567890",
  "to": "+0987654321",
  "status": "SOLD",
  "transcript": [...],
  "collectedData": {
    "name": "John Doe",
    "email": "john.doe@example.com",
    "address": "Calle Ejemplo 123, 45678, Ciudad"
  }
}
```

***

### 🛡️ Signature Verification (Optional)

Header:

```ini
Authorization=Bearer XXXXXXXXXXXXXXXXXX
x-webhook-signature=YYYYYYYYYYYYYYYYYYY
```

Use your **signature secret** to verify the authenticity of the payload.

***

### Trigger Conditions

By setting trigger conditions, you can define specific outcomes that will determine if the integration runs for that call or not. Allowing you to determine which ones ends in your system/CRM

<figure><img src="/files/7m39kocr6LBInN7i7XpG" alt=""><figcaption></figcaption></figure>

### 🧰 Error Codes (Same as API)

***

If you need help setting this up, reach out to <hello@voiceb.ai>

Would you like a diagram to visualize the full API/webhook data flow?&#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.voiceb.ai/webhook-call-outcome-integration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
