POST
/
v0
/
chatbots
/
{chatbotId}
/
settings
/
prompts
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
    }
  }
}

Authorizations

Authorization
string
header
required

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

Request Body to add a custom prompt to the chatbot

Request body

Response

200
application/json

OK

Success Response