Configure Agent Chat in a portal
-
- UpdatedNov 12, 2024
- 7 minutes to read
- Xanadu
- Service Portal Designer
Your end users can initiate and maintain an Agent Chat conversation in any portal page. Write a script to pass portal-specific data to Agent Chat. For example, pass the name of your knowledge base to a Virtual Agent conversation.
Before you begin
- Activate the Glide Virtual Agent (com.glide.cs.chatbot) or the Agent Chat (com.glide.interaction.awa) plugin. You can activate the Glide Virtual Agent plugin only if you have a subscription.Note: For information about using Now Assist in Virtual Agent in portals, see Configuring Now Assist in Virtual Agent.
Procedure
Result
Customize the Agent Chat button
You can change the color and images that are used in the Agent Chat button in your portal.
Before you begin
If you plan to replace one or both of the images that are used in the Agent Chat button, upload the images to your instance. For more information on uploading an image, see Storing images in the database.
Role required: sp_admin or admin
About this task
- The image to indicate that the chat window is open
- The image to indicate that the chat window is closed
- The button background color
These elements are determined in the portal theme. To customize the Agent Chat button, update the relevant SCSS variables in the portal theme record. For more information, see Set up your bot's branding.
Procedure
Migrate from the Virtual Agent Service Portal widget
If you are upgrading from a previous release, your portal implementation may include the Virtual Agent Service Portal widget. Migrate widget options to the Agent Chat in Service Portal configuration and remove all instances of the widget to enable your users to initiate and maintain an Agent Chat conversation in any portal page.
Before you begin
Role required: (admin or none)
Procedure
Result
Pass page data to Agent Chat
Use the spContextManager class in a widget client script to pass dynamic page data to Agent Chat. For example, pass the number of approvals in the Approvals widget to Agent Chat when a user initiates a conversation from the Service Portal homepage.
Before you begin
Examine the widget to understand how data is passed to the
widget client script. To make data available to Agent Chat, you must pass it
to the spContextManager service. You can then access the data in
a Virtual Agent topic using
the vaContext
object. For more information about using context
variables in Virtual Agent
scripts, see Virtual Agent scripts.
Procedure
Result
Remove Live Chat link from the header menu
If your portal includes a Live Chat link in the header menu, you can remove it by updating the widget's option schema.
Before you begin
Role required: admin
About this task
Adding the Chat Queue field to a portal record adds the Live Chat link to the portal's header menu. If you integrate your portal with Agent Chat, the Live Chat link is no longer needed.
Procedure
Result