Approve or reject Dokan marketplace vendors from Slack
Ready for 3.0What this workflow does
This workflow has 16 nodes and runs on a schedule (every 15 minutes) (plus 2 other triggers). Along the way it connects Slack.
How it runs
Trigger: On a schedule (every 15 minutes) (plus 2 other triggers).
- Fetch pending vendors (HTTP Request): calls an HTTP API
- Verify token (approve) (If): checks a condition and branches into true / false
- Verify token (reject) (If): checks a condition and branches into true / false
- Skip already-announced (Code): runs custom JavaScript code
- Activate vendor (HTTP Request): calls an HTTP API (POST)
- Mark inactive (HTTP Request): calls an HTTP API (POST)
- Post to Slack channel (Slack): uses Slack
- Clear dedupe (approve) (Code): runs custom JavaScript code
- Clear dedupe (reject) (Code): runs custom JavaScript code
- Confirm approval (Slack) (Slack): uses Slack
…plus 3 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (7)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - Webhook
n8n-nodes-base.webhook - If
n8n-nodes-base.if - Slack
n8n-nodes-base.slack - Respond to Webhook
n8n-nodes-base.respondToWebhook
From the author
Quick overview This workflow polls Dokan for newly registered vendors awaiting approval, posts each pending vendor to a Slack channel with Approve/Reject buttons, and updates the vendor’s status in Dokan when an admin clicks a button. How it works 1. Runs…