AutomationFlowsSlack & Telegram › Prod 04 Data Analytics Workflow

Prod 04 Data Analytics Workflow

PROD_04_Data_Analytics_Workflow. Uses httpRequest, googleSheets, telegram. Scheduled trigger; 6 nodes.

Cron / scheduled trigger★★★★☆ complexity6 nodesHTTP RequestGoogle SheetsTelegram
Slack & Telegram Trigger: Cron / scheduled Nodes: 6 Complexity: ★★★★☆ Added:

This workflow follows the Google Sheets → HTTP Request recipe pattern — see all workflows that pair these two integrations.

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "name": "PROD_04_Data_Analytics_Workflow",
  "nodes": [
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "hours",
              "hoursInterval": 1
            }
          ]
        },
        "options": {}
      },
      "id": "1",
      "name": "Schedule_Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1,
      "position": [
        250,
        300
      ]
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "1",
              "name": "query_date",
              "value": "{{ $now.minus({hours:1}).toISO() }}",
              "type": "string"
            },
            {
              "id": "2",
              "name": "source",
              "value": "analytics_db",
              "type": "string"
            }
          ]
        }
      },
      "id": "2",
      "name": "Set_Params",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3,
      "position": [
        450,
        300
      ]
    },
    {
      "parameters": {
        "method": "GET",
        "url": "https://api.example.com/analytics/data",
        "sendQuery": true,
        "queryParameters": {
          "parameters": [
            {
              "name": "from",
              "value": "={{ $json.query_date }}"
            }
          ]
        },
        "options": {}
      },
      "id": "3",
      "name": "Fetch_Analytics",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4,
      "position": [
        650,
        300
      ]
    },
    {
      "parameters": {
        "jsCode": "const data = $input.first().json;\nconst metrics = data.metrics || [];\nconst summary = {\n  total_records: metrics.length,\n  avg_value: metrics.reduce((a,b)=>a+b.value,0)/metrics.length,\n  max_value: Math.max(...metrics.map(m=>m.value)),\n  min_value: Math.min(...metrics.map(m=>m.value)),\n  processed_at: new Date().toISOString()\n};\nreturn { summary, raw_data: data };"
      },
      "id": "4",
      "name": "Calculate_Metrics",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        850,
        300
      ]
    },
    {
      "parameters": {
        "operation": "upsert",
        "tableId": "analytics_results",
        "columns": [
          "summary",
          "raw_data",
          "processed_at"
        ],
        "options": {}
      },
      "id": "5",
      "name": "Store_Results",
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4,
      "position": [
        1050,
        300
      ]
    },
    {
      "parameters": {
        "to": "analytics_team",
        "text": "={{ 'Analytics Report Ready | Records: ' + $json.summary.total_records + ' | Avg: ' + $json.summary.avg_value.toFixed(2) }}",
        "additionalFields": {}
      },
      "id": "6",
      "name": "Telegram_Report",
      "type": "n8n-nodes-base.telegram",
      "typeVersion": 1,
      "position": [
        1250,
        300
      ]
    }
  ],
  "connections": {
    "Schedule_Trigger": {
      "main": [
        [
          {
            "node": "Set_Params",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set_Params": {
      "main": [
        [
          {
            "node": "Fetch_Analytics",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch_Analytics": {
      "main": [
        [
          {
            "node": "Calculate_Metrics",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Calculate_Metrics": {
      "main": [
        [
          {
            "node": "Store_Results",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Store_Results": {
      "main": [
        [
          {
            "node": "Telegram_Report",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "prod-04-v1",
  "id": "PROD04DATAANALYTICS",
  "tags": [
    {
      "name": "production"
    },
    {
      "name": "analytics"
    }
  ]
}
Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

PROD_04_Data_Analytics_Workflow. Uses httpRequest, googleSheets, telegram. Scheduled trigger; 6 nodes.

Source: https://gist.github.com/duginsash-spec/c0128580e71defd5f25f609991be219a — original creator credit. Request a take-down →

More Slack & Telegram workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

Slack & Telegram

. Uses googleSheets, telegram, httpRequest, wise. Scheduled trigger; 36 nodes.

Google Sheets, Telegram, HTTP Request +2
Slack & Telegram

This workflow automates plant care reminders and records using Google Sheets, Telegram, and OpenWeather API.

Google Sheets, HTTP Request, Telegram
Slack & Telegram

Apollo Data Enrichment Using Company Id to automatically finds contacts for companies listed in your Google Sheet, enriches each person with emails and phone numbers via Apollo’s API, and writes verif

Google Sheets, HTTP Request, Error Trigger +1
Slack & Telegram

008-8-Hour-Incident-Resolver. Uses googleSheets, httpRequest, telegram. Scheduled trigger; 26 nodes.

Google Sheets, HTTP Request, Telegram
Slack & Telegram

++Download the google sheet here++ and replace this with the googles sheet node: Google sheet , upload to google sheets and replace in the google sheets node. Scheduled trigger: Runs once a day at 8 A

Google Sheets, HTTP Request, Telegram