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

Request body

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 response

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