Chatbot Threads
Escalate Conversation
Escalate a particular thread/conversation
POST
/
v0
/
chatbots
/
{chatbotId}
/
threads
/
{threadId}
/
escalate
Authorization
Path
Body
curl --request POST \
--url https://sitegpt.ai/api/v0/chatbots/{chatbotId}/threads/{threadId}/escalate \
--header 'Authorization: <authorization>' \
--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
headerrequiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
chatbotId
string
requiredId of the chatbot the thread belongs to
threadId
string
requiredId 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
Was this page helpful?
curl --request POST \
--url https://sitegpt.ai/api/v0/chatbots/{chatbotId}/threads/{threadId}/escalate \
--header 'Authorization: <authorization>' \
--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
}