Copied +55 (21) 960104492
Log In Free trial
Select region

The GPT block in the bot builder.

You can make your bot even smarter by adding artificial intelligence to it. In the bot builder, there is a "ChatGPT" block for this purpose.

First, make sure that:

Block Description

The "ChatGPT" block responds to the customer's message with a message generated by artificial intelligence. To do this, simply place it inside your script.

The block has several settings:

  • Model Selection: Choose the model that will respond to the customer.
  • Language Selection: Select the language in which the model will respond.
  • Model Settings:
    • Temperature: The lower the value, the closer the model's response will be to the topic; Optimal value is around 0.4.
    • TOP_P: This parameter allows you to adjust the degree of diversity in the text, i.e., how much the next sentence will relate to the previous one.
    • Number of tokens in the response: One token is approximately 8 characters.
    • Stop Sequences: A sequence of characters after which the model stops generating a message. So, if you enter "123", and the neural network generates this sequence in the text, it will stop.
    • Frequency Penalty: A number from -2.0 to 2.0. The higher the value, the less likely the model is to repeat the same line literally.
    • Presence Penalty: A number from -2.0 to 2.0. The higher the value, the more likely the model is to talk about new topics.

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

By default, the settings are configured based on the model selected as the primary one in the bot settings.

Script Example

Let's go through how to use this block with an example. The image below shows an excerpt from the script.

Here's the translation:

What will happen with this arrangement of blocks:

  1. The bot will first send a welcome message, stating that the client is interacting with AI and provide a command to summon a human.
  2. It will wait for a response from the client.
  3. Check if the client's message contains the command to summon a human.
  4. If there is no command, ChatGPT will respond to the message.
  5. If the client requests an operator, the dialogue will be transferred to an employee, and the conversation will be initiated.

The scenario in the screenshot is cyclical, and ChatGPT will respond to messages until the client calls for an operator.

Connecting ChatGPT

Train ChatGPT with quick responses (Create model).

Leave a request for integrator services