---
schema_version: "1"
id: 185911f3558db17cf6cb3f1cda30a5a330fc2e164205a5a7bcfac2505224f106
title: Testing Agentforce Engagement Reply Emails in Agentforce Builder
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/sales/264-0-0/sales_agent_sdr_test_reply_email.md
canonical_url: https://help.salesforce.com/s/articleView?id=sales.sales_agent_sdr_test_reply_email.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 0c4b1fefac484dccfba72d703677fd4a59b6ac8bc8dcff9cc5d4f3fd7b6cc548
description: To see how your Engagement agent generates reply emails to prospects, use the Preview panel in Agentforce Builder. The agent generates its reply email using the prospect’s email response and the Draft Generic Reply Email, Draft Meeting Request Email, Draft Question Answer Email, or Opt Out Lead prompt templates.
products:
  - Sales Cloud
  - Agentforce
release: "264"
---
# Testing Agentforce Engagement Reply Emails in Agentforce Builder

To see how your Engagement agent generates reply emails to prospects, use the Preview panel in Agentforce Builder. The agent generates its reply email using the prospect’s email response and the Draft Generic Reply Email, Draft Meeting Request Email, Draft Question Answer Email, or Opt Out Lead prompt templates.

### 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>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d18069e63">User Permissions
              Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d18069e63 ">To set up Agentforce Engagement:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d18069e63 ">
              <p>Configure Engagement Agent</p>
              <p>AND</p>
              <p>Sales Engagement Cadence
                Creator</p>
              <p>AND</p>
              <p style="margin-bottom:0;">Automated Actions User</p>
            </td>

          </tr>
        </tbody>
      </table>

In Agentforce Builder, enter testing scenario values, an utterance in the chat window, and view the resulting reply email.

1. In Setup, enter Agents in the Quick Find box. Then click **Agentforce Agents**.
2. In the agent list, click **Einstein Sales Development Rep**.
3. On the Agent Details page, click **Open in Builder**.
4. On the Subagents tab, click the **Respond to Prospect** subagent, then click the **This Subagent’s Actions** tab.
5. Click the reply action you want to test. Choose either the Draft Generic Reply Email, Draft Meeting Request Email, Draft Question Answer Email, or Opt Out Lead prompt template.
6. Click the **Preview As** button.
7. In the Preview As panel, fill the fields according to what you want to test.
    1. For Email Scenario, choose **Reply**.
    2. For Record, choose the lead, contact, or person account record you want to test with. This is the prospect the SDR agent will use to customize its email.
    3. For the Email Body field, enter a sample customer reply email such as a product inquiry, a meeting request, an off-topic question, or an email opt-out request. The most recent customer email is used to ground the agent’s reply emails.
    4. For the Record Owner’s Inbox Enabled field, choose whether you want to test as if the record owner has Inbox turned on or not.
    5. When testing reply emails, leave the Agent’s Last Nudge Stage field blank.
8. To close the Preview Conditions panel, click the Back button.
9. In the Chat box, enter Respond to this email.
10. Click **Send**.

The agent generates an introductory email to the prospect using the parameters you entered. Agentforce Builder shows you the processing performed by the agent while generating the email. Because you aren’t actually sending the generated email during testing, an email scheduling error appears. You can ignore this error.

The email subject and body appear in the Output panel of the reply action you chose to test. Check the email to see if it meets your business requirements.