---
title: "Connect"
description: "Integrate Conversational AI with external systems via webhooks and scripts."
canonical: "https://docs.cm.com/conversational-ai/connect"
---

# Connect

> Integrate Conversational AI with external systems via webhooks and scripts.

Source: https://docs.cm.com/conversational-ai/connect

Integrate Conversational AI with your existing systems. Connect enables data exchange between your bot and external services via **webhooks**.

## How it works

When a conversation reaches a point where external data is needed (e.g., checking order status), the bot sends a webhook request to your server. Your server responds with the data, and the bot continues the conversation.

## Key capabilities

| Integration type | Description |
| - | - |
| **Transaction Script Webhook** | Execute custom logic during conversations (e.g., create a booking, update a record) |
| **Context Variable Webhook** | Fetch external data to enrich the conversation (e.g., look up a customer profile) |
| **Custom integrations** | Build tailored connections to any REST API |

## Example: Transaction webhook

Your bot asks a user for their order number, then calls your API to look up the order:

```json
{
  "webhook_url": "https://yourapi.com/orders",
  "method": "POST",
  "body": {
    "order_id": "{{context.order_number}}"
  }
}
```

Your server returns the order details, and the bot uses them in its response:

```json
{
  "status": "shipped",
  "tracking_number": "1Z999AA10123456784",
  "estimated_delivery": "2026-04-20"
}
```
