curl --request GET \
--url https://sitegpt.ai/api/v0/chatbots/{chatbotId}/settings/prompts \
--header 'Authorization: Bearer <token>'
{
"success": true,
"message": "Fetched all the custom prompts of the chatbot successfully",
"data": {
"prompts": [
{
"id": "78ac8ecd-d889-4700-8c8c-162c92731ff9",
"title": "Custom",
"description": "Custom Prompt",
"instructions": "You are an AI assistant which answers users questions.",
"temperature": 0.3
},
{
"id": "f7c45e2b-fbaf-479b-9f0b-e31a401bab3a",
"title": "Custom Prompt",
"description": "This prompt has been created from your previous system/user prompt",
"instructions": "You are an AI assistant which answers users questions based on the website content. You should summarize and rephrase from the content.\nWe have also configured some functions in this chatbot. At any point of time, the user may try to execute one of these functions. So, please execute those functions accordingly whenever necessary.",
"temperature": 0.5
}
]
}
}
Fetch all the prompts of the chatbot
curl --request GET \
--url https://sitegpt.ai/api/v0/chatbots/{chatbotId}/settings/prompts \
--header 'Authorization: Bearer <token>'
{
"success": true,
"message": "Fetched all the custom prompts of the chatbot successfully",
"data": {
"prompts": [
{
"id": "78ac8ecd-d889-4700-8c8c-162c92731ff9",
"title": "Custom",
"description": "Custom Prompt",
"instructions": "You are an AI assistant which answers users questions.",
"temperature": 0.3
},
{
"id": "f7c45e2b-fbaf-479b-9f0b-e31a401bab3a",
"title": "Custom Prompt",
"description": "This prompt has been created from your previous system/user prompt",
"instructions": "You are an AI assistant which answers users questions based on the website content. You should summarize and rephrase from the content.\nWe have also configured some functions in this chatbot. At any point of time, the user may try to execute one of these functions. So, please execute those functions accordingly whenever necessary.",
"temperature": 0.5
}
]
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Id of the chatbot
OK
Success Response
Was this page helpful?