Use this powerful n8n workflow to automatically extract sender name, email, subject, and body from new Gmail messages. This n8n workflow cleans the data and logs structured records directly into Google Sheets, perfect for lead tracking and support logging.
Download this n8n workflow template and start using it instantly.
Handling incoming email data often presents challenges due to inconsistent formatting. A simple integration might fail to correctly parse sender names when they appear as 'Name
This specific n8n workflow ensures that every important piece of metadata—including name, email, subject, message body, and a timestamp—is reliably extracted, cleaned, and organized. The result is a clean, automated stream of customer interaction data logged directly into your chosen Google Sheet, saving significant manual labor and improving data quality across your organization. It stands as a powerful example of what is achievable using core logic within an n8n node structure.
This automation functions entirely on new email arrivals, leveraging a powerful sequence of n8n nodes:
name, email, subject, message, timestamp) is then mapped into standardized, user-friendly field names (e.g., 'Full Name', 'Email Address'). This prepares the data specifically for the Google Sheet structure.To deploy this comprehensive n8n workflow, follow these steps:
Tme, Name, Subject, Email Address, and Body of the email.This n8n workflow relies on four core n8n nodes:
Gmail Trigger n8n trigger:
Function: Serves as the starting point, triggering the n8n workflow upon the arrival of any new email.
Key Configuration: Set to poll Gmail every minute for immediate response to new messages.
Code n8n node:
Function: Executes custom JavaScript to intelligently extract and clean metadata. This is the heart of the n8n template's power, handling variable input formats for subject, body, and sender details.
Key Configuration: Script logic includes fallback values ('No Subject') and regex matching to accurately extract names from both email headers and message content (e.g., matching the pattern 'I am (.?) from').
Edit Fields (Set) n8n node:
Function: Standardizes the data structure outputted by the Code n8n node, renaming internal keys (like name) to practical column headers (like Full Name) ready for the spreadsheet.
Key Configuration: Explicitly maps and sets five fields: Full Name, Email Address, Subject, Body of the email, and Time.
Append row in sheet (Google Sheets) n8n node:
Function: Takes the cleaned, structured data and appends it as a new row in the specified Google Sheet.
* Key Configuration: Operation is set to appendOrUpdate. Input values are mapped directly from the Set n8n node's output, ensuring data lands in the correct spreadsheet columns.
Automate Facebook group scraping using this powerful n8n workflow. Extract post text, engagement metrics, and timestamps using the Airtop n8n node for structured data extraction.

Use this advanced n8n workflow template to automatically monitor Google Drive uploads, extract embedded images from documents using a VLM agent, and save the extracted files back to Drive. Master complex file operations with the Google Drive n8n node and custom flow control.

Leverage this powerful n8n workflow to automatically extract emails, phone numbers, and social media links from a list of websites stored in Google Sheets using the Apify Email & Phone Extractor.

Use this comprehensive n8n workflow to efficiently extract Google Ads creatives (text, image, video) for any domain and region using the SerpAPI integration. This n8n template filters results and exports organized CSV files for competitive analysis.

Generate high-quality B2B leads using this sophisticated n8n workflow. Scrape Google My Business data by service and location, use Claude AI for city expansion, handle asynchronous scraping, and eliminate duplicates in Google Sheets.









































