Skip to main content

Consolidate data from 5 sources for automated reporting with SQL, MongoDB & Google tools

Workflow preview

Workflow preview
100%
Consolidate data from 5 sources for automated reporting with SQL, MongoDB & Google tools preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

How it works This workflow consolidates data from five different systems — Google Sheets, PostgreSQL, MongoDB, Microsoft SQL Server, and Google Analytics — into a single master Google Sheet. It run...

Best for

  • Document Extraction automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.googlesheets, n8n-nodes-base.postgres, n8n-nodes-base.mongodb, n8n-nodes-base.function, n8n-nodes-base.microsoftsql, n8n-nodes-base.googleanalytics, n8n-nodes-base.merge, n8n-nodes-base.scheduletrigger

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Avkash Kakdiya.

Original n8n.io source

1.1 Workflow description

Title
Consolidate data from 5 sources for automated reporting with SQL, MongoDB & Google tools
Workflow name
Consolidate data from 5 sources for automated reporting with SQL, MongoDB & Google tools

How it works

This workflow consolidates data from five different systems — Google Sheets, PostgreSQL, MongoDB, Microsoft SQL Server, and Google Analytics — into a single master Google Sheet. It runs on a scheduled trigger three times a week. Each dataset is tagged with a unique source identifier before merging, ensuring data traceability. Finally, the merged dataset is cleaned, standardized, and written into the output Google Sheet for reporting and analysis.

Step-by-step

1. Trigger the workflow

  • Schedule Trigger – Runs the workflow at set weekly intervals.

2. Collect data from sources

  • Google Sheets Source – Retrieves records from a specific sheet.
  • PostgreSQL Source – Extracts customer data from the database.
  • MongoDB Source – Pulls documents from the defined collection.
  • Microsoft SQL Server – Executes a SQL query and returns results.
  • Google Analytics – Captures user activity and engagement metrics.

3. Tag each dataset

  • Add Sheets Source ID – Marks data from Google Sheets.
  • Add PostgreSQL Source ID – Marks data from PostgreSQL.
  • Add MongoDB Source ID – Marks data from MongoDB.
  • Add SQL Server Source ID – Marks data from SQL Server.
  • Add Analytics Source ID – Marks data from Google Analytics.

4. Merge and process

  • Merge – Combines all tagged datasets into a single structure.
  • Process Merged Data – Cleans, aligns schemas, and standardizes key fields.

5. Store consolidated output

  • Final Google Sheet – Appends or updates the master sheet with the processed data.

Why use this?

  • Centralizes multiple data sources into a single, consistent dataset.
  • Ensures data traceability by tagging each source.
  • Reduces manual effort in data cleaning and consolidation.
  • Provides a reliable reporting hub for business analysis.
  • Enables scheduled, automated updates for up-to-date visibility.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - 📄 Google Sheets Source

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4

Block 2 - 🐘 PostgreSQL Source

Type / Role
n8n-nodes-base.postgres - postgres
Config choices
Version 2.4

Block 3 - 🍃 MongoDB Source

Type / Role
n8n-nodes-base.mongoDb - mongoDb
Config choices
Version 1.1

Block 4 - ⚙️ Process Merged Data

Type / Role
n8n-nodes-base.function - function
Config choices
Version 1

Block 5 - 📊 Final Google Sheet

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4

Block 6 - Add Sheets Source ID

Type / Role
n8n-nodes-base.function - function
Config choices
Version 1

Block 7 - Add PostgreSQL Source ID

Type / Role
n8n-nodes-base.function - function
Config choices
Version 1

Block 8 - Add SQL Server Source ID

Type / Role
n8n-nodes-base.function - function
Config choices
Version 1

Block 9 - Add MongoDB Source ID

Type / Role
n8n-nodes-base.function - function
Config choices
Version 1

Block 10 - Add Analytics Source ID

Type / Role
n8n-nodes-base.function - function
Config choices
Version 1

Block 11 - Microsoft SQL Server

Type / Role
n8n-nodes-base.microsoftSql - microsoftSql
Config choices
Version 1.1

Block 12 - Google Analytics

Type / Role
n8n-nodes-base.googleAnalytics - googleAnalytics
Config choices
Version 2

Block 13 - Merge

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 14 - Schedule Trigger

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Block 15 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 16 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 17 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Consolidate data from 5 sources for automated reporting with SQL, MongoDB & Google tools
Complexity advanced
Nodes 17
Categories Document Extraction
Author Avkash Kakdiya
Published 24 Sept 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/8890/8890.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Consolidate data from 5 sources for automated reporting with SQL, MongoDB & Google tools do?

How it works This workflow consolidates data from five different systems — Google Sheets, PostgreSQL, MongoDB, Microsoft SQL Server, and Google Analytics — into a single master Google Sheet. It run...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Document Extraction use case.