Approve or reject Dokan marketplace vendors from Telegram
Ready for 3.0What this workflow does
This workflow has 16 nodes and runs on a schedule (every 15 minutes) (plus 2 other triggers). It uses only n8n's built-in nodes. It also calls api.telegram.org over HTTP.
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 Telegram channel (HTTP Request): calls api.telegram.org (POST)
- Clear dedupe (approve) (Code): runs custom JavaScript code
- Clear dedupe (reject) (Code): runs custom JavaScript code
- Confirm approval (Telegram) (HTTP Request): calls api.telegram.org (POST)
…plus 3 more steps. See the full node list below.
HTTP calls to: api.telegram.org
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (6)
- 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 - Respond to Webhook
n8n-nodes-base.respondToWebhook
From the author
Quick Overview This workflow polls your Dokan marketplace for vendors awaiting approval and posts each new pending vendor to Telegram with Approve/Reject actions, then updates the vendor status in Dokan via token-protected webhooks and confirms the result…