---
title: "Connect Make, Zapier, or an API with AI Actions"
description: "Step-by-step guide to letting an AI bot look up live data or trigger background workflows mid-conversation."
---

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

# Connect Make, Zapier, or an API with AI Actions

**AI Actions** let your AI bot call external webhooks (Make, Zapier, n8n, Pabbly, or your own server) or REST APIs while chatting with a visitor, then weave the real result straight into its reply.

You can configure each action in two modes:
- **Instant (sync):** Aminos waits up to 30 seconds for your webhook or API to respond, and the AI replies immediately with the result. Best for order lookups, availability checks, or fast API queries.
- **Background (async):** Your workflow accepts the request, runs a longer process (like booking a calendar slot or searching a slow CRM), and POSTs the result back to Aminos's signed callback URL. The widget shows an animated working indicator and posts the AI's follow-up message as soon as it arrives.

## Part 1: Build an Instant lookup action (Make / Zapier / REST API)

1. **Create the webhook or pick an API endpoint**

- **Make:** Create a scenario starting with **Webhooks → Custom webhook**, add your lookup step (e.g. search Google Sheets or a CRM), and end with **Webhooks → Webhook response** returning a JSON body (HTTP `200`).
- **Zapier:** Create a Zap triggered by **Webhooks by Zapier → Catch Hook** (note: Zapier webhooks respond synchronously with `200` immediately without custom response data, so use **Background** mode for Zapier if you need data sent back into chat).
- **Direct API:** Have your REST URL ready (for example `https://api.example.com/orders/{order_id}`) and any required auth header.
2. **Create the AI Action in Aminos**

   Open **Bot → AI Actions** and click **New Action** (or pick one of the three starter templates on an empty bot).
- **Name:** Clear short name, e.g. `Check order status`.
- **Working indicator text:** What the visitor sees while it runs, e.g. `Checking your order...`.
- **When should the AI use this?:** Be explicit about when to call it and what to ask first (e.g. `"Use when a visitor asks about their order status. Ask for their order number before calling."`).
3. **Define parameters the AI should collect**

   Add up to 15 parameters under **Details the AI collects**:
- **Name:** `order_id`
- **Type:** `string`, `number`, `boolean`, or `choice list` (enum, up to 25 options)
- **Description:** `"The customer's order number, e.g. ORD-1042"`
   - Check **Required** so the AI asks the visitor if it's missing.
4. **Configure Connection and Response handling**

   - Choose **Automation webhook** (POSTs the standard Aminos JSON envelope) or **Direct API call** (`GET`, `POST`, `PUT`, `PATCH`, or `DELETE` with `{param}` URL placeholders).
   - Paste the **URL** and add any **Custom headers** (such as `Authorization: Bearer ...`, up to 15 headers).
   - Select **Instant** response handling and set a timeout between 1 and 30 seconds (default `20` seconds).
   - Optionally enable **Include recent conversation transcript in the payload** (sends the last 20 messages).
   - Click **Save**.
5. **Test the action before going live**

   Click **Test** on the action card, enter sample parameter values, and run it. Aminos executes the real HTTP request and shows the HTTP status, latency, and the exact `ai_sees` output the model will receive.

## Part 2: Use Background mode (async callback) for Make, Zapier, or n8n

Use **Background** mode whenever your workflow takes several seconds or when using Zapier (which cannot return custom data in a Catch Hook response):

1. **Switch Response handling to Background**

   In the action editor, select **Background** and set **Hold the reply up to** (1–30 seconds). If your workflow calls back within that window, the AI uses it right away; otherwise the AI sends an acknowledgement and delivers a follow-up message once the callback arrives.
2. **POST the result back to Aminos's callback URL**

   Every webhook invocation includes the unique signed callback URL in two places:
   - Request header: `X-Aminos-Callback-Url`
   - JSON payload: `run.callback_url`

   At the end of your Zapier, Make, or n8n workflow, add an **HTTP POST** step to that `callback_url` with a JSON body containing the result (for example `{ "booked": true, "time": "Thursday at 2:00 PM" }`). Callbacks remain valid for **30 minutes**.
3. **Check Run history**

   Click **Runs** on the action card to inspect the last 25 executions, including status, inputs, returned output, errors, duration, and the AI's follow-up reply.

:::tip
If your bot is a **Flow bot** using an **AI Assistant** block, remember to check the block's **AI Actions** setting in **Flow Builder** — you can allow **All actions**, **Only selected**, or **None** per block.
:::

See the full technical reference in [AI Actions](/ai/ai-actions).

Source: https://docs.aminos.ai/guides/booking-webhook-bot/index.mdx
