POST
/
v0
/
chatbots
/
{chatbotId}
/
threads
/
{threadId}
/
escalate
curl --request POST \
  --url https://sitegpt.ai/api/v0/chatbots/{chatbotId}/threads/{threadId}/escalate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "escalationPrompt": "I want to talk to an actual human. Please escalate this conversation."
}'
{
  "success": true,
  "message": "Escalated the conversation successfully",
  "data": null
}

Authorizations

Authorization
string
headerrequired

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

Path Parameters

chatbotId
string
required

Id of the chatbot the thread belongs to

threadId
string
required

Id of the thread that has to be escalated

Body

application/json
escalationPrompt
string

Escalation prompt to be used while escalting the conversation. Usually this is the description of the follow up prompt that is configured to trigger escaltion.

Response

200 - application/json
success
boolean

Indicates whether this is success response or error response

message
string

Overall message regarding the operation performed

data
object | null

Data returned from the server