Assign Salesforce leads from Slack

Social, UtilitiesCRMMarketingSales

What it does

When someone runs a command in Slack, this automation searches Salesforce for a lead by email or ID. It verifies the person exists as a Salesforce user, assigns the lead if found, and replies in Slack with the outcome.

Who it's for

Sales teams who need to assign Salesforce leads from Slack without switching to Salesforce.

How teams use this

Assign a lead by email address

Someone runs the command with a lead email and the automation finds and assigns that lead to them in Salesforce. They see the confirmation in Slack without leaving the channel.

Route leads to sales reps in Slack

Post leads in a Slack channel and let sales reps assign them with the command. The automation validates each rep against Salesforce so only active users can claim leads.

Add lead status update on assignment

Extend this automation to set the lead status to Assigned when the update happens. Include a status field in the Salesforce update so the lead reflects the new state immediately.

How it works

  1. Run the claim lead command. Type the command in Slack with the lead email or ID so the automation knows which lead to search for and who is claiming it.
  2. Search for the lead. Search Salesforce for a lead matching the email or ID provided in the Slack command so the right record can be found.
  3. Verify someone exists in Salesforce. Search Salesforce for a user record with the same email as the person who ran the Slack command to confirm they are active.
  4. Assign the lead when valid. Update the lead in Salesforce to assign it to someone only if one lead was found and that person exists as a Salesforce user.
  5. Reply with the outcome. Post a message in Slack confirming whether the lead was assigned, not found, or the person was not recognized in Salesforce.