POST
/
v0
/
chatbots
/
{chatbotId}
/
follow-up-prompts
Add Follow Up Prompt
curl --request POST \
  --url https://sitegpt.ai/api/v0/chatbots/{chatbotId}/follow-up-prompts \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "title": "Yo",
  "link": "",
  "description": "Hey what'\''s up?",
  "isEscalationPrompt": false
}'
{
  "success": true,
  "message": "Added follow-up prompt to the chatbot successfully",
  "data": {}
}

Authorizations

Authorization
string
header
required

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

Path Parameters

chatbotId
string
required

Id of the chatbot

Body

application/json

Request body to add a follow-up prompt

Request Body

title
string
required

Title of the follow-up-prompt. This is the text that is shown as button in the chatbot.

description
string
required

Description of the follow-up-prompt. This is the message that will be sent to the chatbot when you click on the follow-up-prompt inside the chatbot.

Link of the follow-up prompt. If this link is added, then when you click on the follow-up prompt in the chatbot, this link will be opened instead of sending a message to the chatbot.

isEscalationPrompt
boolean

Indicates whether the follow-up prompt is an escalation prompt or not. Default value is false.

Response

OK

success
boolean

Indicates whether this is success response or error response

message
string

Overall message regarding the operation performed

data
object

Data returned from the server