API
Create a chatbot
The Chatbot Creation API allows you to create a new chatbot by making a POST
request to the /api/v1/create-chatbot
endpoint.
Endpoint
Request Headers
The API request must include the following headers:
Authorization: Bearer <Your-Secret-Key>
- The secret key for authenticating the API request.Content-Type: application/json
- The content type of the request payload.
Request Body
The request body should contain the following parameters:
chatbotName
(string, required): The name of the chatbot to be created.sourceText
(string, optional): The text data for the chatbot. This field is subject to the character limit based on your plan
Example Request
Response
The API response will be a JSON object with the following structure:
The chatbotId
field in the response contains the unique identifier assigned to the created chatbot.
Error Handling
If there are any errors during the API request, appropriate HTTP status codes will be returned along with error messages in the response body. Make sure to handle these errors gracefully in your application.
That’s it! You should now be able to create a chatbot using the create API.