---
schema_version: "1"
id: afb31877045cbbd287b2fde738c29a95c405b447d8df6394824f4a30c379fb6e
title: Use a Flow to Queue Specific Agent Emails for Manual Review (Optional)
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/sales/264-0-0/sales_agent_sdr_rbs_flow_example.md
canonical_url: https://help.salesforce.com/s/articleView?id=sales.sales_agent_sdr_rbs_flow_example.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 919f7064bc8c2404907dd76bae8450bc835303a347d1f584491b34fe7d624fd6
description: To queue agent emails for manual review according to a custom set of criteria, build a flow that the agent can use to know which emails to queue. For example, you could choose to review only emails to leads in a certain geography such as Seattle, Washington USA, or industry such as Financial Services for review.
products:
  - Sales Cloud
  - Agentforce
release: "264"
---
# Use a Flow to Queue Specific Agent Emails for Manual Review (Optional)

To queue agent emails for manual review according to a custom set of criteria, build a flow that the agent can use to know which emails to queue. For example, you could choose to review only emails to leads in a certain geography such as Seattle, Washington USA, or industry such as Financial Services for review.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Lightning Experience in <strong>Enterprise</strong>, <strong>Performance</strong>, and <strong>Unlimited</strong> editions with Sales and Einstein for Sales.</td></tr></tbody></table>

Additional examples of custom manual reviews include:

- Review the first email to each new prospect.
- Review emails sent to strategic accounts (Tier 1, Tier 2, etc.).
- Auto-send initial outreach and review only agent replies to prospect responses.
- Review emails sent to prospects in regulated regions.

For detailed information about creating flows, see [Build a Flow](https://help.salesforce.com/s/articleView?id=platform.flow_build.htm&type=5&language=en_US).

To correctly queue selected emails for review, the flow must meet a few requirements:

- The flow must be a **Cadence Step Review Criteria Autolaunched Flow**.
- The flow must be active before it can be selected in the agent’s Require Manual Approval settings.
- The flow must return a `needsReview` boolean variable with a value of True or False.

The flow can optionally return two additional variables.

- `reviewDurationInHours`: A number representing the length of the review window.
- `reviewDisposition`: A string representing what the agent should do with the email if the review window expires. Valid values are `SendAnyway` or `CancelOutreach`.

In this example, the flow uses a Get Records element to get the details of the lead record passed into the flow.

![The flow canvas with the Get Records element selected.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-sales-sales_agents-264-0-0-production-enus/3bcb4a4b-868d-4b4f-b735-d76004124785/sales_agents/images/lead_nurturing_cstm_email_rev_flow_overview.png)

The Get Records element specifies the Lead object and confirms that the lead ID matches the agent’s cadence target ID. The agent uses a Sales Engagement cadence to manage its outreach to each prospect.

![The Get Records element details.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-sales-sales_agents-264-0-0-production-enus/3bcb4a4b-868d-4b4f-b735-d76004124785/sales_agents/images/lead_nurturing_cstm_email_rev_flow_getrec_detail.png)

Next, a decision element determines whether the lead is from Seattle.

![The Decision element details.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-sales-sales_agents-264-0-0-production-enus/3bcb4a4b-868d-4b4f-b735-d76004124785/sales_agents/images/lead_nurturing_cstm_email_rev_flow_decision_detail.png)

Finally, the flow branches to two separate assignment elements. The Seattle assignment element sets a `needsReview` variable to True and the `reviewDisposition` to cancelOutreach. The Seattle assignment element also sets a reviewDurationHours variable to 96 hours (8 days).

![The Assignment element for leads in Seattle.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-sales-sales_agents-264-0-0-production-enus/3bcb4a4b-868d-4b4f-b735-d76004124785/sales_agents/images/lead_nurturing_cstm_email_rev_flow_assign_detail1.png)

The non-Seattle assignment element sets the needsReview variable to False, which lets the agent send the email without manual review.

![The Assignment element for leads not in Seattle.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-sales-sales_agents-264-0-0-production-enus/3bcb4a4b-868d-4b4f-b735-d76004124785/sales_agents/images/lead_nurturing_cstm_email_rev_flow_assign_detail2.png)