After connecting ChatGPT to the bot, you can train it. This is necessary for AI to learn about your company and be able to answer questions about it.

First, prepare quick responses, as described in the article Creating Standard Quick Responses.” Now, let’s go through how to feed this database to artificial intelligence (create a model).

Creating a JSONL File for Model Training

JSONL is a format where each line of the file represents a JSON object.

  1. Create a JSONL file, for example, in a regular text editor.
  2. In the file, add at least 10 lines — examples with a user’s question and the assistant’s response. Line format:
{"messages": [{"role": "user", "content": "question"}, {"role": "assistant", "content": "answer"}]}

The role can be of two types: assistant or user.
The content is the text of the message. A question or an answer must not exceed 5000 characters and cannot be empty.

Creating a Model

1. Go to the bot connected to ChatGPT.

2. Select a model or click on “+”

3. Enter the necessary settings:

We recommend adjusting either the temperature or TOP_P, not both parameters simultaneously. Otherwise, the result may become unpredictable.

4. Click “Ready” and “Train.”

To check the training status:

  1. Click on “Select Model.”
  2. Click on the desired model.
  3. The training status will appear with the ongoing process. You can modify the name, language, and add context to retrain the model if needed.

Great! The model is trained and ready for use in the bot builder and Assistant.

Connecting ChatGPT

GPT in Assistant

GPT in the bot builder