PATCH
/
v0
/
chatbots
/
{chatbotId}
/
settings
/
prompts
/
{promptId}
curl --request PATCH \
  --url https://sitegpt.ai/api/v0/chatbots/{chatbotId}/settings/prompts/{promptId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "title": "<string>",
  "description": "<string>",
  "instructions": "<string>",
  "temperature": 123
}'
{
  "success": true,
  "message": "Updated custom prompt of 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.95
    }
  }
}

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

promptId
string
required

Id of the chatbot prompt

Body

application/json
title
string | null

Title of the prompt.

description
string | null

Short description about the prompt.

instructions
string | null

Actual instructions that will be specified to the AI while generating the response.

temperature
number | null

Decides creativity level of the chatbot response. 0 is more focused and 1 is more creative/random.

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

Data returned from the server