Contact Us

March 29, 2024

May 13, 2026 2:13 pm

Sending emails with Agentforce using draft email action

Share with

Understanding Agentforce Email Actions

Agentforce provides various actions to automate tasks, including email sending. However, the process of sending an email using an Agent Action is not immediately clear. The Draft Email action seems to be the key to sending emails, but it requires making the action live and utilizing the Send Email Global Action.

Configuring the Draft Email Action

To send an email using the Draft Email action, follow these steps: create an Agent Action to generate the email body content, then create another Agent Action to draft the email using the generated content, and finally, make the Draft Email action live to send the email.

The root cause of the confusion is the lack of a clear, out-of-the-box Agent Action for sending emails in Agentforce. The Draft Email action, while available, does not clearly indicate its ability to send emails when made live.

Implementing the Solution

To implement the solution, teams running Agentforce can follow these steps: create the necessary Agent Actions, configure the Draft Email action, and make it live to send the email.

Agentforce Email Action Configuration

// Example configuration for the Draft Email action
// Create an Agent Action to generate the email body content
// Create another Agent Action to draft the email using the generated content
// Make the Draft Email action live to send the email

Heads up: When using the Draft Email action, ensure that the Send Email Global Action is properly configured to send the email.

Best Practices and Next Steps

When using Agentforce to send emails, it is essential to follow best practices, such as testing the email actions and ensuring that the email templates are properly configured.

Checklist for Sending Emails with Agentforce

  • Create an Agent Action to generate the email body content
  • Create another Agent Action to draft the email using the generated content
  • Make the Draft Email action live to send the email
  • Test the email actions to ensure they are working correctly
  • Ensure that the email templates are properly configured

What is the purpose of the Draft Email action in Agentforce?

The Draft Email action is used to draft an email and send it when made live, utilizing the Send Email Global Action.

Can I use a Lightning Email Template with the Draft Email action?

Yes, you can use a Lightning Email Template with the Draft Email action to include a header and footer in the email.

How do I configure the Send Email Global Action?

The Send Email Global Action is configured in the Agentforce settings, and it is used by the Draft Email action to send the email when made live.

What are the benefits of using Agentforce to send emails?

The benefits of using Agentforce to send emails include automation of email sending, personalization of email content, and integration with other Agentforce features.

Genetrix Technology · Salesforce Marketing Cloud Partner

Need help shipping this in production?

Genetrix builds and untangles Salesforce Marketing Cloud and Agentforce setups for teams that want it done right the first time. If anything in this post sounds familiar, talk to us before it ships.

Get in Touch with Genetrix →

Blogs for the

Business-Savvy!​

Let’s Connect

A 30 min no cost strategy session
with cloud support expert

Let’s Connect

A 30 min no cost strategy session
with cloud support expert