# AI agent actions: let the agent work in your other tools

> An action lets a Whatsable AI agent do something in another system while it chats on WhatsApp: create an order, update a CRM deal, start a Make scenario or a Zap. How actions work, when they run, what the customer sees when one fails, and examples with Make and Zapier.

An **action** is one thing your AI agent can do outside the WhatsApp conversation. You give it a web address (a URL), the inputs it must collect from the customer, and a sentence that says when to use it. When a customer asks for exactly that, the agent fills in the inputs from the conversation and Whatsable calls the URL, then sends the agent's reply.

Because the URL can be a Make scenario, a Zap, an n8n workflow or your own API, one action reaches almost any tool you already use: a calendar, a shop, a CRM, a spreadsheet, a ticketing system.

> [!TIP]
>
> To use Google Calendar, Google Sheets, Slack, Pipedrive, HubSpot or about 3,000 other apps without a webhook, connect the app and add an **app action** instead. An app action can also be a lookup that reads data before the agent replies. See [Connect your apps to the AI agent](/features/ai-chatbot/apps).

## Who can use actions

Actions are on **Pro** and **Agency**, and in the 14-day trial, which includes Pro. They are not on Work, Growth, Bulk Message or the Free plan. See [plans](/features/plans-bulk-message-pro-agency).

Only the owner and Admins create actions and choose which agents may run them. Every teammate who can open a conversation sees the actions the agent ran in it. See [team roles](/features/team-roles).

## Use it for

- **Create an order** in your shop when a customer confirms what they want.
- **Book a meeting**: a Make or Zapier scenario adds the event to your calendar and sends the invite.
- **Update a deal** in your CRM when a lead says their budget or timing.
- **Open a support ticket** with the problem the customer described.
- **Add a row to a spreadsheet** for every qualified lead.

## How an action runs

**The agent decides**

The agent reads its actions with the rest of its settings. When the customer asks for what an action does, and the conversation holds every required input, the agent names the action and writes its inputs. If an input is missing, it asks the customer first.

**Whatsable checks the inputs**

Each input must be one you defined, of the type you set, and every required input must be there. If they do not fit, the action does not run and the agent's reply is still sent.

**Whatsable calls your URL once**

The call happens after the agent has answered and before its reply is sent. A `GET` sends the inputs as query parameters; `POST`, `PUT` and `PATCH` send them as a JSON body. If Whatsable has to ask the AI model again for the same message, it never calls your URL a second time.

**The reply goes out, or a person takes over**

If your URL answers with a success status (2xx), the agent's reply is sent. If the call fails, the reply is not sent: the conversation goes to your team instead. See [When an action fails](#when-an-action-fails).

**The agent sees the result next time**

What your URL answered is stored with the conversation. On its next reply, the agent reads what its earlier actions returned, such as an order number, and can tell the customer.

The agent runs at most one action per answer. It runs one when it replies and also when it hands the conversation to a person: the handover message then plays the reply's role, and an action that fails never changes the handover. It never runs an action when it chooses not to reply or writes a follow-up.

## Set up an action

Open **AI agents**, edit the agent, and open its **Actions** section. An action belongs to your organization, so you can give the same action to several agents.

| Field | What to write |
|-------|---------------|
| Name | A short name your team recognises, such as "Create order". |
| What it does | When the agent should use it, in a sentence or two. The agent reads this to decide, so be specific: "Use when the customer confirms the products and the delivery address." |
| Method | `POST` for most webhooks. `GET`, `PUT` and `PATCH` are also available. |
| URL | The address to call. It must be `https://` and public. |
| Auth header | Optional. A header name and a secret, such as `Authorization` and `Bearer …`, if your API needs one. The secret is stored encrypted and is never shown again. |
| Inputs | Up to 10. Each has a name (letters, digits and underscores), a type (text, number, whole number or yes/no), whether it is required, and an optional description that tells the agent what to put there. |

Then turn on the action for the agents that may run it. An action is never on for an agent until you give it. An organization can hold up to 50 actions, and an agent up to 10.

> [!TIP]
>
> Name inputs the way your scenario expects them, such as `customer_name`, `product`, `quantity` and `delivery_date`. The agent fills in only what the customer said. It never invents a value.

## Example: Make

**Create the scenario**

In Make, create a scenario that starts with the **Webhooks** app and its **Custom webhook** trigger. Add a webhook and copy its address, which looks like `https://hook.eu1.make.com/…`.

**Add the action in Whatsable**

Create an action named "Book a demo", method `POST`, with the Make address as the URL. Add the inputs `customer_name` (text, required), `email` (text, required) and `preferred_time` (text, required, "the day and time the customer chose, in ISO format").

**Teach Make the fields**

In Make, click **Redetermine data structure** on the webhook so it waits for a first request. The agent's test panel never calls your URL, so send that request from a real conversation, or post a sample JSON body with the same field names to the address yourself.

**Finish the scenario**

Add the modules that do the work, for example Google Calendar **Create an event**, mapped from the webhook fields. To give the agent something to tell the customer, end with a **Webhook response** module that returns JSON, such as `{"booked": true, "time": "Tuesday 10:00"}`. Make must answer within 10 seconds.

Without a **Webhook response** module, Make answers `Accepted` as soon as it receives the call, so the action counts as done even if a later module in the scenario fails. Add the response module when the agent must know the outcome.

See [Make](/integration/make) for the rest of what Whatsable does with Make.

## Example: Zapier

**Create the Zap**

In Zapier, create a Zap whose trigger is **Webhooks by Zapier** with the event **Catch Hook**. Copy the webhook URL, which looks like `https://hooks.zapier.com/hooks/catch/…`. Webhooks by Zapier needs a paid Zapier plan.

**Add the action in Whatsable**

Create an action named "Create HubSpot deal", method `POST`, with the Zapier URL. Add the inputs `company` (text, required), `budget` (number) and `decision_date` (text).

**Test the trigger**

Let a real conversation run the action once, or post a sample JSON body with the same field names to the URL. Then click **Test trigger** in Zapier to load the fields.

**Add the steps**

Add the steps that do the work, for example HubSpot **Create Deal**, mapped from the caught fields, and turn the Zap on.

Zapier answers a Catch Hook at once, before the rest of the Zap runs, so the agent learns only that the Zap started. A step that fails later shows in your Zap history, not in Whatsable.

## When an action fails

An action fails when your URL answers with anything other than a success status (2xx), does not answer within 10 seconds, redirects, or cannot be reached. It is handled the same way when Whatsable stops it before calling your URL for a reason the agent could not know about: the conversation reached the limit of 50 action calls in 24 hours, your plan no longer includes actions, or your account is not yet sending on Whatsable.

- **The customer** does not get the reply the agent wrote, because that reply assumed the action worked. They get one message the agent wrote at the same time for this case, saying that it did not go through and that a person will take over. If the agent wrote none, the customer gets no message.
- **Your team** gets the usual [handoff notification](/features/notifications), with the reason *an action it ran in another system failed*, and the conversation waits for a person, as after any handoff.
- **The agent** stops answering in that conversation until someone gives it back, as after any handoff.

Labels, memory and a wake-up the agent asked for in that same reply are not applied either.

An action that does not run because the agent named it wrongly, with inputs that do not fit or an action it is not allowed to run, is not a failure: the agent's reply is sent without it.

> [!WARNING]
>
> Your system should treat a repeated request with care. Whatsable calls your URL at most once per agent reply, but a customer who asks twice can get two replies, and each may run the action.

## Limits

- One action per agent reply.
- 50 action calls per conversation in 24 hours. This only stops a runaway loop, such as an action whose scenario writes back to the same customer. Normal use never reaches it. A reply past the limit goes to your team, as when an action fails.
- 10 seconds for your URL to answer. Up to 64 KB of its answer is read, and only part of it reaches the agent's next reply.
- Only public `https://` addresses. Whatsable never calls a private network address, and never follows a redirect, so the auth header goes only to the address you entered.

## Test an action

The agent's [test panel](/features/ai-chatbot/configuration#test-your-agent) shows the action the agent would run, with its inputs, marked as simulated. It never calls your URL. Inputs that do not fit show the action as not run, as a live reply would.

## Actions in the inbox and the API

- **Inbox.** The decision row of a reply that ran an action shows the action and its outcome. Open it to read the inputs and the result. See [the agent in the inbox](/features/ai-chatbot#the-agent-in-the-inbox).
- **Public API v1.** [List the actions a bot may run](/api-reference/v1/ai-bots/list-ai-bot-actions) returns an agent's actions and their inputs, with the URL's host only, because a Make or Zapier URL carries its secret in the path. The conversation timeline's AI decisions carry `action_runs`. Creating and editing an HTTP action is in the agent editor only. [App actions](/features/ai-chatbot/apps#in-the-api-and-mcp) can also be added, changed and removed through the API.
- **MCP server.** An AI assistant connected through the [MCP server](/mcp) lists an agent's actions with `list_ai_bot_actions`.

## FAQ

<details>
<summary>Which plans include actions?</summary>

Pro and Agency, and the 14-day trial. Growth includes the AI agent, but not actions.

</details>

<details>
<summary>Can the agent read data from my system before it answers?</summary>

Not with an HTTP action. The agent writes its reply before the action runs, so it sees what the action returned on its next reply, not in the same one. An [app action](/features/ai-chatbot/apps#lookups-read-before-the-reply) marked as a lookup runs before the reply, so the agent answers with that data in the same message.

</details>

<details>
<summary>Does a follow-up run actions?</summary>

No. Only a reply to a customer message runs an action. Follow-ups and wake-ups never do.

</details>

<details>
<summary>Is my secret visible to my team or the API?</summary>

No. The auth secret is stored encrypted and never shown again, in the editor, the API or the MCP server. To change it, enter a new one.

</details>

<details>
<summary>Can I use n8n or my own API?</summary>

Yes. Any public `https://` URL works: an n8n Webhook node, your own API, or any service that accepts a request.

</details>

## Next steps

- [Connect your apps](/features/ai-chatbot/apps): 
Let the agent use Google Calendar, Sheets, Slack, Pipedrive and more.

- [Configure an AI agent](/features/ai-chatbot/configuration): 
Every setting in the editor, wake-ups and follow-ups included.

- [AI agents](/features/ai-chatbot): 
What an agent does, and what it remembers about a contact.

- [Make](/integration/make): 
Run Make scenarios on WhatsApp messages, and send templates.

- [Zapier](/integration/zapier): 
Start Zaps from WhatsApp messages and send from a Zap.