Send peer-to-peer rewards in Slack via Tango Card

Recipe ToolsData ParserMarketingUtilities

What it does

When someone runs the RewardBot command in Slack, this automation processes the reward order in Tango Card and checks the account balance. If the balance falls below a set threshold, it alerts an admin so the account stays funded.

Who it's for

Operations teams who manage peer-to-peer reward programs and need to monitor Tango Card spending from Slack.

How teams use this

Prevent duplicate rewards from being sent

Check the reference ID before processing so the same peer reward is never sent twice. This keeps spending accurate and prevents employee confusion.

Notify finance when balance runs low

Alert an admin when the Tango Card account balance hits a threshold so finance can top up the account before rewards fail. The team stays on top of spending.

Log all reward errors for review

Capture error codes from failed orders so the team can investigate what went wrong. Add a step to log each error to a spreadsheet or database for audit purposes.

Route high-value rewards for approval

Add a condition to check the reward amount and route orders above a limit to a manager for approval before Tango Card processes them. This gives finance control over spending.

How it works

  1. Receive the reward order. This automation receives order information from the previous step, including the recipient, amount, and a unique reference ID to prevent duplicate orders.
  2. Check for duplicate orders. Search Tango Card for orders with the same reference ID. If a match exists, the automation stops to prevent sending the same reward twice.
  3. Process the reward order. Create the order in Tango Card. If an error occurs, the automation captures the error code and does not retry.
  4. Parse the error response. Extract the error code from Tango Card to determine what went wrong. An admin is notified if the account balance is too low.
  5. Alert on low balance. Send an alert to an admin if the Tango Card account balance drops below the threshold so rewards can continue without interruption.