Skip to main content

Configuring Sales Assistant in Pega Sales Automation

5 Tarefas

15 min

Pega Sales Automation '25
Visível para: All users Applies to: Pega Sales Automation '25
Beginner
Inglês

Scenario

Acme Technologies wants to improve sales team productivity by configuring a Sales Assistant agent in Pega Sales Automation™. The agent will support sales representatives in managing opportunity data, scheduling meetings, and automating tasks.

As a sales administrator, your task is to configure the Sales Assistant agent with the appropriate instructions and context, so that it can analyze emails, appointments, tasks, activities, opportunities, leads, and contacts. The agent must provide a list of the top five intelligent recommendations, each accompanied by clear reasoning. Additionally, it must respond accurately and perform actions that enhance the productivity of the sales team.

The following table provides the credentials you need to complete the challenge:

Role User name Password
Sales Administrator Sfasamplesysadmin rules
Sales Representative Tmason rules

Your assignment consists of the following tasks:

Task 1: Create an agent

Create a Prioritization Actions agent in the Generative AI section.

Task 2: Define agent instructions, guardrails, and tone

On the Definition tab, provide agent instructions, guardrails, and tone to enhance user interactions with the agent.

Task 3: Set up context Data Pages

In the Additional Context section, list the Data Pages that the agent requires.

Task 4: Add advanced tools and chaining

On the Advanced Tools tab, add actions the agent can perform.

Task 5: Select AI model 

On the Settings tab, select the AI model for the agent.

Task 6: Confirm your work

Test the scenario by logging in as a sales representative. Begin the interaction by asking Act as a prioritization agent and list the top 5 actions to perform across the provided sales automation work objects.

The agent analyzes emails, appointments, tasks, activities, opportunities, leads, and contacts to provide intelligent recommendations. It recommends a list of top 5 action items with clear reasoning.

 

Você deve iniciar sua própria instância da Pega para concluir este Challenge.

A inicialização pode leva até cinco minutos, portanto tenha paciência.

Challenge Walkthrough

Detailed Tasks

1 Create an agent

  1. In the Pega instance for the challenge, click Launch Pega Infinity to log in to Dev Studio:
    1. In the User name field, enter Sfasamplesysadmin.
    2. In the Password field, enter rules.
  2. Switch to Dev Studio, and then click Records.
  3. Click Generative AI > Agent.
  4. Click the Create button to create a new agent.
  5. In the Label field, enter Prioritization Actions.
  6. In the Context section, configure the details:
    1. Select SAPlus Constellation
    2. In the Apply to field, enter Data-Portal.
    3. In the Add to ruleset list, select the SAPlusC11N and the 01-01-02 version.
      Agent creation
  7. Click Create and Open.

2 Define Agent instructions, guardrails, and tone

  1. On the Definition tab, in the Instructions field, define the context and expected responses.

    For example, include work object definitions such as opportunities, leads, appointments, and emails. Specify how the agent should respond to user queries and whether the data should be loaded at agent initialization or on-demand.  
  2. In the Guardrails section, define validation rules to ensure that user inputs are in the correct format.

    For example, validate that email IDs are in a proper format.
  3. In the Response Style & Tone section, specify the tone of the agent's responses.

    Apply soft, casual, or formal tones depending on your use case.  For example, use language that is empathetic and solution-oriented, avoiding jargon unless contextually appropriate. 
    Download the sample Agent Instructions, guardrails, and tone for the Prioritization Actions agent to clearly define the role that you want the agent to embody, and to generate responses for the questions asked.
    Agent instructions guardrails and response style and tone

3 Set up context Data Pages

In the Additional Context section, click Add Data Page to list the Data Pages that the agent requires.

For example, include data pages for the following items:

Name

Data Page

Leads

D_FetchLeadsForCoach

Opportunities

D_FetchOpportunitiesForCoach

Contacts

D_FetchContactsForCoach

Recent Emails and Appointments

D_FetchRecentAppointmentsAndEmails

Accounts

D_FetchAccountsForCoach

Open and Completed tasks

D_FetchTasksForCoach

Actions from completed and upcoming appointments

D_FetchActionsForCoach

Nota: If the agent needs all data at load time, include the Data Pages in the Additional Context section. If the agent should fetch data only when needed, configure the Data Pages on the Knowledge tab.  
List of context Data Pages

4 Add advanced tools and chaining

  1. On the Advanced Tools tab, click Add to define the actions the agent can perform.
  2. In the Tool field, enter ScheduleMeeting, and then press the Enter key.
  3. Repeat steps 1-2 to add the CreateTask and SendEmail actions.
    Action sources for the AI agent to invoke
    Nota: To enable agent chaining, specify any child agents that the parent agent should invoke.  

5 Select AI model

  1. On the Settings tab, in the Model section, select the AI model that you want the agent to use.

    In this example, select the Claude-37-Sonnet model.
    Nota: For complex use cases, select the Claude-37-sonnet model. For simpler scenarios, use the GPT 4o or 4o mini. 
    AI model for the agent
  1. On the History tab, enter the following description:

    This sales assistant agent is used to suggest/recommend action items and run them and search the data/update the opportunity info etc. This agent helps the sales reps/sales managers on closing the deals successfully.
  2. Click Save to save the configuration.
  3. In the header of Dev Studio, click SAPlus Constellation > Channels and interfaces.
  4. On the Current channel interfaces landing page, click SA Portal.
  5. On the Content tab, click Landing pages > Home.
  6. In the Agents section, click Add.
  7. Click Prioritization Actions, and then click Add. Make sure the changes are saved.
  8. In the lower-left corner of Dev studio, click the user icon, and then click Log off.


Disponível na seguinte missão:

If you are having problems with your training, please review the Pega Academy Support FAQs.

Este conteúdo foi útil?

Quer nos ajudar a melhorar esse conteúdo?

We'd prefer it if you saw us at our best.

Pega Academy has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice