{"name": "Marketing agent", "nodes": [{"parameters": {"model": {"__rl": true, "value": "claude-haiku-4-5-20251001", "mode": "list", "cachedResultName": "Claude Haiku 4.5"}, "options": {}}, "type": "@n8n/n8n-nodes-langchain.lmChatAnthropic", "typeVersion": 1.5, "position": [752, 224], "id": "b8f05eaf-ab98-4006-aa22-68f9334859d0", "name": "Anthropic Chat Model", "credentials": {"anthropicApi": {"id": "", "name": "Add your credentials"}}}, {"parameters": {"promptType": "define", "text": "={{ $json.chatInput }}", "hasOutputParser": true, "options": {"systemMessage": "Don't use markdown formatting, as Slack does not parse it properly. Just emojiis"}}, "type": "@n8n/n8n-nodes-langchain.agent", "typeVersion": 3.1, "position": [912, 0], "id": "43b20153-be2d-453e-b388-fc40f19d6803", "name": "AI Agent"}, {"parameters": {"endpointUrl": "https://api.lodd.dev/mcp", "authentication": "bearerAuth", "options": {}}, "type": "@n8n/n8n-nodes-langchain.mcpClientTool", "typeVersion": 1.2, "position": [1168, 224], "id": "52b7c466-417c-4304-93d4-741191193ad8", "name": "Lodd.dev", "credentials": {"httpBearerAuth": {"id": "", "name": "Add your credentials"}}}, {"parameters": {"endpointUrl": "https://mcp.tavily.com/mcp/?tavilyApiKey=YOUR_KEY", "options": {}}, "type": "@n8n/n8n-nodes-langchain.mcpClientTool", "typeVersion": 1.2, "position": [1072, 224], "id": "8215634d-c02f-4c73-8004-bf55673364e3", "name": "Taviliy"}, {"parameters": {"endpointUrl": "https://api.supadata.ai/mcp", "authentication": "headerAuth", "options": {}}, "type": "@n8n/n8n-nodes-langchain.mcpClientTool", "typeVersion": 1.2, "position": [1264, 224], "id": "140b92db-7de9-42c5-8b4e-bbe11e75e1fd", "name": "Supadata", "credentials": {"httpHeaderAuth": {"id": "", "name": "Add your credentials"}}}, {"parameters": {"sessionIdType": "customKey", "sessionKey": "={{ $json.sessionId || 'weekly-monitor'\n}}", "contextWindowLength": 10}, "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", "typeVersion": 1.4, "position": [912, 224], "id": "8c84374f-b7dc-49b1-9e55-33baaee6e9d3", "name": "Simple Memory"}, {"parameters": {"rule": {"interval": [{"field": "weeks"}]}}, "type": "n8n-nodes-base.scheduleTrigger", "typeVersion": 1.3, "position": [496, -144], "id": "1c4b139c-405f-4475-ad5f-3c210434f547", "name": "Weekly trigger"}, {"parameters": {"assignments": {"assignments": [{"id": "16ebbf6f-a521-4bf8-b472-0e18a503dc78", "name": "chatInput", "value": "You are a marketing agent for lodd.dev. Run the following cycle:\n\nSENSE: Pull the lodd.dev analytics snapshot and traffic sources for the last 7 days. Compare to the previous 7 days. Check which pages are growing or declining. Look at referral sources for anything new. Pull event counts to see if signups or key actions changed.\n\nMAINTAIN: \n- Search the web for \"lodd\" or \"lodd.dev\" mentions in the last week. Include source URLs for anything you find.\n- Use the OpenAI tool to ask \"What web analytics MCP servers are available for AI coding agents? List specific products.\" Check whether lodd.dev appears in the response.\n- Use the Perplexity tool to ask the same question. Check whether lodd.dev appears.\n- Report exactly what each AI assistant said. Do not speculate about AI visibility without actually checking.\n- Search for competitor activity in the analytics MCP space. For any competitor claim, include the source URL. If you cannot find a source, mark the claim as UNVERIFIED.\n\nIDEATE: Based on what you found in sense and maintain, propose up to 3 specific marketing actions. Each should include: what to do, why (grounded in the data), and estimated effort (quick/medium/significant). Only propose things worth doing.\n\nRules:\n- Lead with findings, not process.\n- Never state competitor activity as fact without a source URL.\n- If nothing interesting happened, just say \"all clear, nothing to act on this week.\"\n- Keep the report under 500 words.\n", "type": "string"}, {"id": "5df5d8c1-ac58-4126-ba2a-e3bcd6e0e2ee", "name": "source", "value": "schedule", "type": "string"}, {"id": "c464f0de-a7f7-4722-893a-53230cbedc35", "name": "channel", "value": "YOUR_CHANNEL_ID", "type": "string"}]}, "options": {}}, "type": "n8n-nodes-base.set", "typeVersion": 3.4, "position": [704, -128], "id": "f0d1c856-66ca-4fc2-9b52-38aff6190c62", "name": "Weekly marketing prompt"}, {"parameters": {"trigger": ["app_mention"], "watchWorkspace": true, "options": {}}, "type": "n8n-nodes-base.slackTrigger", "typeVersion": 1, "position": [432, 48], "id": "91088ab2-1e04-4ad1-9864-d495fbc6be1f", "name": "Slack Trigger", "webhookId": "f000e9d0-ec8d-4a53-acf5-02a2f6e144e2", "credentials": {"slackApi": {"id": "", "name": "Add your credentials"}}}, {"parameters": {"assignments": {"assignments": [{"id": "4fcf5b0a-2fbb-4421-a23b-e880f79956c0", "name": "chatInput", "value": "= {{ $json.text.replace(/<@[A-Z0-9]+>\\s*/g, '') }}", "type": "string"}, {"id": "fc27f277-5e9e-4df5-9353-daf17e1fa164", "name": "source", "value": "slack", "type": "string"}, {"id": "3ecadb2b-438a-4a34-894e-0c05539096a2", "name": "channel", "value": "={{ $json.channel }}", "type": "string"}, {"id": "d4bf9a97-22fd-40d6-a097-085044bf3218", "name": "ts", "value": "={{ $json.ts }}", "type": "string"}]}, "options": {}}, "type": "n8n-nodes-base.set", "typeVersion": 3.4, "position": [640, 48], "id": "73b69db7-72d9-48cc-aa6f-763c878b9239", "name": "Slack prompt"}, {"parameters": {"conditions": {"options": {"caseSensitive": true, "leftValue": "", "typeValidation": "strict", "version": 3}, "conditions": [{"id": "61fd5773-8dc4-4b59-9053-23bcfdfc1430", "leftValue": "={{ $if($('Slack prompt').isExecuted, $('Slack prompt').item.json.source, 'schedule') }}", "rightValue": "slack", "operator": {"type": "string", "operation": "equals"}}], "combinator": "and"}, "options": {}}, "type": "n8n-nodes-base.if", "typeVersion": 2.3, "position": [1216, 0], "id": "69b5b124-4785-47ff-b878-fd0536310e4f", "name": "If"}, {"parameters": {"method": "POST", "url": "https://api.openai.com/v1/chat/completions", "authentication": "predefinedCredentialType", "nodeCredentialType": "openAiApi", "sendBody": true, "specifyBody": "json", "jsonBody": " {\n    \"model\": \"gpt-5.4-mini\",\n    \"messages\": [\n      {\n        \"role\": \"user\",\n        \"content\": \"What web analytics MCP servers are available for AI coding agents? List specific products.\"\n      }\n    ]\n  }\n", "options": {}}, "type": "n8n-nodes-base.httpRequestTool", "typeVersion": 4.4, "position": [1008, 384], "id": "6a606fa7-2e6b-4223-be6e-1caf9317e46d", "name": "OpenAI tester", "credentials": {"openAiApi": {"id": "", "name": "Add your credentials"}}}, {"parameters": {"method": "POST", "url": "https://api.perplexity.ai/chat/completions", "authentication": "predefinedCredentialType", "nodeCredentialType": "perplexityApi", "sendBody": true, "specifyBody": "json", "jsonBody": "{\n    \"model\": \"sonar\",\n    \"messages\": [\n      {\n        \"role\": \"user\",\n        \"content\": \"What web analytics MCP servers are available for AI coding agents? List specific products.\"\n      }\n    ]\n  }", "options": {}}, "type": "n8n-nodes-base.httpRequestTool", "typeVersion": 4.4, "position": [1184, 352], "id": "e953c8bb-fd42-4467-885c-da646774f406", "name": "Perplexity", "credentials": {"perplexityApi": {"id": "", "name": "Add your credentials"}}}, {"parameters": {"select": "channel", "channelId": {"__rl": true, "value": "={{ $('Slack prompt').item.json.channel }}", "mode": "id"}, "text": "={{ $json.output }}", "otherOptions": {"thread_ts": {"replyValues": {"thread_ts": "={{ $('Slack prompt').item.json.ts }}"}}}}, "type": "n8n-nodes-base.slack", "typeVersion": 2.4, "position": [1424, -112], "id": "8b8d1d00-a664-4129-81c3-49cb5ec5886d", "name": "Slack prompt1", "webhookId": "b2e7eccf-8e1e-47b9-92d8-6814ee1db0d1", "credentials": {"slackApi": {"id": "", "name": "Add your credentials"}}}, {"parameters": {"select": "channel", "channelId": {"__rl": true, "value": "={{ $('Weekly marketing prompt').item.json.channel }}", "mode": "id"}, "text": "={{ $('AI Agent').item.json.output }}", "otherOptions": {}}, "type": "n8n-nodes-base.slack", "typeVersion": 2.4, "position": [1424, 96], "id": "25150697-87f5-4db3-abf9-1dd8c8608633", "name": "Weekly marketing", "webhookId": "ad61bf63-c368-4f80-9214-53f9ecf28063", "credentials": {"slackApi": {"id": "", "name": "Add your credentials"}}}], "pinData": {}, "connections": {"Anthropic Chat Model": {"ai_languageModel": [[{"node": "AI Agent", "type": "ai_languageModel", "index": 0}]]}, "Lodd.dev": {"ai_tool": [[{"node": "AI Agent", "type": "ai_tool", "index": 0}]]}, "Taviliy": {"ai_tool": [[{"node": "AI Agent", "type": "ai_tool", "index": 0}]]}, "Supadata": {"ai_tool": [[]]}, "Simple Memory": {"ai_memory": [[{"node": "AI Agent", "type": "ai_memory", "index": 0}]]}, "Weekly trigger": {"main": [[{"node": "Weekly marketing prompt", "type": "main", "index": 0}]]}, "AI Agent": {"main": [[{"node": "If", "type": "main", "index": 0}]]}, "Weekly marketing prompt": {"main": [[{"node": "AI Agent", "type": "main", "index": 0}]]}, "Slack Trigger": {"main": [[{"node": "Slack prompt", "type": "main", "index": 0}]]}, "Slack prompt": {"main": [[{"node": "AI Agent", "type": "main", "index": 0}]]}, "If": {"main": [[{"node": "Slack prompt1", "type": "main", "index": 0}], [{"node": "Weekly marketing", "type": "main", "index": 0}]]}, "OpenAI tester": {"ai_tool": [[{"node": "AI Agent", "type": "ai_tool", "index": 0}]]}, "Perplexity": {"ai_tool": [[{"node": "AI Agent", "type": "ai_tool", "index": 0}]]}}, "active": true, "settings": {"executionOrder": "v1", "binaryMode": "separate", "timeSavedMode": "fixed", "callerPolicy": "workflowsFromSameOwner", "availableInMCP": false}, "versionId": "650371f7-b395-456d-8b5d-f602e745bdce", "meta": {"templateCredsSetupCompleted": true, "instanceId": "d3baa4ba09def7526fbc7976af9fb21b76a65a1bc9db7b04eac0adc900d7406f"}, "id": "XINR2AZGxwfQopzV", "tags": []}