---
schema_version: "1"
id: 091539e71ea4f5ed736279cf3185a2445a8ee0395fd88ce93ce32830bf88b92b
title: Batch Test Agentforce Engagement (Legacy) Reply Emails in the Testing Center
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/sales/264-0-0/sales_agent_sdr_batch_test_reply_email.md
canonical_url: https://help.salesforce.com/s/articleView?id=sales.sales_agent_sdr_batch_test_reply_email.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 6fd5673122c9331fbf80a5acfc53fa2d756924111dcce5b2bc8f58addad1ea56
description: To see how your Engagement agent generates reply emails at scale to prospects by using the prospect record details and the Draft Reply Email prompt template action, use Testing Center.
products:
  - Sales Cloud
  - Agentforce
release: "264"
---
# Batch Test Agentforce Engagement (Legacy) Reply Emails in the Testing Center

To see how your Engagement agent generates reply emails at scale to prospects by using the prospect record details and the Draft Reply Email prompt template action, use Testing Center.

### 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="d9722e61">User Permissions
              Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d9722e61 ">To set up and test Agentforce Engagement:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d9722e61 ">Configure Engagement Agent</td>

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

Agents created before October 27, 2025 used an older configuration process in Setup. These agents show only three subagents in Agent Builder. Use these testing steps if your agent shows three subagents in Agent Builder.

In the Testing Center, set test conditions, upload a CSV file, and view the resulting reply emails.

1. In Setup, enter Testing Center in the Quick Find box. Then click **Testing Center**.
2. Click **New Test**.
3. Give your test a name and select the Agentforce Sales Development Rep agent as the agent to test. Add a description for your test if you want. Click **Next**.
4. On the Test Conditions page, click **Include context variables**. Context variables define the conditions for your testing scenario, such as whether you’re testing leads, contacts, or person accounts, intro emails or replies, etc.
5. From the list of context variables, select the variables needed for your test. Then click **Next**.
    
    For testing reply emails, select the Record Type, Email Scenario, Action Cadence Step Tracker ID, Record, Email Body, and Lead Owner’s Inbox Enabled variables.
6. On the Test Data tab, **Upload Test Cases (.csv)** is selected by default. Use this option to create and upload a CSV file. Click **Template** to download a CSV file containing the columns you need for your test. You fill in only the columns needed for testing reply emails.
7. Open the template CSV file in a spreadsheet editor like Microsoft Excel or Google Sheets. Delete the placeholder data beginning on row two. Then populate the rows with the lead, contact, or person account records and the associated context values that define your nudge email testing scenario. For nudge emails, the CSV file includes these columns.
    
    - Utterance: the request sent to the LLM to initiate drafting the reply email.
    - Expected Subagent: the subagent used to draft the email.
    - Expected Actions: the agent action used to draft the email.
    - Expected Response: the type of response requested from the agent.
    - Context Variable OrchestrationStage: the email testing scenario. In this case the scenario is Reply.
    - Context Variable currentRecordId: This is a record ID of a lead, contact, or person account you want to test with.
    - Context Variable actionCadenceStepTrackerId: Your agent uses Sales Engagement Cadences to orchestrate its outreach. This is the ID of the email cadence step tracker associated with the lead, contact, or person account record. In Testing Center, use the dummy ID 8HF000000000000.
    - Context Variable currentObjectApiName: the name of the object you’re testing. Valid values are Lead and Contact. To test with person accounts, use Contact.
    - Context Variable emailBody: the body of the prospect email to which the agent is replying.
    - Context Variable Lead\_Owner\_has\_Inbox: indicates whether the record owner has Inbox enabled. To allow your agent to include a meeting booking link in a reply, Inbox must be enabled for the record owner. Valid values are True and False.
    
    Fill the rows of your CSV file according to these guidelines.
    
    <table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
            <colgroup>
              <col style="width:25%">
              <col style="width:25%">
              <col style="width:25%">
              <col style="width:25%">
            </colgroup>
            <thead class="slds-text-title_caps ">
              <tr class="">
                <th scope="col" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" id="d9722e221">Column NAME</th>
                <th scope="col" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" id="d9722e224">Different Values Per Row?</th>
                <th scope="col" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" id="d9722e227">Input Value</th>
                <th scope="col" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" id="d9722e230">Details</th>
              </tr>
            </thead>
            <tbody>
              <tr class="">
                <td data-label="Column NAME" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d9722e221 ">Utterance</td>

                <td data-label="Different Values Per Row?" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d9722e224 ">No</td>

                <td data-label="Input Value" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d9722e227 ">Respond to this email. Do not schedule the email. Your response should be a
                  text-formatted email and not JSON.</td>

                <td data-label="Details" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d9722e230 ">&nbsp;</td>

              </tr>
              <tr class="">
                <td data-label="Column NAME" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d9722e221 ">Expected Subagent</td>

                <td data-label="Different Values Per Row?" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d9722e224 ">No</td>

                <td data-label="Input Value" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d9722e227 ">Respond to Prospect</td>

                <td data-label="Details" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d9722e230 ">&nbsp;</td>

              </tr>
              <tr class="">
                <td data-label="Column NAME" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d9722e221 ">Expected Actions</td>

                <td data-label="Different Values Per Row?" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d9722e224 ">Yes</td>

                <td data-label="Input Value" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d9722e227 ">['Answer QuestionsWithKnowledge', 'DraftQuestionAnswerEmail']</td>

                <td data-label="Details" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d9722e230 ">
                  <p dir="ltr">This value changes based on the emailBody.</p>
                  <p dir="ltr">If
                    emailBody contains a product inquiry, use
                    <kbd>['AnswerQuestionsWithKnowledge',
                      'DraftQuestionAnswerEmail']</kbd>
                  </p>
                  <p dir="ltr">If emailBody
                    contains a meeting request only, use
                    <kbd>['DraftMeetingRequestEmail']</kbd>
                  </p>
                  <p style="margin-bottom:0;">If emailBody contains
                    an off-topic question only, use
                    <kbd>['DraftGenericReplyEmail']</kbd>
                  </p>
                </td>

              </tr>
              <tr class="">
                <td data-label="Column NAME" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d9722e221 ">Expected Response</td>

                <td data-label="Different Values Per Row?" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d9722e224 ">No</td>

                <td data-label="Input Value" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d9722e227 ">A reply email is successfully drafted.</td>

                <td data-label="Details" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d9722e230 ">&nbsp;</td>

              </tr>
              <tr class="">
                <td data-label="Column NAME" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d9722e221 ">Context Variable OrchestrationStage (Email Scenario)</td>

                <td data-label="Different Values Per Row?" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d9722e224 ">No</td>

                <td data-label="Input Value" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d9722e227 ">Reply</td>

                <td data-label="Details" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d9722e230 ">&nbsp;</td>

              </tr>
              <tr class="">
                <td data-label="Column NAME" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d9722e221 ">Context Variable currentRecordId</td>

                <td data-label="Different Values Per Row?" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d9722e224 ">Yes</td>

                <td data-label="Input Value" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d9722e227 ">A valid record ID</td>

                <td data-label="Details" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d9722e230 ">For nudge email testing, this is the only column that contains different
                  values per row. The record ID appears in the URL of the record detail
                  page.</td>

              </tr>
              <tr class="">
                <td data-label="Column NAME" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d9722e221 ">Context Variable actionCadenceStepTrackerId</td>

                <td data-label="Different Values Per Row?" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d9722e224 ">No</td>

                <td data-label="Input Value" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d9722e227 ">8HF000000000000 </td>

                <td data-label="Details" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d9722e230 ">This is a dummy value used for testing.</td>

              </tr>
              <tr class="">
                <td data-label="Column NAME" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d9722e221 ">Context Variable currentObjectApiName</td>

                <td data-label="Different Values Per Row?" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d9722e224 ">No</td>

                <td data-label="Input Value" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d9722e227 ">Lead or Contact</td>

                <td data-label="Details" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d9722e230 ">To test person accounts, use Contact.</td>

              </tr>
              <tr class="">
                <td data-label="Column NAME" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d9722e221 ">Context Variable emailBody</td>

                <td data-label="Different Values Per Row?" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d9722e224 ">Yes</td>

                <td data-label="Input Value" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d9722e227 ">What products do you offer?</td>

                <td data-label="Details" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d9722e230 ">There are three types of SDR Email Body utterances for replies, product
                  inquiry, meeting request, and off-topic question.</td>

              </tr>
              <tr class="">
                <td data-label="Column NAME" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d9722e221 ">Context Variable Lead_Owner_has_Inbox</td>

                <td data-label="Different Values Per Row?" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d9722e224 ">Yes</td>

                <td data-label="Input Value" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d9722e227 ">True</td>

                <td data-label="Details" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d9722e230 ">Can be True or False</td>

              </tr>
            </tbody>
          </table>Here’s an example of a valid CSV file for testing reply emails to leads.![An example CSV file for batch testing SDR reply emails.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-sales-sales_agents-264-0-0-production-enus/3bcb4a4b-868d-4b4f-b735-d76004124785/sales_agents/images/sales_agents_sdr_reply_email_csv.png)
8. On the Test Data page, click **Upload Files**. Select the CSV file that you created and click **Open**. When the upload is complete, click **Done**.
9. On the Evaluations page, a list of the available output quality evaluations appears. Select the evaluations that you want to see for the generated output. Then click **Save & Run**.
    
    Your new test appears in the Tests list in the Testing Center.
10. To run your test, click the test name in the Tests list.

The agent generates a reply email to each of the prospects by using the parameters in your CSV file. The generated output and evaluations appear in the Test Results list. Because you aren’t actually sending the generated email during testing, email scheduling errors can appear in the results. You can ignore these errors.

Check the results to see if the generated emails meet your business requirements.