Draft safe email replies from webhooks with Groq and n8n Guardrails
Ready for 3.0What this workflow does
This AI workflow has 18 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects Guardrails.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Set Email Fields (Edit Fields (Set)): sets 17 fields: allowed_recipient_domains, field_from, field_subject…
- Normalize Email Input (Code): runs custom JavaScript code
- Extract Visible Content (Code): runs custom JavaScript code
- Apply Guardrails to Content (Guardrails): sanitize
- Rebuild Message Content (Code): runs custom JavaScript code
- Check Message Safety (If): checks a condition and branches into true / false
- Compose Writing Request (Code): runs custom JavaScript code
- Log Early Stop (Code): runs custom JavaScript code
- POST Writing to LLM (HTTP Request): calls an HTTP API (POST)
- Merge: merges the data from its input branches
…plus 7 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)
- Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - Guardrails
@n8n/n8n-nodes-langchain.guardrails - If
n8n-nodes-base.if - HTTP Request
n8n-nodes-base.httpRequest - Merge
n8n-nodes-base.merge
From the author
Quick overview Receives inbound messages through a webhook, strips hidden instructions and sensitive data, and drafts a reply with Groq from facts you approve. Every reply is checked in code before sending, and the recipient is set in code from the original…