PATCH
/
v0
/
chatbots
/
{chatbotId}
/
settings
/
general
curl --request PATCH \
  --url https://sitegpt.ai/api/v0/chatbots/{chatbotId}/settings/general \
  --header 'Authorization: Bearer <token>' \
  --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

Authorization
string
headerrequired

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
chatbotDescription
string

Description of the chatbot

systemPrompt
string

Use this to change the tone of your chatbot and also give any additional instructions

userPrompt
string

Use this to change the instructions you give to your chatbot in the user prompt

disableSmartFollowUpPrompts
boolean

Option to disable smart followup questions generated by SiteGPT

historyCount
integer

Number of history messages to be considered when answering the question

gptModel
enum<string>

All available GPT models

Available options:
gpt-3.5-turbo,
gpt-4
extraData
string

Any extra data you want to add to your chatbot.

metadata
object

Any metadata (key-value pairs) that you can assign to the chatbot. Key should be string and Value could be anything.

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