Creating an Agent for an Agentic Messaging Interface
3 Tasks
20 mins
Scenario
U+ Bank wants to empower its customers to self-serve common requests without waiting for a live customer service representative. To support this goal, the bank has decided to deploy an AI-powered Self-Service Agent in an Agentic Messaging channel. The Agent will guide customers through the end-to-end process of submitting and resolving fee-related inquiries and fee waiver requests without human intervention.
Your task is to create the initial Self-Service Agent in Infinity Studio so that it can interact with customers, access relevant customer data, and submit fee-related requests automatically.
The following table provides the credentials you need to complete the challenge:
| Role | User name | Password |
|---|---|---|
| CS Developer | CSDeveloper | password123! |
| Customer | Emily | rules |
Your assignment consists of the following tasks:
Task 1: Create an AI Agent
On the Generative AI landing page, create a new Agent Rule named Self-Service Agent.
Task 2: Create an Agentic Messaging channel
Create a new Agentic Messaging channel interface to respond to service requests received from the U+ Bank website.
Task 3: Connect to U+ Bank
Install your Web Messaging widget for your U+ Bank application by providing the installation URL.
Task 4: Confirm your work
On the U+ Bank website, confirm that the chat widget is available.
Challenge Walkthrough
Detailed Tasks
1 Create an AI Agent
- Click the Launch Pega Infinity™ bookmark, and then log in as Customer Service Developer:
- In the User name field, enter CSDeveloper.
- In the Password field, enter password123!.
- In the header of Infinity Studio, click Create.
- Click Generative AI, and then click Agent to begin creating the Self-Service Agent.
- In the Agent Record Configuration section, in the Label field, enter Self-Service Agent.
- In the Scope section, select Application.
- In the Context section, complete the details:
- Select U+Bank.
- In the Apply to (class) field, ensure that PegaCS-UIPages is displayed.
- In the Add to ruleset list, select NSUplusDev 01-01-01.
- Click Create and open to save the changes.
- Click the Settings tab.
- In the AI Model section, ensure that the Pega-Default-Smart AI model for the Agent is the default selection.
- Click the History tab, and then in the Description field, enter The purpose of this agent is to assist customers in managing their fee inquiries. It can answer questions about fees, investigate potential fee discrepancies, and initiate fee waivers or adjustment requests on behalf of the customer.
- Click Save to save the Self-Service Agent.
2 Create an Agentic Messaging channel
- In the navigation pane of Infinity Studio, click Channels.
- Click the Channels Landing Page icon.
- In the Create new channel section, click Agentic Messaging to create a channel interface.
- On the Overview tab, in the Channel name field, enter a channel interface name.
For example, U+ Banking Agentic Messaging. - In the Channel description field, enter a meaningful description for the channel.
For example, Agentic messaging channel for retail banking. - In the Agent settings section, in the Agent list, select Self-Service Agent, which assists customers with their fee inquiries.
- On the Configurations tab, in the Connections section, in the Template operator field, enter CSDeveloper.
Note: The system populates the Base URL. Ensure that the Base URL is the same as your current enablement instance URL.
- Click Save.
After you save the details, the Manage connections button is displayed.
3 Connect to U+ Bank
- Click Manage connections to add a Web Messaging connection.
- In the Digital Messaging Manager window, click Add connection.
- Click Web Messaging to install a chat widget on the U+ Bank website.
- On the New Web Messaging landing page, on the General tab, enter the following details:
- In the Name field, enter Retail bank.
- In the Chat heading field, enter Let's chat
- Click Save to create a connection between Retail bank and Web Messaging.
- On the Installation tab, copy the URL (from the src param). Then, open Notepad and paste the URL.
Note: You can paste the URL into each web page where you want to display the Web Messaging widget.
-
Click the Security tab, and then click Show JWT Secret.
Copy the displayed value and keep it handy.
-
Close the Digital Messaging Manager window.
Available in the following mission:
Want to help us improve this content?