Skip to content

feat: add a recipe for the list variables#99

Merged
msrivastav13 merged 3 commits into
mainfrom
recipe/list-variables
May 12, 2026
Merged

feat: add a recipe for the list variables#99
msrivastav13 merged 3 commits into
mainfrom
recipe/list-variables

Conversation

@msrivastav13
Copy link
Copy Markdown
Contributor

What does this PR do?

This PR adds a new recipe for the list variables.

The docs for the recipes are here - https://developer.salesforce.com/docs/ai/agentforce/guide/ascript-patterns-var-list.html

What issues does this PR fix or reference?

N/A

The PR fulfills these requirements:

[ X] Tests for the proposed changes have been added/updated.
[X ] Code linting and formatting was performed.

Functionality Before

N/A

Functionality After

Screenshot 2026-05-12 at 3 59 33 PM

Daily standup agent that iterates through a list[string] of questions
using an index variable, len() for progress, and @utils.setVariables
to advance through the list one question per turn.
Removed the agent_router/subagent split that caused inconsistent topic
routing — subsequent turns would stay at the router and skip the
advance_question action. Using a single start_agent keeps the agent in
the same topic across all turns, ensuring question_index advances
reliably via @utils.setVariables.
Brings back the standard agent_router -> subagent structure used across
all recipes. Added label field and stronger description to the subagent
for reliable topic routing across turns. Tested: question_index advances
correctly via advance_question action on each turn.
@msrivastav13 msrivastav13 requested a review from a team as a code owner May 12, 2026 19:59
@msrivastav13 msrivastav13 added the enhancement New feature or request label May 12, 2026
Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Salesforce Code Analyzer found 82 violations, including 0 in files changed by this pull request. See job summary page.

@msrivastav13 msrivastav13 merged commit e209a1f into main May 12, 2026
7 checks passed
@msrivastav13 msrivastav13 deleted the recipe/list-variables branch May 12, 2026 20:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants