Tutorial - Send alerts to sales reps using the Slack node

Cover image

In this tutorial, we will guide you through setting up a workflow that uses the Slack node to send alerts to sales representatives.

We'll use the allocate node to find the Slack ID associated with a Salesforce ID for the account's owner.


Pre-requisites

Before you begin

Ensure you have:

  • A Slack account connected to your Cargo workspace.
  • Sales reps presents your revenue organization in Cargo.
  • Relevant data model set up that tracks client activities or relevant metrics and includes an owner's ID along with each account.

Step 1

Configure the allocate node

Add an allocate node to your workflow. This node will help determine the Slack ID associated with the Salesforce ID for the account's owner.

Ensure that you have set up the necessary configurations to manage the mappings effectively.


  • Record ID: Use an expression to reference as the unique ID of the allocation, e.g., {{nodes.start.id}}.
  • Type: Choose Matching.
  • Matching connector: Select Slack as the connector that matches Salesforce IDs to Slack IDs.
  • Matching member ID: Use an expression to reference the Salesforce ID, e.g., {{nodes.start.ownerID}}.


Step 2

Configure the Slack node

Add a Slack node to your workflow.


Example Slack message content node configuration

Hi {{nodes.allocate.member.ids.slack}},

A client has reached a significant milestone. Please follow up with them to discuss potential upsell opportunities.

Client Name: {{nodes.start.clientName}}
Milestone: {{nodes.start.milestone}}

Set up the message template to include the necessary information that will be sent to the sales rep. For example:



## Execute the workflow

Once you have configured the allocate and Slack nodes, execute the workflow to send alerts to sales representatives based on specific conditions.


Outcome

Finish line

By the end of this tutorial, you will have successfully set up a workflow that uses the Slack node to send alerts to sales representatives based on specific conditions.