You are here:
Customize the Participant Summary Subagent
Customize the Participant Summary subagent grounding flow, record limits, and summary format to fit your organization's data model and needs.
Required Editions
| Available in: Lightning Experience |
| Available in: Enterprise, Professional, Unlimited, and Developer Editions with the Agentforce for Nonprofits Add On license, or the Agentforce 1 Nonprofit Edition, where Program Management is enabled. Requires each user to have the Agentforce or Einstein add-on to access the actions. |
| User Permissions Needed | |
|---|---|
| To customize flows: | Manage Flow |
| To customize prompt templates: | Prompt Template Manager permission set |
| To access the summary prompt template: | Programs Assistive AI permission set |
| To view the grounding flow: | View Flow |
The Participant Summary subagent uses the Get Participant Summary Details flow to retrieve grounding data for the Prepare Participant Summary prompt template. Review and configure this flow before going live so that it works correctly for your org.
- From Setup, in the Quick Find box, enter Flows, and select Flows.
- Open the Get Participant Summary Details flow.
-
Remove unused object paths.
The flow includes paths for every object you can include in a participant summary. If you don’t use a particular object, remove its path from the flow to prevent errors.
-
Locate the Include [Object]? Decision element for the object you want to
remove.
For example, if your org doesn't use Intake and Application Forms, find the Include Application Forms? Decision element.
- Delete the Decision element and all of its child paths.
- Repeat for each unused object.
Important If you leave unused object paths in the flow, and those objects are inaccessible in your org, the flow encounters errors at run time. If a user doesn't have access to an object, the flow doesn’t return records for that object and doesn’t throw an error. -
Locate the Include [Object]? Decision element for the object you want to
remove.
-
Adjust record limits.
To prevent exceeding the character limits while sending grounding data to the large language model, the flow includes maximum record count constants for each object. If you reach these limits, records stop being added to the grounding data without notifying the user.
- In the flow Resources panel, open the Toolbox.
-
Locate the Constant for the object you want to adjust.
For example, to allow the retrieval of more interactions, find the MaximumInteractions constant.
- To set a new maximum, edit the Value field.
- Repeat these steps for each object for which you want to adjust the limit.
-
Customize the summary format.
The flow uses two Text Template resources that inject prompt instructions into the Prepare Participant Summary prompt template at run time. These resources are added in the Add Initial Prompt Instructions element.
- DetailedSummaryTextTemplate: Used when there isn’t an object filter (full summary)
- ShortSummaryTemplate: Used when there’s an object filter (targeted summary)
- In the flow Resources panel, open the Toolbox.
-
Locate and open the Text Template resource you want to edit
(
DetailedSummaryTextTemplateorShortSummaryTemplate). - Edit the template text to adjust the structure, sections, or formatting of the generated summary.
- Save and activate the flow.
-
Change the default time horizon.
When a user requests a participant summary without specifying a date range, the agent defaults to 90 days. You can change this default by updating the agent instructions.
- Open the App Launcher, enter Agentforce, and select Agentforce Studio.
- Open your Participant Management agent.
- In the agent instructions, locate the text that specifies the default time range.
-
Update the number of days to your preferred default.
For example, change "90 days" to "180 days" or "365 days".
- Save your changes.
Note While testing the Prepare Participant Summary prompt template directly in Prompt Builder, always provide a value for the Number of Days. In production, the agent supplies this value automatically (defaulting to 90 days or your customized default).
The Participant Summary subagent now uses your customized flow configuration while generating summaries.
