Mark a Salesforce account as do not contact when a prospect opts out
When a reply is labeled Do not contact or Unsubscribe, a webhook tells n8n to set the suppression fields on the Salesforce person and account, so the opt-out holds across every team.
Why teams run it
Respects opt-outs at the account level in the CRM, not just in one mailbox.
Set it up in Master Inbox
- In Master Inbox, open Settings, then Workflows, and click Add a workflow.
- Name it Mark a Salesforce account as do not contact when a prospect opts out.
- Set the trigger to Add Label and choose Do not contact or Unsubscribe.
- Add the action Send a webhook: Send the email, domain and label to n8n, which updates the Salesforce suppression fields.
- Save the workflow and switch it to Active.
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": "Mark a Salesforce account as do not contact when a prospect opts out",
"trigger_type": "add_label",
"trigger_config": {
"label_ids": [
176479
]
},
"action_configs": [
{
"action_type": "webhook",
"webhook_url": "https://hooks.example.com/master-inbox",
"webhook_payload_variables": [
"name",
"email",
"company_name",
"label_names",
"thread_url",
"text"
]
}
]
}'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: "Mark a Salesforce account as do not contact when a prospect opts out". 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
Can I set a re-contact date for Not now replies?
Yes. Run a second workflow on the Not now label and have n8n write a re-contact date instead of a suppression flag.
Does it also stop the sequencer?
Add Smartlead, Instantly or EmailBison actions to the same workflow to remove the lead there as well.
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 Revenue plan. Every plan has unlimited users and starts with a free 7-day POC.
Learn more
Related workflows
Push interested replies to Salesforce with n8n or Zapier
When a reply is labeled Interested, a webhook sends the lead, company, reply and thread link to n8n or Zapier, which creates or updates the...


CRM syncLog the cold email thread to Salesforce when a meeting is booked
When a prospect books through Cal.com or Calendly, a webhook sends the meeting time, the prospect and the thread link to n8n, which logs the activity...



CRM syncCreate a HubSpot task when a lead asks for a call
When a reply is labeled Call request, Master Inbox syncs the contact to HubSpot and a webhook to Zapier or n8n creates a call task for the contact...


CRM syncSend interested replies to Attio with custom field mapping
When a reply is labeled Interested, a webhook passes the lead, company, reply and thread link to Make or n8n, which creates or updates the Attio...


Run this on your own inboxes
Free 7-day POC. Unlimited users on every plan.
