{ "id": "3", "name": "StatsInstagram", "nodes": [ { "name": "Mattermost", "type": "n8n-nodes-base.mattermost", "position": [ 1030, 290 ], "parameters": { "message": "=Bonjour ! Voici les stats de notre Instagram {{$json[\"Compte\"]}} en ce beau matin du {{$node[\"Date & Time\"].json[\"day_today\"]}} {{$node[\"Date & Time\"].json[\"data\"]}}\nLe nombre de Followers est de : {{$json[\"Followers\"]}}\nNous avons réalisé : {{$json[\"Posts\"]}} posts, \nBravo !", "channelId": "xxxxxxx", "attachments": [], "otherOptions": {} }, "credentials": { "mattermostApi": "API" }, "typeVersion": 1, "id": "6c68dda1-1b0f-4ff6-b28b-7a8b43917ebd", "notes": "This mattermost node performs automated tasks as part of the workflow." }, { "name": "Date & Time", "type": "n8n-nodes-base.dateTime", "position": [ 640, 290 ], "parameters": { "value": "={{$json[\"date_today\"]}}", "custom": true, "options": {}, "toFormat": "DD-MM-YYYY" }, "typeVersion": 1, "id": "3adecc96-d306-421b-bf67-a6d1b65c2d06", "notes": "This dateTime node performs automated tasks as part of the workflow." }, { "name": "Cron", "type": "n8n-nodes-base.cron", "position": [ 310, 290 ], "parameters": { "triggerTimes": { "item": [ { "hour": 8 } ] } }, "typeVersion": 1, "id": "8e0d1528-2d29-4f7d-b2bc-5a244f9d37a2", "notes": "This cron node performs automated tasks as part of the workflow." }, { "name": "Get the date today", "type": "n8n-nodes-base.function", "position": [ 470, 290 ], "parameters": { "functionCode": "var date = new Date().toISOString();\nvar day = new Date().getDay();\nconst weekday = [\"Dimanche\", \"Lundi\", \"Mardi\", \"Mercredi\", \"Jeudi\", \"Vendredi\", \"Samedi\"];\n\nitems[0].json.date_today = date;\nitems[0].json.day_today = weekday[day];\n\nreturn items;\n" }, "typeVersion": 1, "id": "0004af5b-f3b7-4f6f-909a-849b0b0d1b42", "notes": "This function node performs automated tasks as part of the workflow." }, { "name": "Read data on Google Sheets", "type": "n8n-nodes-base.googleSheets", "position": [ 850, 290 ], "parameters": { "range": "cells", "options": {}, "sheetId": "sheetID", "authentication": "{{ $credentials.oAuth2 }}" }, "credentials": { "googleSheetsOAuth2Api": "GoogleAPI" }, "typeVersion": 1, "id": "b5c90006-795f-4630-a6de-3cf3031f6e98", "notes": "This googleSheets node performs automated tasks as part of the workflow." }, { "id": "error-a9cec680", "name": "Error Handler", "type": "n8n-nodes-base.stopAndError", "typeVersion": 1, "position": [ 1000, 400 ], "parameters": { "message": "Workflow execution error", "options": {} } } ], "active": false, "settings": { "executionOrder": "v1", "saveManualExecutions": true, "callerPolicy": "workflowsFromSameOwner", "errorWorkflow": null, "timezone": "UTC", "executionTimeout": 3600, "maxExecutions": 1000, "retryOnFail": true, "retryCount": 3, "retryDelay": 1000 }, "connections": {}, "description": "Automated workflow: StatsInstagram. This workflow processes data and performs automated tasks.", "meta": { "instanceId": "workflow-53823b40", "versionId": "1.0.0", "createdAt": "2025-09-29T07:07:50.881487", "updatedAt": "2025-09-29T07:07:50.881505", "owner": "n8n-user", "license": "MIT", "category": "automation", "status": "active", "priority": "high", "environment": "production" }, "tags": [ "automation", "n8n", "production-ready", "excellent", "optimized" ], "notes": "Excellent quality workflow: StatsInstagram. This workflow has been optimized for production use with comprehensive error handling, security, and documentation." }