Update Chatbot Settings - General
curl --request PATCH \
--url https://sitegpt.ai/api/v0/chatbots/{chatbotId}/settings/general \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"chatbotDescription": "This is a test chatbot",
"systemPrompt": "You are a funny AI assistant and you answer the user queries based on the website content. Include jokes in your answer.",
"userPrompt": "You are an AI assistant who answers user questions based on the website content. Answer the questions in the same language as the language of the question.",
"historyCount": 4,
"gptModel": "gpt-3.5-turbo"
}'
{
"success": true,
"message": "Updated general settings of the chatbot successfully",
"data": {}
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
Id of the chatbot
Body
Description of the chatbot
Use this to change the tone of your chatbot and also give any additional instructions
Use this to change the instructions you give to your chatbot in the user prompt
Option to disable smart followup questions generated by SiteGPT
Number of history messages to be considered when answering the question
All available GPT models
gpt-3.5-turbo
, gpt-4
Any extra data you want to add to your chatbot.
Any metadata (key-value pairs) that you can assign to the chatbot. Key should be string and Value could be anything.
Response
Indicates whether this is success response or error response
Overall message regarding the operation performed
Data returned from the server
Was this page helpful?
curl --request PATCH \
--url https://sitegpt.ai/api/v0/chatbots/{chatbotId}/settings/general \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"chatbotDescription": "This is a test chatbot",
"systemPrompt": "You are a funny AI assistant and you answer the user queries based on the website content. Include jokes in your answer.",
"userPrompt": "You are an AI assistant who answers user questions based on the website content. Answer the questions in the same language as the language of the question.",
"historyCount": 4,
"gptModel": "gpt-3.5-turbo"
}'
{
"success": true,
"message": "Updated general settings of the chatbot successfully",
"data": {}
}