Библиотека / Автоматизация эл. почты
Автоматизация эл. почты
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.
Что делает
# 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.
Шаги
- POST Screen Inbound Message
- Set Email Fields
- Normalize Email Input
- Extract Visible Content
- Apply Guardrails to Content
- Rebuild Message Content
- Check Message Safety
- Compose Writing Request
- POST Writing to LLM
- Validate Generated Reply
- POST Final Reply
- Generate Outcome Report
- Log Early Stop
- Merge Response Paths
Всего шагов: 18.
Похожие автоматизации
Поддержка клиентов и служба помощиСортируйте и составляйте ответы поддержки с защитой персональных данных через OpenAI и PII GuardrailsШагов: 7Код, Git и инструменты разработчикаRedact and restore PII in OpenAI prompts with Enterprise PII GuardrailsШагов: 5Автоматизация эл. почтыCreate replay-safe client report Gmail drafts with webhooks and Data TablesШагов: 21Поддержка клиентов и служба помощиСоздание черновиков ответов на отзывы с OpenAI и передача рискованных случаев в SlackШагов: 12