{"name": "Security Awareness Training Email", "nodes": [{"id": "n1", "name": "Every Monday 9AM", "type": "n8n-nodes-base.scheduleTrigger", "typeVersion": 1.3, "position": [0, 0], "parameters": {"rule": {"interval": [{"triggerAtHour": 9, "mode": "everyWeek", "triggerAtDay": 1}]}}}, {"id": "n2", "name": "Write Security Awareness Email", "type": "n8n-nodes-base.httpRequest", "typeVersion": 4.4, "position": [224, 0], "parameters": {"method": "POST", "url": "https://api.anthropic.com/v1/messages", "sendHeaders": true, "headerParameters": {"parameters": [{"name": "x-api-key", "value": "YOUR_ANTHROPIC_API_KEY"}, {"name": "anthropic-version", "value": "2023-06-01"}, {"name": "content-type", "value": "application/json"}]}, "sendBody": true, "bodyParameters": {"parameters": [{"name": "model", "value": "claude-sonnet-4-6"}, {"name": "max_tokens", "value": "800"}, {"name": "messages", "value": "=[{\"role\":\"user\",\"content\":\"Return ONLY JSON {subject:string, html_email:string (one security tip per week, real-world example, actionable advice, engaging tone, under 300 words)}. Week: {{ new Date().toLocaleDateString() }}\"}]"}]}}}, {"id": "n3", "name": "Send to All Staff", "type": "n8n-nodes-base.gmail", "typeVersion": 2.2, "position": [448, 0], "parameters": {"resource": "message", "operation": "send", "sendTo": "ALL_STAFF@company.com", "subject": "={{ JSON.parse($json.content[0].text).subject }}", "emailType": "html", "message": "={{ JSON.parse($json.content[0].text).html_email }}", "options": {}}, "credentials": {"gmailOAuth2": {"id": "YOUR_GMAIL_CREDENTIAL_ID", "name": "Gmail account"}}}], "connections": {"Every Monday 9AM": {"main": [[{"node": "Write Security Awareness Email", "type": "main", "index": 0}]]}, "Write Security Awareness Email": {"main": [[{"node": "Send to All Staff", "type": "main", "index": 0}]]}}, "settings": {"executionOrder": "v1"}}