Generate calming directions from short reflections with ImageHealAI webhooks
Ready for 3.0What this workflow does
This workflow has 11 nodes and runs when an HTTP POST request hits its webhook URL. It uses only n8n's built-in nodes. It also calls imagehealthy.com over HTTP.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Normalize Reflection Input (Code): runs custom JavaScript code
- Check Input Validity (If): checks a condition and branches into true / false
- Post to ImageHealAI API (HTTP Request): calls imagehealthy.com (POST)
- Build Validation Error Response (Code): runs custom JavaScript code
- Check API Response (If): checks a condition and branches into true / false
- Return Validation Error via Webhook (Respond to Webhook): sends the response back to the webhook caller
- Build Success Response (Code): runs custom JavaScript code
- Build API Error Response (Code): runs custom JavaScript code
- Return Success via Webhook (Respond to Webhook): sends the response back to the webhook caller
- Return API Error via Webhook (Respond to Webhook): sends the response back to the webhook caller
HTTP calls to: imagehealthy.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 (5)
- Webhook
n8n-nodes-base.webhook - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - HTTP Request
n8n-nodes-base.httpRequest - Respond to Webhook
n8n-nodes-base.respondToWebhook
From the author
Quick overview This workflow receives a short reflection through a webhook, validates it, and uses the public calming-direction API from website to return an everyday emotional state, two visual goals, and a structured JSON response with clear validation and…