Send Salesforce contact details to Slack from a link

BotsArtificial IntelligenceSales EnablementCRMMarketing

What it does

When a Salesforce contact link is posted in Slack, this automation loads that contact and the related cases. It replies with the contact details and how many cases are tied to them, or with the error if the lookup fails.

Who it's for

Customer support teams who need Salesforce contact context in Slack as soon as a link is shared.

How teams use this

See the contact behind a pasted link

Drop a Salesforce contact link in Slack and get the details and case count back in the thread. Nothing else has to change for the team to use it.

Prep sales for a call from the link

Invite the bot to a deal channel so a contact link returns the record and open-case count before a call. The flow stays the same and only the channel changes.

Give success the contact in an account channel

Use the same reply in a customer success channel so the team sees the contact and how many cases they have. The flow stays the same and only the channel changes.

Include the latest case subject

Add the subject of the most recent case to the reply so the channel sees what the contact last asked about. That is the only extra piece this setup needs.

How it works

  1. Watch for a contact link. Watch Slack for a message that mentions a Salesforce contact link in a channel where the bot is installed.
  2. Load the contact. Get that contact from Salesforce so the reply can include the name and account on the record.
  3. Count the related cases. List the cases related to that contact so the reply can say how many are tied to them.
  4. Reply with the contact details. Post the contact details and the case count in the same Slack conversation where the link was shared.
  5. Reply when the lookup fails. If Salesforce returns an error, post that error in the same conversation so the link can be checked.