To create a chatbot, you need to send a POST request to the API endpoint with a JSON request body. Here’s an example request body:
Copy
{ "model": "gpt-3.5-turbo", "name": "Your Chatbot's Name", "prompt": "A sample prompt for your chatbot.", "rate_limit": [ 20, 240 ], "rate_limit_message": "Too many messages", "show_citations": false, "temperature": 0, "visibility": "private"}
model (string, optional): Specify the model you want to use. In this example, we’re using gpt-3.5-turbo.Options available gpt-3.5-turbo, gpt-3.5-turbo-16k, gpt-4
name (string, required): Provide a name for your chatbot.
prompt (string, optional): You can provide an initial prompt for your chatbot.
rate_limit (array, optional): Set the rate limit for the chatbot in messages per minute. It’s an array with two values: [20, 240].First number: amount of messages. Min 1 - Max 100
Second number: amount of seconds. Min 1 - Max 360
rate_limit_message (string, optional): Define a message to display when the rate limit is exceeded.
show_citations (boolean, optional): Set to true if you want the chatbot to show citations for its responses.
temperature (float, optional): You can adjust the temperature parameter for response randomness. A value of 0 makes responses deterministic, while higher values increase randomness.Options are values as a float between 0 and 1
visibility (string, optional): Set the visibility of your chatbot. Options are “private” or “public.”Options available private, public, hybrid