Audit SPF, DKIM and DMARC DNS for sheet domains with Google DNS, GPT-4o-mini and Telegram
Ready for 3.0What this workflow does
This AI workflow has 16 nodes and runs on a schedule (every week at 08:00) (plus 1 other trigger). Along the way it connects Google Sheets, OpenAI Chat Model and Telegram. It also calls dns.google over HTTP.
How it runs
Trigger: On a schedule (every week at 08:00) (plus 1 other trigger).
- Read domains (Google Sheets): uses Google Sheets
- Build DNS queries (Code): runs custom JavaScript code
- DNS lookup (Google DoH) (HTTP Request): calls dns.google
- Score each domain (Code): runs custom JavaScript code
- Any problems? (If): checks a condition and branches into true / false
- AI fix plan (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI Chat Model; output parser: Fix plan format
- No action needed (Edit Fields (Set)): sets 1 field: fix_plan
- Attach plan to domain (Code): runs custom JavaScript code
- Sheet columns (Edit Fields (Set)): sets 6 fields: domain, score, grade…
- Score dropped? (If): checks a condition and branches into true / false
…plus 2 more steps. See the full node list below.
Services it uses
Other OpenAI + Google Sheets templates (2,011) · Other Telegram + OpenAI templates (807) · Other Telegram + Google Sheets templates (674)
HTTP calls to: dns.google
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 (11)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Manual Trigger
n8n-nodes-base.manualTrigger - Google Sheets
n8n-nodes-base.googleSheets - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - If
n8n-nodes-base.if - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Edit Fields (Set)
n8n-nodes-base.set - Telegram
n8n-nodes-base.telegram
From the author
Quick Overview This workflow checks SPF, DKIM, DMARC, and MX DNS records for a list of domains using Google Public DNS over HTTPS, compares the results to the previous run, and sends a Telegram message only when problems appear, get fixed, or records change.…