# Connect your apps to the AI agent

> A Whatsable AI agent can use the apps your business already runs on while it chats on WhatsApp. Switch on ready-made capabilities, such as checking your Google Calendar and booking meetings, alerting your team in Slack, or saving the customer as a HubSpot lead, or set up a custom action in any of about 3,000 apps. The customer confirms every booking before it happens, and a safety check reviews every action before it runs.

Your AI agent can work in the apps your business already uses while it chats on WhatsApp. It checks your Google Calendar and books a meeting the customer picks, tells your team in Slack when a conversation needs them, and saves the customer as a lead in HubSpot. You connect the app's account once and switch on what the agent may do. No webhook, no Make scenario and no code.

There are two ways to give the agent an app:

- **Capabilities.** Ready-made jobs, such as **Book meetings** or **Alert the team**, for Google Calendar, Slack and HubSpot. You switch them on, answer at most one question per app ("Which calendar?"), and the agent does the rest. The safety rules are built in.
- **Custom actions.** The Advanced path, for any of about 3,000 apps. You pick one of the app's own actions and decide, input by input, what you fix and what the agent fills in. See [Advanced: custom actions](#advanced-custom-actions).

Whatsable reaches the apps through [Pipedream Connect](https://pipedream.com/connect).

## Who can use app capabilities

Capabilities and custom 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 connect apps and set up what an agent does with them. Every teammate who can open a conversation sees what the agent ran in it. See [team roles](/features/team-roles).

## What a capability is

A capability is one job the agent can do in one app, written and tested by Whatsable. You do not configure its inputs. Each capability already knows:

- **Who it acts for.** A capability that acts for the customer, such as booking or cancelling a meeting, always asks the customer to confirm first. A capability that acts for your team, such as a Slack alert or a CRM note, runs at once.
- **Who the customer is.** Whatsable fills in the customer's own name, phone and email itself. The agent cannot name another person, so it can never book for, look up or change someone else's record.
- **What the agent may see.** Each capability keeps only what its job needs from the app's answer. Checking your calendar returns busy times only, never what your meetings are or who attends them. What the agent never sees, it cannot repeat.

## The apps and their capabilities

| App | The question it asks | Capabilities |
|---|---|---|
| Google Calendar | **Which calendar?** Plus the bookable hours, the bookable days and the meeting length | **Check availability**: reads which times are busy, never what the events are. **Book meetings** (asks the customer first): offers two or three free times and books the one the customer confirms. **Move or cancel meetings** (asks the customer first): moves or cancels a meeting the agent booked for this customer, and no other. |
| Slack | **Which channel?** | **Alert the team**: posts a short message in that channel when a person on your team should look at a conversation. |
| HubSpot | None | **Save the customer as a lead**: creates or updates this customer's contact, never anyone else's. **Add a summary note**: adds a short summary of the conversation to the customer's record. |

Any other app, and any other job in these three apps, works through a [custom action](#advanced-custom-actions).

## Connect an app

Connections belong to your organization, not to one agent. Connect an account once and every agent of your organization can use it.

**Open the Apps page**

Go to **Integrations → Apps** in the sidebar. It lists the accounts your organization has connected.

**Connect an app**

Under **Connect an app**, search for the app and choose it. The app's own sign-in opens in a popup. Sign in and allow access.

**Check the list**

When the popup closes, the account appears in the list. You can connect several accounts of the same app, such as two Google calendars.

**Give it to an agent**

When a new account appears, a window says the app is connected, such as **Google Calendar is connected**. Click **Add an app action** to set up what an agent does with it, or **Later**. Each account in the list also has **Use in an AI agent**. With one AI agent, Whatsable opens its editor with the app and account already chosen. With several, you choose the agent first.

A connected account does nothing on its own. An agent uses it only once you switch on a capability or set up a custom action.

**Disconnect** removes an account. The page also marks an account the app reports as no longer working, for example after its password changed. Connect it again to fix it.

> [!NOTE]
>
> Pipedream holds the sign-in of every connected account. Whatsable never sees or stores your app passwords or tokens. It asks Pipedream to run an action as your organization, and an account of another organization can never run.

## Switch on capabilities for an agent

**Open the Apps area**

Open **AI agents**, edit the agent, and open its **Actions** section. The **Apps** area shows one card per connected account of your organization. **Connect an app** takes you to the Apps page.

**Answer the app's question**

Choose from the live list of your own calendars or channels, such as the calendar the agent books on. Every capability of the app uses this answer. You answer it before you switch anything on.

**Write the instructions**

In **How the agent uses** the app, write what the agent should know, in your own words. For example: "Say that the call is on Google Meet" or "Only alert the team for orders above 500 dollars". The agent reads them before it does anything in the app, and the [safety check](#safety-checks) reads them too. Up to 1,000 characters.

**Set the booking rules (Google Calendar)**

Choose **Bookable from** and **Bookable until**, the **Bookable days** and the **Meeting length**. See [The calendar's booking rules](#the-calendars-booking-rules).

**Switch on what the agent may do**

Under **What the agent may do**, turn on each capability you want. A capability that acts for the customer carries the tag **Asks the customer first**.

**Save**

Each card saves on its own **Save** button. A card with no capability on shows **Off**, and the agent does nothing in that app. **Remove setup** clears the card.

An agent holds one setup per connected account, and up to 10 setups. Duplicating an agent copies its setups.

## The calendar's booking rules

A rule your business depends on should not rest on an AI reading text. So a Google Calendar setup has three settings that Whatsable enforces itself, whatever the agent writes:

- **Bookable hours**, 9:00 to 18:00 by default, and **Bookable days**, Monday to Friday by default. They are in the agent's time zone, set in its configuration. A time outside them is removed before the agent sees any.
- **Meeting length**, 30 minutes by default, from 15 to 240. A time is offered only where the whole meeting fits inside the bookable hours and the calendar is free.

Use the instructions for everything else, such as "leave 15 minutes between meetings" or "say the call is by phone".

## How the agent books a meeting

**The customer asks for a meeting**

"Can we talk on Thursday?" If Whatsable has no email for the customer, the agent asks for one first, so Google can send the invitation. It uses only an email the customer wrote in the conversation.

**The agent offers times**

The agent checks your calendar and offers up to three free times, as reply buttons under its message, such as **Thu 4 Dec 10:00**. Nothing is booked yet.

**The customer confirms**

The customer taps a button. Whatsable checks again that the time is still free and books it on your calendar, with the customer as an attendee. The title is "Call with" and the customer's name, and the description holds a summary of the conversation. Change either in the instructions.

**The agent confirms the booking**

The agent's next message tells the customer the meeting is booked, with the time.

The customer can also answer in words, such as "the first one works". The agent then books the time the customer named, from the times it offered, and nothing else. An offer the customer does not answer expires after 24 hours, or when the agent offers new times.

**Move or cancel meetings** works the same way: the agent offers the new times, or a **Cancel it** button, and acts only after the customer taps or answers. It can change only a meeting it booked for this same customer.

## Confirmation: who the action is for

Whatsable, not the AI, decides when an action may run:

- **An action for the customer** (book, move, cancel) runs only after the customer confirms one of the choices the agent offered. Whatsable refuses such an action without that confirmation, so "always ask first" is a guarantee, not an instruction the AI might skip. It runs once, even if the customer taps twice.
- **An action for your team** (a Slack alert, a HubSpot lead or note) runs at once, after the agent has settled its reply. It also runs when the agent hands the conversation to a person, so the agent can, for example, alert your team in Slack when the customer asks for a human. A team action that fails never changes the handover.

When the agent hands a conversation to a person, an offer of times that is still open is withdrawn: a person now decides.

## Safety checks

Two automatic checks protect every app the agent uses, capabilities and custom actions alike:

1. **Before every action runs**, a check reads the conversation, your instructions for the app and what the agent is about to do, and asks: did the customer ask for this, and does it follow your instructions? If not, the action does not run and the conversation goes to your team with the reason *A safety check stopped an action*. This covers [HTTP actions](/features/ai-chatbot/actions) too.
2. **Before a reply that used data from an app goes out**, a check reads the reply and asks whether it shows data about anyone other than this customer, or your business's internal data. If so, the reply is not sent and the conversation goes to your team with the reason *A reply may have shown data it should not*.

If a check cannot run, for example during an outage, it stops the action or the reply and hands the conversation to a person, rather than let it through unchecked. Every check is recorded on the agent's reply.

## Advanced: custom actions

For an app with no capabilities yet, or a job the capabilities do not cover, set up a **custom action**: one of the app's own actions, such as HubSpot **Create Deal**, Google Sheets **Add Single Row** or a Shopify order lookup. The card of every connected account has **Advanced: custom actions**, which opens the setup.

A custom action has no built-in rules about who the customer is and keeps the app's whole answer, so the [safety checks](#safety-checks) are what protect it. Prefer a capability when one does the job.

### Set up a custom action

**Add the action**

Open **AI agents**, edit the agent, open its **Actions** section, and click **Add an app action**, or **Advanced: custom actions** on an app's card.

**Choose what it does**

Pick a ready-made setup from the top of the list, or search an app and pick one of its actions, such as Google Calendar **Create Event**.

**Pick the account**

Choose which connected account the action runs as.

**Decide who fills each input**

For each input of the action, choose **I choose** or **The agent decides**.
- **I choose** fixes the value, such as the calendar or the spreadsheet. When the app has a list for the input, you pick from a live drop-down of your own calendars, sheets or channels.
- **The agent decides** lets the agent fill the value from the conversation, such as the meeting time or the customer's email. The agent reads the input's description to know what to put there.

Optional inputs are under **More fields** and start as **App default**: the app uses its own default until you choose a value or let the agent decide. The agent can fill at most 10 inputs of one action.

**Say when to use it**

Write **When should the agent use this?** in a sentence or two. The agent reads it to decide, so be specific: "Run when the customer agrees on a date and time for a meeting."

**Mark it read only**

Turn on **Read only** when the action only reads data and changes nothing, such as a search, a list or a free-time check. The editor suggests a value from the action's name. A read-only action is a lookup: the agent may use it to look information up before it answers, and the list shows it with a **Read only** badge. See [Lookups](#lookups-read-before-the-reply).

**Test it and save**

**Run a test** runs the action for real with your fixed values and sample values for the agent's inputs, and shows what the app answered. It really runs the action: a test of "Create Event" creates an event. Save, and the action is on for this agent.

Custom actions share the limits of every action: an organization holds up to 50 actions, and an agent up to 10. To give the same action to another agent, turn it on in that agent's **Actions** section.

### Write actions: after the reply is settled

A custom action that changes something, such as creating an event or adding a row, runs like an [HTTP action](/features/ai-chatbot/actions#how-an-action-runs). A capability that acts for your team runs the same way.

- It runs **once**, after the agent has settled its reply and before the reply is sent. If Whatsable has to ask the AI model again for the same message, the action does not run a second time.
- The agent runs at most one write action per reply. It runs one when it replies, and also when it hands the conversation to a person.
- If the app succeeds, the reply goes out. What the app answered is stored with the conversation, and the agent reads it on its next reply, such as the event link.
- If the app fails, or a [safety check](#safety-checks) stops it, the reply is not sent and the conversation goes to your team, as when an HTTP action fails. See [When an action fails](/features/ai-chatbot/actions#when-an-action-fails). On a handover, a failed action changes nothing: the conversation goes to your team as planned.

A custom action does not ask the customer to confirm. Use **Book meetings** when the customer should pick and confirm the time.

### Lookups: read before the reply

A lookup runs **before** the agent writes its reply, so the agent answers with fresh data in the same message. A customer asks "Do you have time on Thursday?", the agent checks your calendar, and it answers with the free times. **Check availability** is a lookup, and so is a custom action marked **Read only**.

- When the agent needs data, it runs the lookup, reads the result, and then writes its reply.
- It can run up to **3 lookups per reply**. After the third, it answers with what it has.
- A lookup that fails does **not** hand the conversation over. The agent learns that the lookup failed and answers without that data. Its own handover rules still apply.
- A reply written after a lookup goes through the [safety check](#safety-checks) for data it should not show.
- A lookup is run once per position in a reply. If Whatsable has to ask the AI model again for the same message, it reads the stored result instead of calling the app again.

> [!WARNING]
>
> Mark a custom action as a lookup only when it really changes nothing. The agent may run a lookup while it is still deciding what to say, and a lookup that fails never reaches your team. An action that creates, sends or updates something must stay a write action.

## In the inbox

The decision row of a reply shows each app action the agent ran, with the app's name and the outcome. A lookup shows as **Looked up …** with the action's name. Open the row to read what the agent sent and what the app answered. See [the agent in the inbox](/features/ai-chatbot#the-agent-in-the-inbox).

When an action fails or a safety check stops it, your team gets the usual [handoff notification](/features/notifications) with the reason, and the conversation waits for a person.

## How it works with other features

- **The AI agent.** Capabilities and custom actions are among the agent's [actions](/features/ai-chatbot/actions), next to its HTTP actions. The agent's knowledge, rules and memory still apply. The agent's time zone, in its [configuration](/features/ai-chatbot/configuration), is the zone of the calendar's booking rules.
- **Labels.** A [label](/features/labels) or a memory fact the agent writes in the same reply is applied only if the write action succeeds.
- **Team roles.** The owner and Admins set up apps. Every teammate who can see the conversation sees what ran in it. See [team roles](/features/team-roles).
- **Handover.** A team action, such as a Slack alert, also runs when the agent hands the conversation to a person. A booking never runs on a handover, and an open offer of times is withdrawn: a person takes over. A safety check that stops an action or a reply hands the conversation over too. See [notifications](/features/notifications).
- **Follow-ups and wake-ups.** They never run an app action. Only a reply to a customer message, or a handover, does.
- **The test panel.** The agent's [test panel](/features/ai-chatbot/configuration#test-your-agent) shows the action the agent would run, marked as simulated, and never calls the app. It never offers or confirms a booking. Use **Run a test** in a custom action's setup to try the app itself.
- **Make, Zapier and n8n.** Use an HTTP action when the work needs several steps or an app Pipedream does not list. See [Actions](/features/ai-chatbot/actions).

## In the API and MCP

Connecting an account stays in the browser, because the app's sign-in runs there. Everything else is also in [Public API v1](/api-reference/v1).

Capabilities:

- [List the apps the AI agent can use](/api-reference/v1/ai-bots/list-app-capabilities) (`GET /v1/app-capabilities`) returns each app with its capabilities, who each one acts for, the app's question and whether it takes calendar settings.
- [List a bot's app setups](/api-reference/v1/ai-bots/list-ai-bot-app-setups) (`GET /v1/ai-bots/{id}/app-setups`) returns the agent's setups: answers, instructions, the capabilities switched on and the booking rules.
- [Set a bot's app setup for a connected account](/api-reference/v1/ai-bots/set-ai-bot-app-setup) (`PUT /v1/ai-bots/{id}/app-setups/{account_id}`) switches capabilities on or off for one connected account, with the answer, the instructions and, for a calendar, the booking rules.
- [Remove a bot's app setup](/api-reference/v1/ai-bots/remove-ai-bot-app-setup) (`DELETE /v1/ai-bots/{id}/app-setups/{account_id}`) clears it.

Custom actions:

- [List the organization's connected apps](/api-reference/v1/ai-bots/list-app-connections) returns the connected accounts, with the `account_id` a setup or a custom action names.
- [List the actions a bot may run](/api-reference/v1/ai-bots/list-ai-bot-actions) returns an agent's HTTP and app actions, with their fixed values, the inputs the agent fills and whether each is a lookup.
- [Add an app action to a bot](/api-reference/v1/ai-bots/add-ai-bot-app-action), [Change an app action of a bot](/api-reference/v1/ai-bots/update-ai-bot-app-action) and [Remove an app action from a bot](/api-reference/v1/ai-bots/remove-ai-bot-app-action) set up custom actions. An HTTP action is created and changed in the agent editor only, because it holds a secret.

An AI assistant connected through the [MCP server](/mcp) does the same with `list_app_capabilities`, `list_ai_bot_app_setups`, `set_ai_bot_app_setup` and `remove_ai_bot_app_setup` for capabilities, and `list_app_connections`, `list_ai_bot_actions`, `add_ai_bot_app_action`, `update_ai_bot_app_action` and `remove_ai_bot_app_action` for custom actions. Ask it, for example, to let your sales agent book meetings on the calendar you already connected, weekdays from 10 to 16.

## Limits

- One setup per connected account per agent, and up to 10 per agent. Instructions up to 1,000 characters.
- Up to 3 times offered at once, as reply buttons. An offer waits 24 hours for the customer. The times on the buttons are written as day, date and time, such as **Thu 4 Dec 10:00**.
- Meetings from 15 to 240 minutes, inside the bookable hours and days.
- Up to 10 inputs the agent fills, per custom action.
- Up to 3 lookups and one write action per agent reply.
- 30 seconds for the app to answer. Only part of a long answer reaches the agent.
- 50 action runs per conversation in 24 hours, lookups included. This stops a runaway loop. Normal use never reaches it.
- A few custom actions cannot be set up: those whose required inputs change the other inputs, and inputs that take a file or a complex object. The list leaves out what the form cannot handle.

## FAQ

<details>
<summary>Which apps can the agent use?</summary>

Google Calendar, Slack and HubSpot have ready-made capabilities. About 3,000 apps work through custom actions, through Pipedream Connect: Google Sheets, Gmail, Pipedrive, Salesforce, Shopify, Notion, Airtable, Calendly and many more. Search the app under **Integrations → Apps** in the sidebar.

</details>

<details>
<summary>Can the agent book a meeting without the customer agreeing?</summary>

No. A booking, a move or a cancellation runs only after the customer taps one of the times the agent offered, or names one of them in a reply. Whatsable enforces this, not the AI.

</details>

<details>
<summary>Can the agent book outside our hours?</summary>

No. The bookable hours, days and meeting length are enforced by Whatsable. The agent never sees a time outside them, and a booking outside them is refused.

</details>

<details>
<summary>Can the agent see my other meetings?</summary>

No. **Check availability** reads only which times are busy, never the titles, descriptions or attendees of your events.

</details>

<details>
<summary>Does Whatsable see my app passwords?</summary>

No. Pipedream holds the sign-in of every connected account. Whatsable only asks Pipedream to run the action you set up, as your organization.

</details>

<details>
<summary>Can the agent alert my team when it hands a conversation over?</summary>

Yes. Switch on **Alert the team** in Slack. A team action also runs when the agent hands the conversation to a person.

</details>

<details>
<summary>What happens when an action fails or a safety check stops it?</summary>

The agent's reply is not sent and the conversation goes to your team, with the reason. A failed lookup does not hand over: the agent answers without that data.

</details>

<details>
<summary>Can several agents use the same connected account?</summary>

Yes. Connections belong to the organization, so every agent can use them. Each agent has its own setup of the account: its own capabilities, answer and instructions.

</details>

<details>
<summary>Which plans include app capabilities?</summary>

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

</details>

## Next steps

- [AI agent actions](/features/ai-chatbot/actions): 
Call a Make scenario, a Zap or your own API while the agent chats.

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

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

- [MCP server](/mcp): 
Set up agents and their apps from an AI assistant.