How to set up the AI ​​element

Modified on Tue, 21 Jan at 11:22 AM

The "AI" element is designed to automatically answer customer questions using artificial intelligence. For more details, see AI element.

⚠️Attention!

The service must be connected before configuration.

 

In the scenario, the "AI" element works in conjunction with the "Question-answer" block.

 

To add the "AI" element to the scenario, drag the element onto the diagram.

 

Click the clock button and enable the "Limit waiting time" parameter by checking the box next to it. This parameter sets the time after which it is considered that AI has not found an answer or its answer is not recognized.

Enter the number of seconds and click "Save".

 

Click on the pencil icon and set the AI parameters:

  • Message — enter the variable {{stt_answer}}. This variable is responsible for which question the AI answers. AI takes information about which question it should answer from the "Question-answer" block.

  • Context — the context length is limited by the allowed number of tokens. In this example, not only are there options for finding answers to the client's question, but also how AI will respond depending on the client's answer - nuances that affect how AI works. You can enter any context containing the logic by which AI will process information received from the client.

    ⚠️Attention!

    AI can be configured to recognize the context of the previous question and respond taking into account the context, maintaining a dialogue with the client on a specific topic. Even if the client hasn't said certain keywords, AI will respond considering that the context of both questions is unified.

     

    • To do this, add a second "AI"block to the diagram and set the following settings:
      • Message — the variable {{stt_answer}}.
      • Context — the sequence Q:{{stt_answer_5083_1}} A:{{gpt_answer}}, where stt_answer is the question that AI has already answered, and 5083_1 is the identifier of the "Question-answer" block where AI pronounced this answer, displayed in the "Identifier" field inside the "Question-answer" element.
  • Select the model, enter the number of tokens that AI can process at maximum, and set the temperature (recommended value is 0.7).

Click "Save".


Also see:

Call scenario settings

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article