Zum Inhalt springen
NEULerne Alaaddin kennen, deinen KI-Flaschengeist mit Stimme. trig8n startet am 1. Januar 2027. Neuigkeiten ansehen

Bibliothek / E-Mail-Automatisierung

E-Mail-Automatisierung

Draft safe email replies from webhooks with Groq and n8n Guardrails

When an API call/webhook arrives, it handles email with Groq and OpenAI / ChatGPT using Guardrails, Groq.

Was sie bewirkt

# Draft safe email replies from webhooks with Groq and Guardrails An AI assistant that reads email will follow instructions hidden inside it, because the model cannot tell your rules apart from text in the message. This workflow limits what the assistant can do, in code, instead of trusting it to resist. ### Who's it for Teams letting an AI draft replies to customer email, helpdesk tickets or form messages, who need to be sure it can never send data to the wrong place. ### How it works 1. Rebuilds the text a person would actually see and scores the message on anything hidden. 2. Replaces card numbers, IBANs and API keys before the model reads anything. 3. Stops high-risk messages before they reach the model. 4. Drafts a reply from your facts only. The recipient is set in code, never by the model. 5. Checks every reply in code for stray addresses, unapproved links, card or key shaped text, and length. 6. Holds anything that fails, with the reason, and reports the whole run. ### Setup steps - [ ] Add a Groq credential to POST Writing to LLM (the free tier is enough) - [ ] Fill about_us in Set Email Fields with the facts the assistant may use - [ ] Set allowed_recipient_domains and allowed_links to your own - [ ] Point action_url at your sending endpoint, or replace POST Final Reply with a Gmail, Outlook or Slack node - [ ] Send a test message to the webhook with dry_run on, read the report, then turn it off ### Customization Lower high_risk_at to hold more messages. Edit the numbered rules in Compose Writing Request to change tone or language. Validate Generated Reply is plain code, so you can add your own checks beside the ones there.

Die Schritte

  1. POST Screen Inbound Message
  2. Set Email Fields
  3. Normalize Email Input
  4. Extract Visible Content
  5. Apply Guardrails to Content
  6. Rebuild Message Content
  7. Check Message Safety
  8. Compose Writing Request
  9. POST Writing to LLM
  10. Validate Generated Reply
  11. POST Final Reply
  12. Generate Outcome Report
  13. Log Early Stop
  14. Merge Response Paths

Insgesamt 18 Schritte.

Ähnliche Automatisierungen