Use this advanced n8n workflow to automatically transform uploaded Excel or CSV data into structured, professional reports analyzed by Gemini AI and formatted in Google Docs. Explore complex n8n templates.
Download this n8n workflow template and start using it instantly.
Generating comprehensive professional reports from raw spreadsheet data can be time-consuming, requiring extensive data preparation, analysis, and formatting. This powerful n8n workflow provides an end-to-end solution, drastically cutting down generation time.
The automation uses a secure webhook to receive the data file (Excel or CSV), extracts all content, and aggregates it into a single input payload. It then leverages the Gemini AI model in a two-stage n8n agent system:
AI Agent Tool calls) to generate a fully formatted, high-quality document, including titles, sections, and properly styled tables. This advanced n8n workflow demonstrates how to integrate external services for sophisticated, professional document output.This n8n workflow operates via a defined sequence of steps:
Webhook n8n trigger.Extract from File n8n node processes the binary data, converting the spreadsheet rows into usable JSON items.Aggregate and Aggregate Data (Code n8n node) steps consolidate all individual data rows into one single JSON string. This optimized payload is passed to the LLM.AI Agent): The first AI Agent n8n node (powered by Google Gemini) receives the raw data string. Its mission is defined to analyze the data against the context of public services and output a clean, structured JSON analysis.Parse and Clean AI Response Code n8n node is critical. It robustly strips away markdown fencing (```json) and any surrounding explanatory text added by the AI, ensuring only valid JSON proceeds.AI Agent1): The second AI Agent receives the clean JSON analysis. This n8n node is configured to use Google Docs tools to generate and format the final report. It instructs the LLM to structure the content, apply heading styles, insert tables, and ensure professional formatting.AI Agent Tool (a proxy for Google Docs actions) to complete the document generation. The final output from this n8n node is the downloadable .docx link, which is then sent back to the caller via the Respond to Webhook n8n node.To set up this n8n workflow template, follow these steps:
Google Gemini Chat Model and Embeddings Google Gemini n8n nodes. Ensure your API key has access to the specified models (models/gemini-2.5-pro).Google Slides and Gmail Tool if the AI Agent decides to use them, although the primary path uses Google Docs.Webhook n8n trigger node to retrieve the unique URL. This URL is where you will send your data files (POST request). Webhook (n8n trigger): The entry point of this n8n workflow, listening for POST requests to the path /generer-rapport containing binary file data.
Extract from File (n8n node): Essential for handling structured file uploads (Excel/CSV). Converts the binary spreadsheet content into a stream of JSON objects (data rows).
Aggregate Data (Code n8n node): A custom JavaScript n8n node that converts the data stream from the spreadsheet into a single, large JSON string optimized for LLM input.
AI Agent & Google Gemini Chat Model (n8n node): The first stage of analysis. This n8n node performs an intelligent, data-driven analysis of the spreadsheet content based on predefined system instructions (specialized for public service reports).
Parse and Clean AI Response (Code n8n node): A crucial technical step. This n8n node uses custom code to ensure the AI output is a pristine JSON object by stripping surrounding text and markdown syntax.
AI Agent1 & Google Gemini Chat Model2 (n8n node): The second, more complex agent. This n8n node focuses on transformation. It uses its language model and integrated Google Workspace tools to generate the final, formatted Google Docs report.
Automate professional proposal creation using this powerful n8n workflow. It combines an n8n trigger, OpenAI (GPT-4o), PDFmonkey for document generation, and Gmail for instant delivery. Download this reliable n8n template now.

Automate professional product ad generation using this advanced n8n workflow. Input an image and caption via Telegram, and Google Gemini AI returns a high-quality, commercial-grade advertisement.

Streamline billing using this powerful n8n workflow. Automatically create Xero contacts and invoices from Jotform submissions, and use an OpenAI n8n node to draft personalized email notifications via Gmail.

Use this robust n8n workflow to automate post-meeting processes. It triggers on Zoom summary emails, uses GPT-4o for structured summarization, sends follow-up emails, and archives notes neatly in Google Docs.

Create professional product visuals and a complete marketing campaign strategy using this advanced n8n workflow. Integrates OpenAI GPT-4o for analysis and dynamic image generation.








































