Configuring proactive chat for Web Messaging
Configure proactive chat in Pega Intelligent Virtual Assistant™ (IVA) for Web Messaging to engage with users in a chat window on your website by automatically inviting them to a conversation based on certain conditions. As a result, you enhance the user experience of your website for users, so that they immediately interact with your chatbot to solve an issue or ask for help, when needed.
For example, for an online store, if the total value of a shopping cart reaches a set amount on the website, the system can automatically open the Web Messaging chat window and display a message based on a response command for your IVA. For instance, the chatbot can display information about the available discounts for the dollar amount.- In the Digital Messaging Manager window, edit your Web Messaging connection, and then click the Proactive chat tab.
- Click Add trigger.
- In the Add trigger window, in the Proactive trigger field, enter a name for the proactive trigger that you will later reference in the embedded JavaScript code on your website.
- In the Display name field, enter a label to identify the trigger.
- In the Bot command field, enter a chatbot response command that you want to associate with the trigger.
- Turn on the Enabled switch.
- Click Add.
- Click Copy code snippet, and then, in the Copy
code snippet for proactive trigger window, copy the code snippet
to a text file.The available script from the Copy code snippet button is a sample of code that you can embed on the webpage from where the system launches the widget.
- In the text file, replace the $trigger_code variable with the name for the Proactive trigger that you specified in step 3.
- To define and embed more triggers on your website, repeat steps 2 through 9.
Previous topic Native virus scanning in Web Messaging with Digital Messaging Next topic Setting up the IVA for WhatsApp