Send email to Salesforce leads from Slack

Social, UtilitiesCRMMarketingSalesUtilities

What it does

When someone runs a command in Slack, this automation searches Salesforce for matching leads. If exactly one lead is found, it sends an email and updates that lead record.

Who it's for

Sales teams who need to email a lead from Slack without opening Salesforce.

How teams use this

Email a lead without leaving Slack

Run the command with the lead name, and the email is sent and the Salesforce record is updated in one step. The team stays in the conversation and sees the confirmation right away.

Route emails to customer support

Point this automation at a support channel so incoming requests can trigger emails to leads in Salesforce. The same flow works for a different team and use case.

Add a custom message field to emails

Include a message prompt in the command so someone can type the email body when they run it. The email is sent with that custom text instead of a template.

Check lead status before sending

Add a condition to only send the email if the lead status is open or qualified. This prevents emails from going to closed or unqualified leads.

How it works

  1. Run the command in Slack. Type the command in a Slack channel or direct message with the lead information needed to search Salesforce for the right person.
  2. Search for matching leads. Search Salesforce for leads that match the command details so the automation knows which record to update and email.
  3. Send email and update the lead. When exactly one lead is found, send the email to that person and update the lead record in Salesforce with the message details.
  4. Reply with the result. Post a command reply in Slack so the channel knows whether the email was sent or if no lead or multiple leads were found.