AI bots

Set a bot's app setup for a connected account

puthttps://api.whatsable.app/v1/ai-bots/{id}/app-setups/{account_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 PUT 'https://api.whatsable.app/v1/ai-bots/string/app-setups/string' \
  -H 'Content-Type: application/json' \
  -d '{
  "answers": {
    "calendarId": "sales@example.com"
  },
  "instructions": "Offer meetings only to customers who asked for a demo.",
  "capabilities": [
    "google_calendar.check_availability",
    "google_calendar.book"
  ],
  "settings": {
    "bookable_hours": {
      "start": 9,
      "end": 17
    },
    "meeting_minutes": 45
  }
}'

Creates or replaces the bot's setup of one connected account: the capabilities to switch on, the answer to the app's question, instructions and, for a calendar, the booking rules. The app is read from the account, and every capability and answer must be that app's. A capability that acts for the customer runs only once the customer confirms.

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
account_id*string

The connected account id, from GET /v1/app-connections.

Length1 <= length <= 64

Request Body

application/json
  1. body

The whole app setup of one connected account of the bot. It replaces the one there, if any.

answers?

The answer to the app's question, by its key (see GET /v1/app-capabilities), such as { "calendarId": "sales@example.com" }. Required once a capability is on.

Default{}
instructions?string

What the agent should know about using this app, at most 1000 characters.

Lengthlength <= 1000
Default""
capabilities*array<>

The capability ids to switch on, all of the account's app. Every one left out is off; an empty list switches the app off for this bot.

Itemsitems <= 6
settings?|

A calendar's booking rules; a field left out takes its default (9 to 18, Monday to Friday, 30 minutes). Null for an app without calendar settings.

Defaultnull

Response Body

The app setup.

application/json
  1. response

The capabilities an AI bot has switched on for one connected app account.

object*string
id*string
Length1 <= length <= 64
bot_id*string
Length1 <= length <= 64
account_id*string

The connected account the capabilities act as. See GET /v1/app-connections.

app*string
app_name*string
answers*

The answer to the app's question, by its key.

instructions*string

What the business tells the agent about using this app. The agent reads it.

capabilities*array<string>

The capability ids switched on. Empty: the app is off for this bot.

settings*|

A calendar's booking rules. Null for an app without calendar settings.

updated_at*string
Formatdate-time
Example Request
curl -X PUT 'https://api.whatsable.app/v1/ai-bots/string/app-setups/string' \  -H 'Content-Type: application/json' \  -d '{  "answers": {    "calendarId": "sales@example.com"  },  "instructions": "Offer meetings only to customers who asked for a demo.",  "capabilities": [    "google_calendar.check_availability",    "google_calendar.book"  ],  "settings": {    "bookable_hours": {      "start": 9,      "end": 17    },    "meeting_minutes": 45  }}'
Example Response
{  "object": "ai_bot_app_setup",  "id": "cm3a1b2c30001qz8hset10001",  "bot_id": "cm2v8b1a00001qz8h5e6f7g8h",  "account_id": "apn_kVh9AoD",  "app": "google_calendar",  "app_name": "Google Calendar",  "answers": {    "calendarId": "sales@example.com"  },  "instructions": "Offer meetings only to customers who asked for a demo.",  "capabilities": [    "google_calendar.check_availability",    "google_calendar.book"  ],  "settings": {    "bookable_hours": {      "start": 9,      "end": 18    },    "bookable_days": [      1,      2,      3,      4,      5    ],    "meeting_minutes": 30  },  "updated_at": "2026-12-01T10:00:00Z"}