Templates / Draft safe email replies from webhooks with Groq and n8n Guardrails

Draft safe email replies from webhooks with Groq and n8n Guardrails

Ready for 3.0

by Muhammad Arsal Murad ✓ · 1 views · created 2026-09-25 · Ticket Management, AI Chatbot

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What 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.

  1. Set Email Fields (Edit Fields (Set)): sets 17 fields: allowed_recipient_domains, field_from, field_subject…
  2. Normalize Email Input (Code): runs custom JavaScript code
  3. Extract Visible Content (Code): runs custom JavaScript code
  4. Apply Guardrails to Content (Guardrails): sanitize
  5. Rebuild Message Content (Code): runs custom JavaScript code
  6. Check Message Safety (If): checks a condition and branches into true / false
  7. Compose Writing Request (Code): runs custom JavaScript code
  8. Log Early Stop (Code): runs custom JavaScript code
  9. POST Writing to LLM (HTTP Request): calls an HTTP API (POST)
  10. Merge: merges the data from its input branches

…plus 7 more steps. See the full node list below.

Services it uses

Guardrails

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)

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…

Excerpt from Muhammad Arsal Murad's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.