Skip to main content
PATCH
/
v0
/
chatbots
/
chatbot
/
{chatbotId}
/
settings
/
chat-mode
Update Chat Mode
curl --request PATCH \
  --url https://interhemispheric-unwet-paulene.ngrok-free.dev/api/v0/chatbots/chatbot/{chatbotId}/settings/chat-mode \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "chatStart": "agent"
}
'
{
  "success": true,
  "message": "Chat mode updated successfully",
  "data": {
    "chatStart": "agent"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

chatbotId
string
required
Example:

"361628903185318481"

Body

application/json
chatStart
enum<string>
required

"ai" = AI handles the conversation; "agent" = route to human agent

Available options:
ai,
agent

Response

Chat mode updated

success
boolean
Example:

true

message
string
Example:

"Chat mode updated successfully"

data
object