An r/AiAutomations build documented a daily compliance agent using n8n + SerpAPI + Groq. This tutorial swaps SerpAPI for Scavio (lower per-query cost, plus Reddit signal layer) and walks the n8n workflow.
Prerequisites
- n8n (Cloud or self-hosted)
- Scavio API key
- Groq or any LLM API key
Walkthrough
Step 1: Cron Trigger node
Run daily at 7 AM.
// n8n Cron Trigger: 0 7 * * *Step 2: Define keyword set in a Set node
List of regulatory topics.
[
'EU AI Act amendments',
'GDPR enforcement actions 2026',
'HIPAA AI guidance',
'SOC 2 type II changes',
'CCPA enforcement 2026'
]Step 3: HTTP Request node to Scavio
POST to /api/v1/search per keyword.
Method: POST
URL: https://api.scavio.dev/api/v1/search
Header: x-api-key = {{ $env.SCAVIO_API_KEY }}
Body: { "query": "{{ $json.keyword }} updates" }Step 4: Reddit Search node (a second HTTP Request)
Reddit catches drafts and analyst threads.
Method: POST
URL: https://api.scavio.dev/api/v1/reddit/search
Body: { "query": "{{ $json.keyword }}" }Step 5: LLM node (Groq or any provider)
Summarize findings and assess risk.
Prompt: 'Summarize regulatory updates for {{ keyword }}. Flag anything that requires action this quarter. Use only the provided sources.'Step 6: Email node + Google Sheets log
Daily report emailed; full log persisted.
// n8n Email node: to=compliance@yourco.com
// Google Sheets node: append row with date, keyword, summary, risk_levelPython Example
# Out of n8n the equivalent Python loop:
import os, requests
API_KEY = os.environ['SCAVIO_API_KEY']
H = {'x-api-key': API_KEY}
KEYWORDS = ['EU AI Act amendments', 'GDPR enforcement 2026']
for k in KEYWORDS:
s = requests.post('https://api.scavio.dev/api/v1/search', headers=H, json={'query': k}).json()
r = requests.post('https://api.scavio.dev/api/v1/reddit/search', headers=H, json={'query': k}).json()
print(k, len(s.get('organic_results', [])), len(r.get('posts', [])))JavaScript Example
// In n8n use HTTP Request nodes; in raw JS:
const H = { 'x-api-key': process.env.SCAVIO_API_KEY, 'Content-Type': 'application/json' };
export async function check(k) {
return fetch('https://api.scavio.dev/api/v1/search', { method:'POST', headers:H, body: JSON.stringify({ query: k }) }).then(r => r.json());
}Expected Output
Daily 7 AM compliance email per keyword. Reddit-flagged drafts surface 1-2 weeks earlier than mainstream coverage in many cases.