List the actions a bot may run
Build a request to copy
This page never sends a request. Fill in the fields, then copy the request and run it from your server.
curl -X GET 'https://api.whatsable.app/v1/ai-bots/string/actions'
Returns the actions this AI bot may run in another system, with the inputs it fills in: HTTP actions, set up in the bot editor, and app actions of the apps the organization connected.
bearerAuthAuthorizationBearer <nfy_live_<32 characters>>An API key from Settings > API keys, sent as Authorization: Bearer <key>.
id*stringThe bot id.
1 <= length <= 64Every action the bot may run.
application/json- response
Every action the bot may run, in the order they were created. One page holds them all.
object*stringdata*array<>has_more*booleanTrue when another page follows this one.
next_cursor*|Pass as cursor to read the next page. Null on the last page. Valid for 24 hours.
curl -X GET 'https://api.whatsable.app/v1/ai-bots/string/actions'{ "object": "list", "data": [ { "object": "ai_bot_action", "id": "cm3a1b2c30001qz8hact10001", "name": "Create CRM lead", "description": "Run when the customer gives their name and email and asks to be contacted.", "method": "POST", "url_host": "hooks.zapier.com", "inputs": [ { "name": "name", "type": "string", "description": "The customer's full name.", "required": true }, { "name": "email", "type": "string", "description": null, "required": true } ], "has_auth_secret": false, "kind": "http_request", "read_only": false, "app_action": null, "created_at": "2026-11-20T10:00:00Z", "updated_at": "2026-11-20T10:00:00Z" }, { "object": "ai_bot_action", "id": "cm3a1b2c30001qz8hact10002", "name": "Book a meeting", "description": "Run when the customer agrees on a date and time for a meeting.", "method": null, "url_host": null, "inputs": [ { "name": "summary", "type": "string", "description": "Event Title: Enter a title for the event", "required": true }, { "name": "eventStartDate", "type": "string", "description": "Event Start Date", "required": true } ], "has_auth_secret": false, "kind": "app_action", "read_only": false, "app_action": { "app": "google_calendar", "account_id": "apn_kVh9AoD", "component_key": "google_calendar-create-event", "fixed": [ { "name": "calendarId", "value": "sales@example.com", "label": "Sales calendar" } ] }, "created_at": "2026-12-01T10:00:00Z", "updated_at": "2026-12-01T10:00:00Z" } ], "has_more": false, "next_cursor": null}Switch the AI's follow-ups to a contact off or on PATCH
`off` stops the AI's follow-ups to this person on every number, and the bot keeps answering when they write. Sending `off` again is safe. `on` lets follow-ups start again from the next outbound message. It needs a key that may use every number the contact has a conversation on, or it answers `403 number_not_allowed_for_key`.
Add an app action to a bot POST
Adds an action of a connected app to this bot: the inputs you choose in `fixed`, and the inputs the bot fills from the conversation in `agent_inputs`. The app's action is read when you send this, and the setup must fit it. Connecting an app account is done in the dashboard, because the app's sign-in runs in a browser.