Overview
Partners with access to this feature can add a special action in Scripts that puts contacts into a generative AI discussion. While contacts are in this state, all incoming messages are handled by a generative AI prompt (optionally using Knowledge Sources). This allows for fluid, unstructured conversations where learners are free to ask questions outside of the normal branching logic of a Script, but without deviating from the relevant topic.
Gen-AI Discussion Configuration
- Click + Add after a simple message and select "Enter Gen-AI Discussion" from the Actions list.
-
Then select a built-in prompt, or select "Custom Prompt" (see below).
-
For a Custom Prompt:
- Enter the AI instructions into the textbox. If you are unfamiliar with prompt engineering and not sure how to start, contact your Partner Success Manager or the Mainstay Support Team.
- Select which contextual information to include when generating responses.
-
If the built-in prompt uses scraped content, or, for a custom prompt, the "Scraped Content" box is checked, optionally limit the scope to specific Knowledge Sources:
- Search for one or more Knowledge Sources by Title. Only these sources will be included when providing contextually relevant information to the AI.
-
The Gen-AI Discussion will continue until one of these conditions is met:
- The learner replies "exit". (Remember, learners won't know this unless you inform them!)
- The learner sends a message that indicates an intent to exit, such as "I'm done talking to you" or "I don't want to keep chatting".
- The learner has sent in X messages (and received X responses).
- The learner has been in this state for Y minutes.
- The learner sends in a message that matches a Sensitive Topic and triggers an Escalation.
-
After the discussion ends, the bot can optionally look through the conversation and attempt to extract one or more data points. This information will be captured as Custom Contact Fields.
Conversations
Messages that are delivered during the course of a Gen-AI Discussion will indicate both the Discussion topic and whatever Knowledge Sources were used to generate the replies.
Tips
- If "Past Messages" is checked, this will include recent messages from before this Script. If unchecked, only messages within this Gen-AI Discussion are considered.
- Make sure to provide the "exit" information so learners don't feel "stuck" in this state.
- Instead of a long, continuous Gen-AI Discussion, consider exiting after a shorter timeframe and asking the learner if they'd like to continue. You can use the "Link to another message" feature to create loops.
- For custom prompts, always provide explicit instructions for the AI. Best practice is to start with "You are a ___", describing the expected role and personality of the bot, as well as "You are talking to ___", describing the expected recipient in general terms. Be explicit and direct.
Comments
0 comments
Article is closed for comments.