Create Krevaya review drafts from webhook events without duplicates
Ready for 3.0What this workflow does
This workflow has 12 nodes and runs when an HTTP POST request hits its webhook URL. It uses only n8n's built-in nodes. It also calls api.krevaya.com over HTTP.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Set workflow configuration (Edit Fields (Set)): sets 3 fields: brand, allowed_platforms, default_platforms
- Validate event (Code): runs custom JavaScript code
- Is the event valid? (If): checks a condition and branches into true / false
- Report configuration problem (Respond to Webhook): sends the response back to the webhook caller
- Find Krevaya brand (HTTP Request): calls api.krevaya.com
- Reject invalid event (Respond to Webhook): sends the response back to the webhook caller
- Fail with configuration problem (Stop and Error): stops the run with an error
- Build draft requests (Code): runs custom JavaScript code
- Create review draft (HTTP Request): calls api.krevaya.com (POST)
- Summarize outcomes (Code): runs custom JavaScript code
…plus 1 more step. See the full node list below.
HTTP calls to: api.krevaya.com
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 (7)
- Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - HTTP Request
n8n-nodes-base.httpRequest - Respond to Webhook
n8n-nodes-base.respondToWebhook - Stop and Error
n8n-nodes-base.stopAndError
From the author
Quick overview This workflow receives authenticated webhook events and creates one Krevaya “draft for review” per requested social platform, using an Idempotency-Key to prevent duplicates, then returns per-platform results and an overall HTTP status to the…