Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

On this page

Table of Contents
minLevel1
maxLevel3
outlinefalse
stylenone
typelist
printablefalse
Panel
bgColor#FFFAE6

AI Prompts section available from version 3.34.0. This documentation is work in progress and some features will be available in next releases.
From version 3.35.0 it’s also possible to useAssistants within the ChatGPT bot (in this case you need to enable on License AI and Assistant feature)

📋 What’s About

AI Prompts is the section on which you can configure OpenAI Assistants, designed to understand and answer to human queries, by starting from business files uploaded in the relative section.

Assistants are OpenAI models that can use tools, in our case reading uploaded files, to find answers for customers.
Explore how it works on Official documentation: Assistants overview | How Assistants work

Note

OpenAI Assistants are in Beta version

image-20240507-133840.png

(info) Requirements

Panel
bgColor#EAE6FF
  • To view AI Prompts you must enable on license AI Assistants feature

  • To use Assistants on ChatGPT Bot you have to enable on license also AI feature

⚙️ Configuration

Assistants

You can define OpenAI Assistants both on XCALLY side and on OpenAI console. In both cases, assistants are registered on OpenAI (not on Motion database).

image-20240507-135655.jpg


To create a new Assistant, you can click on Add assistant and insert:

image-20240801-145625.png
  • Assistant Name

  • Cloud Provider (OpenAI type)

  • Model (as gpt-4-turbo or , gpt-4o, gpt-3.5-turbo, gpt-4o-mini)

  • Instructions, these are the bot training “instructions” to explain what the assistant has to say, questions it can manage, phrase it has to say when it doesn't know how to help the customer and so on.

Info

If you want to manage the re-bouting routing from to the bot to a human agent, it is necessary to explicitly include this key phrase literally in the instructions:
If you don't know how to help user, tell the customer "I am redirecting you to a human operator".
If customer asks to be redirected to human operator, tell the customer "I am redirecting you to a human operator".

If you want that assistant uses files, you need to make reference in instructions to title file. E.g. you can write: If the customer asks about refund issues, search answer in the file “Refund instructions”

And click on Save

The created Assistant is saved also in Open AI platform under Assistants section

image (1)-20240507-140818.jpg

Files

So if you want to use business documents, on Files section, you can upload your files (for example pdf instructions, user manuals and so on).
Read on official OpenAI documentation, the supported files Open AI | Supported Files

Info

Recommend uploading static documents with infrequently changing data as files, in pdf, doc, or text format

You can here view an example of how to create a file:

View file
nameExample Business File.docx

So you can click on Files Add file

image-20240507-130612.png

And then select OpenAI Cloud Provider and upload Files from your computer → and click on Confirm

image-20240507-142544.png

So in this case, by editing a created assistant, you can see files section to associate files to the assistant. By clicking on Files section you can add the relative files, among those uploaded.

image-20240507-142803.png
image-20240522-123128.png

In this way bot has an associated file.

Info

Starting from version 3.40.0 it’s also possible to download an added file, by clicking the download button, but consider that files uploaded prior to this version are not downloadable

image (13)-20240917-135657.jpg

🤖 How to configure Assistants in OpenAI Bots

On OpenAI bots section, it is possible to configure the assistant so that the bot can retrieve useful customer information from uploaded files.
For example if you create an Assistant with files related to product return and the customer asks for this type of information, the bot provides an explanation, starting with the uploaded documentation.

So by creating a new OpenAI bot, you have to fill in the form with:

image-20240612-145112.png

  • OpenAI Cloud Provider account

  • ChatGPT Assistant: from this section you can choose among the created assistants, associated to the cloud provider key

  • Bot Name

  • Exit Phrase

  • Welcome message

  • Option to analyze chat to know if pass the chat to an agent

  • Forward message

  • Error message

  • ChatGPT Attachment message

Info

As you can see, when you use Assistant you can’t enter chatGPT model, prompt (so instructions), max conversation lenght in tokens, temperature because these options are already inserted in OpenAI Assistant configuration (as you can see below)
Follow official documentation Prompt engineering about how to properly create a prompt
From the section OpenAI Usage you can track costs by token usage

image (10)-20240522-122311.jpg

When you use Assistant, it is recommended to insert a queue after bot management so that customer service is forwarded to a human operator

image-20240522-105126.png

So when for example a chat starts, the bot answers to customer with information that it can retrieve from files:

immagine (1)-20240522-123201.png

And agent will be able to see the interaction, in the relative channel interactions list.

(blue star) Related topics

Filter by label (Content by label)
showLabelsfalse
maxCheckboxfalse
showSpacefalse
reversefalse
cqllabel = "openai"