AI bots

Change an app action of a bot

patchhttps://api.whatsable.app/v1/ai-bots/{id}/actions/{action_id}
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.

Request
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.

Authorization

bearerAuth
headerAuthorizationBearer <nfy_live_<32 characters>>

An API key from Settings > API keys, sent as Authorization: Bearer <key>.

Path Parameters

id*string

The bot id.

Length1 <= length <= 64
action_id*string

The action id. It must be one of the bot's actions.

Length1 <= length <= 64

Request Body

application/json
  1. body

The fields to change. The app and its action never change: add another action instead.

name?string
Length1 <= length <= 60
description?string
Length1 <= length <= 500
read_only?boolean
account_id?string
Match^apn_[A-Za-z0-9]+$
Length1 <= length <= 64
fixed?

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.

Itemsitems <= 10

Response Body

The changed action.

application/json
  1. response

An action an AI bot may run in another system: an HTTP request or an app action.

object*string
id*string
Length1 <= length <= 64
name*string
description*string

What 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*boolean

Whether 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*boolean

A 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*string
Formatdate-time
updated_at*string
Formatdate-time
Example Request
curl -X PATCH 'https://api.whatsable.app/v1/ai-bots/string/actions/string' \  -H 'Content-Type: application/json' \  -d '{  "account_id": "apn_Xq81pLd"}'
Example Response
{  "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"}