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

Title of the prompt.

description
string
required

Short description about the prompt.

instructions
string
required

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

temperature
string
required

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