Router prompt
A router prompt is required when a skill includes multiple prompts for different use cases. It directs queries to the appropriate prompt for answers.
When used as a standalone prompt in a skill, the router prompt serves as a starting point. However, the Knowledge and Live Chat prompts can be used individually without needing a separate router prompt.
Consider the following points while using a router prompt:
- For one skill, you must create and update one router prompt.
- When you copy, publish, or link a service prompt for a skill, its entry is added to the router prompt of the skill.
- When you copy or publish a service prompt and link it to a skill, it is added to the active router prompt set as the starter prompt for that skill, even if multiple versions of the router prompt exist.
- When you copy or publish a service prompt, if the active router prompt is not set as the starter prompt for a skill, the service prompt is not added to any version of the router prompt.
- Make sure to create a copy of the router prompt for each skill.
When a custom router prompt with service prompt entries is used in another skill that has different or no service prompts, it gets updated with the new service prompts or has them removed. This change also affects the original skill, removing its service prompts, and the update applies everywhere. - For each skill, you must create and update only one router prompt. If you create and activate a second custom router prompt, all subsequent changes apply exclusively to the second router prompt.
Out-of-the-box sample prompt
The following code is a sample router prompt:
How the router prompt is used to connect to a live agent from a chatbot
End users using a BMC HelixGPT skill-based chatbot can chat with live agents during conversations. The instructions required for the chatbot to reroute to a live agent are available out of the box in the router and Live Chat prompts. The router prompt contains instructions for BMC HelixGPT to identify the intent of a user to connect to a live agent.
The following image shows the router prompt with the instructions to identify when a user wants to connect to a live agent:
If you create custom skills and prompts and want to use the live agent transfer feature, you must make sure that your router prompt contains the instructions to reroute to live agent chatting.
Prompt in BMC Helix Virtual Agent for connecting to a live agent from a chatbot
The Live Chat prompt in BMC Helix Virtual Agent is used to reroute end users to chat with live agents. The prompt contains instructions to ask for a summary of the issue from the user. BMC HelixGPT then offers a list of topics that the end user can choose from to chat with the corresponding live agent. In addition, a response is provided about the availability of the agent. If an administrator hasn't defined the list of topics in Mid-tier, the end user is routed to the next available live agent. Learn more about how an administrator can define a list of topics in Setting up support queues.
The following code is an example of the Live Chat prompt:
In the Live Chat prompt, the administrator must specify the topic_option parameter from one of the following values:
- Use the default topic
- Use the provided topic
- Present topics to the user
The Present topics to user option is the default option, and the topic_name parameter is left blank. The list of topics in that case is shown based on the topic configurations in Live Chat administration. For more information about how the topics are listed, see Setting up support queues.
The administrator must also specify the value for the topic_name parameter. This value is used when the Use default topic or Use the provided topic options are selected. For example, if all conversations that are routed to the live agent should have hardware as the topic name, the administrator can specify the value for the topic_name parameter to Hardware.
The response values are also available in the prompt out of the box.
Using router prompt to address user sentiments
To enable the BMC HelixGPT to respond appropriately to user sentiments such as greetings, feedback, or negative responses, link the sentiment-aware routing and response prompt to the skill. These prompts help improve user engagement and ensure that the BMC HelixGPT can handle different emotional tones effectively.
To respond to the user sentiments such as greetings, feedback, or negative responses:
Create and link the Router with Sentiments Mapping prompt to the skill, or add the Sentiments Mapping instructions from the prompt into your router prompt. Copy point 14 from the following prompt to include sentiments mapping instructions in your router prompt.
The following is the Router with Sentiments Mapping prompt:
- Also, link the Sentiments Response prompt to the skill. Use this prompt to provide an option button to users to fallback to Live Agent in case of negative sentiments from the user.
You can adjust the instructions in this prompt to handle the negative responses and the options provided to the negative sentiments of the end user.
The following are the Sentiments Response prompt instructions:
- Make sure to link the Live Chat prompt and its router mapping to the skill.
The following image displays the results of using the Router with the Sentiments Mapping prompt and the Response prompt in the skill.
Related topic