curl --request POST \
--url https://sitegpt.ai/api/v0/chatbots/{chatbotId}/settings/prompts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"title": "<string>",
"description": "<string>",
"instructions": "<string>",
"temperature": "<string>"
}'
{
"success": true,
"message": "Added a custom prompt to the chatbot successfully",
"data": {
"prompt": {
"id": "c50191ee-85d0-4f46-9448-3ab74441c9fb",
"title": "Random",
"description": "Prompt for random replies",
"instructions": "You are an AI assistant who provides random answers for all the questions asked.",
"temperature": 0.99
}
}
}
Add a custom prompt to the chatbot
curl --request POST \
--url https://sitegpt.ai/api/v0/chatbots/{chatbotId}/settings/prompts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"title": "<string>",
"description": "<string>",
"instructions": "<string>",
"temperature": "<string>"
}'
{
"success": true,
"message": "Added a custom prompt to the chatbot successfully",
"data": {
"prompt": {
"id": "c50191ee-85d0-4f46-9448-3ab74441c9fb",
"title": "Random",
"description": "Prompt for random replies",
"instructions": "You are an AI assistant who provides random answers for all the questions asked.",
"temperature": 0.99
}
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Id of the chatbot
Request Body to add a custom prompt to the chatbot
Request body
OK
Success Response
Was this page helpful?