Message AI Agent Q/A

Add Q/A to AI agent via API

You can interact with this API by sending a POST request. This API allows you to train your AI agent with given a Question and Answer.


API Endpoint

The following endpoint/URL should be used in order to access this API:

https://admin.gpt4business.ai/en/chatbot/api/v1/qa/

Request Headers

The API must have the following request headers:

Content-Type: application/json
Authorization: Token <Your-API-Token>

Request Body

The API requires the following parameters in the request body:

  • chatbot_uuid (Type: UUID, Required)

    Unique identifier (UUID) of the chatbot. You can find this UUID on the chatbot's detail page.


  • question (Type: String, Required)

    Question to train chatbot. Must be under 5000 characters.


  • answer (Type: String, Required)

    Answer to the above question for the chatbot. Must be under 5000 characters.


Request Example

Here's an example of the request:

PythonJavaScriptCurl/Shell


Response Example

Here's an example of the response:

JSON

Last updated

Was this helpful?