Unsubscribe opt-outs in Smartlead automatically

When a reply is labeled Unsubscribe, Master Inbox unsubscribes the lead in Smartlead and adds a Do not contact label, so no further Smartlead step goes out.

HygieneSmartleadRevOpsTeam plan
When
Add LabelUnsubscribe
Then
Unsubscribe in SmartleadThe lead's active campaigns
And
Add labelsDo not contact

Why teams run it

One click, or one AI label, honors the opt-out in the tool that sends.

Set it up in Master Inbox

  1. In Master Inbox, open Settings, then Workflows, and click Add a workflow.
  2. Name it Unsubscribe opt-outs in Smartlead automatically.
  3. Set the trigger to Add Label and choose Unsubscribe.
  4. Add the action Unsubscribe in Smartlead: The lead's active campaigns.
  5. Add the action Add labels: Do not contact.
  6. Save the workflow and switch it to Active.

Before you start, connect Smartlead 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.

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": "Unsubscribe opt-outs in Smartlead automatically",
  "trigger_type": "add_label",
  "trigger_config": {
    "label_ids": [
      176479
    ]
  },
  "action_configs": [
    {
      "action_type": "unsubscribe_from_campaign_smartlead",
      "campaign_ids": [
        "camp-1"
      ]
    },
    {
      "action_type": "add_labels",
      "label_ids": [
        176480
      ]
    }
  ]
}'

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: "Unsubscribe opt-outs in Smartlead automatically". 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

Which Smartlead connection does this need?

The unsubscribe action needs the Smartlead API key connection.

Do Smartlead categories need to match?

For label sync, the Smartlead category must already exist with the exact label name.

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