# Make guide (/docs/make)

CallHuman works in **Make** today with two of its built-in modules: **HTTP** to place the call and **Webhooks** to receive the answer. You build two small scenarios:

1. **The call:** something happens (a new booking, a refund request, an alert) and Make asks CallHuman to phone someone.
2. **The answer:** when the call ends, CallHuman sends the result to Make, and a **Router** sends each answer down its own path.

You need a CallHuman API key (dashboard → **Developers → API keys**).

## 1. Create the webhook that receives the answer [#1-create-the-webhook-that-receives-the-answer]

Start with the second scenario, so you have its URL:

1. Create a scenario and add **Webhooks → Custom webhook** as the trigger.
2. Click **Add**, give it a name like `CallHuman results` and copy the URL Make gives you (`https://hook.eu1.make.com/…`).
3. Leave the scenario open: in step 3 you'll send a test call so Make learns the shape of the result.

## 2. Place the call [#2-place-the-call]

In the first scenario, after your trigger, add **HTTP → Make a request**:

| Field | Value |
|---|---|
| **URL** | `https://api.callhuman.es/v1/calls` |
| **Method** | `POST` |
| **Headers** | `Authorization`: `Bearer ch_live_…` (your API key) |
| **Body type** | Raw, content type **JSON (application/json)** |
| **Request content** | The call, as below |

```json
{
  "to": "+34600111222",
  "language": "en",
  "message": "Hi! This is La Plaza about your table for 4 tonight at 8:30 pm.",
  "options": [
    { "id": "confirm", "label": "Confirm", "reply": "Perfect, see you tonight." },
    { "id": "cancel", "label": "Cancel", "reply": "Done, your booking is cancelled." }
  ],
  "webhook_url": "https://hook.eu1.make.com/your-webhook-id",
  "metadata": { "booking_id": "bk_1042" }
}
```

Map `to`, the message and your own IDs in `metadata` from the previous modules. Put the webhook URL from step 1 in `webhook_url`. Make sends the request, CallHuman answers `202` with the call `id` straight away, and the phone rings a few seconds later.

All fields are explained in [`POST /v1/calls`](/docs/api-reference/createCall). For a one-way message (a code, an alert), leave out `options`.

## 3. Route each answer [#3-route-each-answer]

Back in the scenario with the webhook:

1. Run the call scenario once with your own phone number and answer. The result arrives at the webhook and Make learns its fields: `id`, `status`, `option_id`, `option_label`, `answer_method`, `answer_transcript` and your `metadata`.
2. After the webhook, add a **Router** with one route per answer, each with a filter:

| Route | Filter |
|---|---|
| Confirmed | `option_id` equal to `confirm` |
| Cancelled | `option_id` equal to `cancel` |
| No answer | `status` not equal to `answered` |

3. On each route, do what should happen next: mark the booking, free the table, send an SMS. Use `metadata.booking_id` to find your record.

See every possible `status` in [Webhooks](/docs/webhooks#statuses).

## Tips [#tips]

- **Keep the webhook URL private.** Anyone with it can send data to your scenario. To be extra safe, add a random value to `metadata` (for example `"check": "9f3k…"`) and filter on it in the Router.
- **Retries.** Add `"retries": 2` and `"retry_delay_seconds": 1800` to the request to try again 30 minutes later if nobody answers. The webhook arrives once, when the call has ended.
- **Check a call later.** An **HTTP → Make a request** with `GET https://api.callhuman.es/v1/calls/{id}` and the same `Authorization` header returns the same result.
- **Prefer a single flow that waits for the answer?** That's how our [n8n node](/docs/n8n) works. AI agents can use the [MCP server](/docs/mcp).