---
schema_version: "1"
id: a3fd4cb367f9467986e8dabe7a0ff09398068598b02441eae3cbdd97d86348c6
title: Connect an Agent to Service Email
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ai/264-0-0/agent_email_parent.md
canonical_url: https://help.salesforce.com/s/articleView?id=ai.agent_email_parent.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 3b6ae31e7fe9fecc85130ad5e02d54ad9a65121334610c4a708fa55d19042af1
description: Agentforce Service agents can autonomously respond to customer email inquiries. For example, if a customer emails you asking when their package will arrive, your agent can respond to them with the estimated delivery date and tracking number. Email responses are grounded in your Agentforce Data Libraries.
products:
  - Agentforce
  - Cross Cloud
release: "264"
---
# Connect an Agent to Service Email

Agentforce Service agents can autonomously respond to customer email inquiries. For example, if a customer emails you asking when their package will arrive, your agent can respond to them with the estimated delivery date and tracking number. Email responses are grounded in your Agentforce Data Libraries.

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

          </tr>
          <tr class="">
            <td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Enterprise</strong>, <strong>Performance</strong>, <strong>Unlimited</strong>, and
              <strong>Developer</strong> Editions. <a href="https://help.salesforce.com/s/articleView?id=ai.agent_setup_explore_types.htm&amp;release=264.0.0&amp;type=5" title="Learn about agent types and default templates for specific clouds and common use cases.">Required
                add-on licenses vary by agent type.</a>
            </td>

          </tr>
          <tr class="">
            <td class="slds-cell-wrap" style="vertical-align:top;">
              <p><span style="vertical-align:text-bottom;display:inline-block;"><img style="margin-bottom:0;" src="https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ai-generative_ai-264-0-0-production-enus/f8ef6498-d7b2-44e3-9b34-ffd5a850aae9/resources-global/_corporate/images/checkmark.png" alt="Check mark"></span>This article applies to: Agentforce Service agents</p>
              <p><span style="vertical-align:text-bottom;display:inline-block;"><img style="margin-bottom:0;" src="https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ai-generative_ai-264-0-0-production-enus/f8ef6498-d7b2-44e3-9b34-ffd5a850aae9/resources-global/_corporate/images/crossmark.png" alt="Cross mark"></span>This article doesn't apply to: Agentforce Employee agents</p>
              <p style="margin-bottom:0;">To learn about channel support for other agent types, see the documentation for
                that type.</p>
            </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="d108783e103">User Permissions Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d108783e103 ">To create email templates:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d108783e103 ">Lightning Experience User </td>

          </tr>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d108783e103 ">To edit public email templates:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d108783e103 ">Modify All Data, Manage Public Lightning Email Templates, or template
              ownership</td>

          </tr>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d108783e103 ">To create Agentforce Service Agent email configurations:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d108783e103 ">Manage Agentforce Service Agents AND Manage AI Agents OR Customize Application</td>

          </tr>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d108783e103 ">To edit routing addresses:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d108783e103 ">Customize Application</td>

          </tr>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d108783e103 ">To create Omni-Channel flows:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d108783e103 ">Customize Application</td>

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

![Email sent by an Agentforce Service Agent.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ai-generative_ai-264-0-0-production-enus/f8ef6498-d7b2-44e3-9b34-ffd5a850aae9/generative_ai/images/asa_email_setup.png)

When an Agentforce Service agent emails a customer, the Sender field shows the Email-to-Case routing address to which their email was sent. The email includes a custom legal disclosure indicating that it was written using AI, and customers can request that their inquiry be escalated to a service rep. The email structure is based on a template that you create, and its content is determined by the subagents, actions, and instructions that you add to your agent. An Omni-Channel flow controls when your agent can email customers, or you can use a basic alternative to a flow. You can monitor emails sent by your Agentforce Service agent in a custom report, and they also appear in the case feed like any other case email.

To get started with Agentforce for Service on Email, complete several key pre-setup tasks.

1. [Enable Flex Credits.](https://help.salesforce.com/s/articleView?id=ai.usage_flex_credits.htm&type=5&language=en_US)
2. [Create an Agentforce Service agent](https://help.salesforce.com/s/articleView?id=ai.service_agent_setup.htm&release=264.0.0&type=5 "Agentforce Service agents intelligently support your customers by connecting to messaging and other channels and escalating to reps when necessary. Use the default Agentforce Service Agent template to create an agent designed to resolve common support cases and requests. Or select from more specialized templates to fit your use case."). Then select a data source to ground its responses, and activate the agent. Agentforce Service Agent on Email won’t be visible in Setup until you [enable Agentforce](https://help.salesforce.com/s/articleView?id=ai.agent_setup_enable.htm&release=264.0.0&type=5 "Turn on Agentforce to start building, customizing, testing, and launching AI agents.").
3. If your agent includes a user verification subagent, [remove it from the agent](https://help.salesforce.com/s/articleView?id=ai.copilot_topics_remove.htm&release=264.0.0&type=5 "As needed, make sure that your agent continues to deliver helpful and relevant responses by removing subagents you no longer need."). Agentforce Service Agent on Email doesn’t support end-user verification.
4. [Turn on and configure Email-to-Case](https://help.salesforce.com/s/articleView?id=service.setting_up_email-to-case.htm&language=en_US), and add one or more verified routing addresses.
5. Enable Lightning threading for emails. [Learn more](https://help.salesforce.com/s/articleView?language=en_US&id=service.support_email_to_case_threading.htm).

- **[Considerations for Agentforce Service Agent on Email](https://help.salesforce.com/s/articleView?id=ai.service_agent_considerations_1.htm&release=264.0.0&type=5)**  
    Some features aren’t supported in Agentforce Service Agent on Email. Review considerations and limitations for this tool.
- **[Create an Email Template for Agentforce Service Agent on Email](https://help.salesforce.com/s/articleView?id=ai.service_agent_email_template.htm&release=264.0.0&type=5)**  
    Create a Lightning email template that defines the structure of all emails sent by your Agentforce Service agent. Classic email templates are not supported.
- **[Create an Email Configuration for Agentforce Service Agent on Email](https://help.salesforce.com/s/articleView?id=ai.service_agent_email_configuration.htm&release=264.0.0&type=5)**  
    The email configuration connects your email template to an Agentforce Service agent. Create it in Setup, and then link it to one or more routing addresses.
- **[Update Your Routing Logic for Agentforce Service Agent on Email](https://help.salesforce.com/s/articleView?id=ai.service_agent_email_routing.htm&release=264.0.0&type=5)**  
    Nearly all of the puzzle pieces are in place, but Salesforce still needs to know when the agent should use your email template to email customers. We recommend creating an Omni-Channel flow that controls which cases are routed to your Agentforce Service agent versus a service rep.
- **[Test Agentforce Service Agent on Email](https://help.salesforce.com/s/articleView?id=ai.service_agent_email_test.htm&release=264.0.0&type=5)**  
    If you’re using an Omni-Channel flow for routing, test your flow with a new unused routing address. Then, switch to an active routing address when you’re ready.
- **[Monitor Emails Sent by an Agentforce Service Agent](https://help.salesforce.com/s/articleView?id=ai.service_agent_email_monitor.htm&release=264.0.0&type=5)**  
    To view and monitor emails sent by an AI agent, create a custom report or check the case feed for a specific case.
- **[Use Custom Variables for Agentforce Service Email](https://help.salesforce.com/s/articleView?id=ai.service_agent_email_use_context_variables_for_agentforce_svc_email.htm&release=264.0.0&type=5)**  
    Agentforce Service Agent now passes inbound email context, such as the Case ID, into custom variables instead of bundling it with the user message. You can reference these variables in your topics and action inputs for more reliable automation.