Use this robust n8n workflow to fetch external JSON data, transform it, append it to Google Sheets, convert it to CSV, and manage file attachments via Gmail. Perfect for complex data routing.
Download this n8n workflow template and start using it instantly.
This automation provides a powerful example of how to handle various data formats within a single n8n workflow. It begins by using an n8n node to request sample user data via HTTP. The critical value this automation provides is its comprehensive demonstration of data transformation: taking raw JSON, mapping specific fields, appending the results directly to Google Sheets, and simultaneously converting that structured JSON into a CSV binary file. Finally, it showcases how to write that binary file, attach it to a Gmail message, and even read data back from the attachment for further processing, providing a complete data lifecycle management solution using n8n.
randomusers.json using the Write Binary File n8n node.sheetId from qwertz to the actual ID of your target Google Sheet. HTTP Request n8n node: Fetches sample user data from https://randomuser.me/api/. This is the starting n8n node for receiving external JSON.
Set n8n node: Performs essential data mapping and cleaning. It combines first and last names into a single name property and extracts the country. It ensures only the cleaned attributes proceed in the n8n workflow.
Google Sheets n8n node (Initial Append): Used to append the refined JSON data directly to a spreadsheet (sheetId: qwertz), configured to use column headers found in the first row.
Spreadsheet File n8n node (CSV Conversion): Converts the incoming JSON data structure into a binary CSV file (fileFormat: csv), configured with the filename usersspreadsheet.
Write Binary File n8n node: Saves the intermediate binary data as randomusers.json, preparing it for attachment.
Gmail n8n node: Handles the communication step. It sends an email and attaches the previously created JSON file.
Move Binary Data n8n node (Conversion/Selection): Key component for managing binary files. It selects the file attachment data (sourceKey: attachment0) after the email step, enabling it to be piped into the final storage step.
Google Sheets2 n8n node (Final Append): Demonstrates reading data from a file handler (the attachment) and appending it again to the Google Sheet. (Note: The sticky note indicates this purpose: "Append data to sheet").
Create a fully personalized daily audio briefing using this advanced n8n workflow. It leverages Gemini AI to summarize weather, calendar events, and top news, generating a multi-speaker podcast delivered straight to Telegram. Integrate this powerful n8n template easily.

Automate Jira resource capacity monitoring using this n8n workflow. Calculate team utilization, log metrics to Google Sheets, and send urgent Gmail alerts for over-allocated members.

Use this powerful n8n workflow to automatically monitor LinkedIn job changes. Extract structured data, classify roles, and feed lead intelligence into your CRM using the Airtop n8n node.

Scale your content creation using this automated n8n workflow. Monitor YouTube via RSS, extract transcripts, and generate platform-optimized posts for X, LinkedIn, and Threads using AI. This n8n template streamlines content repurposing.

This advanced n8n workflow dynamically routes tasks to OpenAI, Anthropic, or Groq based on cost or performance priority. Use this powerful n8n template to compare AI model latency and cost metrics in real time.









































