Change an app action of a bot
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 PATCH 'https://api.whatsable.app/v1/ai-bots/string/actions/string' \
-H 'Content-Type: application/json' \
-d '{
"account_id": "apn_Xq81pLd"
}'Changes the fields you send and keeps the others. A new account, or new fixed and agent_inputs, are checked against the app's action again. The change applies to every bot the action is granted to. An HTTP action is changed only in the bot editor.
bearerAuthAuthorizationBearer <nfy_live_<32 characters>>An API key from Settings > API keys, sent as Authorization: Bearer <key>.
id*stringThe bot id.
1 <= length <= 64action_id*stringThe action id. It must be one of the bot's actions.
1 <= length <= 64application/json- body
The fields to change. The app and its action never change: add another action instead.
name?string1 <= length <= 60description?string1 <= length <= 500read_only?booleanaccount_id?string^apn_[A-Za-z0-9]+$1 <= length <= 64fixed?The inputs you choose, by input name, each { "value": ..., "label": "..." }. label is optional: what the value is called in the app.
agent_inputs?array<>The inputs the bot fills from the conversation, at most 10. Every required input of the action is either in fixed or here; an optional input in neither keeps the app's default.
items <= 10The changed action.
application/json- response
An action an AI bot may run in another system: an HTTP request or an app action.
object*stringid*string1 <= length <= 64name*stringdescription*stringWhat the action does and when the bot runs it. The bot reads it.
method*||The HTTP method. Null for an app action.
url_host*|The host the action calls. The path and the query are not shown: a webhook URL often carries its secret in them. Null for an app action.
inputs*array<>The values the bot fills in when it runs the action.
has_auth_secret*booleanWhether a credential is sent with each call. The credential itself is never returned.
kind*|http_request: a request to a URL, set up in the bot editor. app_action: an action of an app the organization connected.
read_only*booleanA lookup: the action only reads, and the bot may run it before it writes its reply.
app_action*|The app setup. Null for an HTTP action.
created_at*stringdate-timeupdated_at*stringdate-timecurl -X PATCH 'https://api.whatsable.app/v1/ai-bots/string/actions/string' \ -H 'Content-Type: application/json' \ -d '{ "account_id": "apn_Xq81pLd"}'{ "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"}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.
Remove an app action from a bot DELETE
Removes the app action from this bot. An action no other bot holds is deleted; its past runs stay on the record. An HTTP action is removed only in the bot editor.