Set a bot's app setup for a connected account
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 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.
bearerAuthAuthorizationBearer <nfy_live_<32 characters>>An API key from Settings > API keys, sent as Authorization: Bearer <key>.
id*stringThe bot id.
1 <= length <= 64account_id*stringThe connected account id, from GET /v1/app-connections.
1 <= length <= 64application/json- 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.
{}instructions?stringWhat the agent should know about using this app, at most 1000 characters.
length <= 1000""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.
items <= 6settings?|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.
nullThe app setup.
application/json- response
The capabilities an AI bot has switched on for one connected app account.
object*stringid*string1 <= length <= 64bot_id*string1 <= length <= 64account_id*stringThe connected account the capabilities act as. See GET /v1/app-connections.
app*stringapp_name*stringanswers*The answer to the app's question, by its key.
instructions*stringWhat 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*stringdate-timecurl -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 }}'{ "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"}List a bot's app setups GET
Returns the capabilities this AI bot has switched on, one setup per connected app account, with the answers, the instructions and the calendar settings.
Remove a bot's app setup DELETE
Switches every capability of this connected account off for the bot and forgets its answers, instructions and settings. The account stays connected.