Alert RevOps in Slack when a reply mentions GDPR or legal action

Replies that contain words like GDPR, lawyer, legal or report are posted to a compliance channel in Slack and labeled for review, so sensitive replies get a careful answer fast.

AlertsSlackRevOpsSales leaderTeam plan
When
Incoming MessageAll channels
Only if
Message contains GDPR, lawyer, legal, solicitor or report
Then
Add labelsCompliance review
And
Notify in SlackPost the reply and thread link to #compliance

Why teams run it

Sensitive replies are handled by the right person instead of a rep answering in a hurry.

Set it up in Master Inbox

  1. In Master Inbox, open Settings, then Workflows, and click Add a workflow.
  2. Name it Alert RevOps in Slack when a reply mentions GDPR or legal action.
  3. Set the trigger to Incoming Message and choose All channels.
  4. Add a condition: Message contains GDPR, lawyer, legal, solicitor or report.
  5. Add the action Add labels: Compliance review.
  6. Add the action Notify in Slack: Post the reply and thread link to #compliance.
  7. Save the workflow and switch it to Active.

Before you start, connect Slack under Settings, Integrations.

Or create it with the API

Everything in the workflow builder is also in the Master Inbox API. This request creates the same workflow. Replace the example ids with your own label, list and campaign ids from GET /workflows/filter-fields. This workflow also uses conditions: add them under trigger_config.conditions, as shown on the conditions page.

curl -X POST https://api.masterinbox.com/api/api-webhook/v1/api/workflows/create-workflow \
  -H "Authorization: Bearer $MASTER_INBOX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Alert RevOps in Slack when a reply mentions GDPR or legal action",
  "trigger_type": "incoming_message",
  "trigger_config": {
    "channel_ids": [
      "-1"
    ]
  },
  "action_configs": [
    {
      "action_type": "add_labels",
      "label_ids": [
        176480
      ]
    },
    {
      "action_type": "slack_notify",
      "payload_variables": [
        "name",
        "company_name",
        "label_names",
        "text",
        "thread_url"
      ],
      "show_draft": true
    }
  ]
}'

Full reference: workflow API guide and API docs.

Or ask Claude, ChatGPT or Grok to build it

Our workflow guide is written for AI agents to read. Give your assistant your API key and this prompt:

Read https://app.masterinbox.com/public-workflow-api.md and use my Master Inbox API key to create this workflow: "Alert RevOps in Slack when a reply mentions GDPR or legal action". First call GET /workflows/filter-fields and look up my label, list and channel ids, then create the workflow and tell me what you set up.

Questions

Will this stop the AI labeler?

AI labeling only labels leads with no label. If you want AI labels on these replies too, swap the Add labels action for the Slack alert only.

Can I add words in other languages?

Yes. The message condition matches any word in the list.

Can I build this workflow through the API?

Yes. Send the create-workflow request shown on this page with your Master Inbox API key. The API checks the payload first and lists every problem by field if anything is off.

Which plan includes this?

This workflow works on the Team plan. Every plan has unlimited users and starts with a free 7-day POC.

Learn more

Related workflows

Browse all 177 workflows

Run this on your own inboxes

Free 7-day POC. Unlimited users on every plan.

Start your free 7-day POC