Use this powerful n8n workflow template to automate lead scraping via Apify, clean the extracted data using an n8n code node, and instantly update Google Sheets. This robust n8n automation template ensures clean, reliable data delivery.
Download this n8n workflow template and start using it instantly.
Sales and Marketing Teams: Users needing a continuous feed of clean business leads without manual intervention.
Growth Hackers: Individuals leveraging web scraping tools like Apify and requiring reliable data synchronization.
n8n Automation Engineers: Users seeking efficient n8n templates for integrating scraping APIs with core business applications like Google Sheets.
Data Managers: Those who need to ensure scraped data, especially phone numbers and emails, are consistently clean before storage.
Managing lead generation often involves running external scraping tools and manually ensuring data quality before entering it into a CRM or database. This is slow and prone to error. This sophisticated n8n workflow solves this by creating a hands-free integration pipeline.
It utilizes a robust n8n trigger to initiate the process, automatically pulls fresh data from your specified Apify task, and crucially, cleans the phone and email fields using a custom n8n code node. By automating this data standardization, the n8n workflow guarantees that only high-quality, formatted leads are appended to your Google Sheet, ready for immediate use. This n8n template is essential for anyone looking to professionalize their data collection process.
The entire process is managed efficiently within a single n8n workflow structure:
APIFYTOKEN and APIFYTASKID) needed for the subsequent steps.run-sync-get-dataset-items). This executes the defined scraping task and fetches the results, splitting the output into individual items for further processing.phone field and converting the email field to lowercase and trimming whitespace.YOURGOOGLESHEETID) and appends the cleaned data—mapping company name, phone, and Address to the corresponding sheet columns. This completes the automated n8n workflow execution.To deploy and use this powerful n8n workflow template, follow these steps:
APIFYTOKEN: Replace YOURAPIFYAPITOKEN with your actual Apify API token.APIFYTASKID: Replace YOURAPIFYTASK_ID with the ID of the Apify Actor Task you wish to run.company name, phone, and Address.This n8n workflow utilizes several key n8n node components:
Manual Trigger (n8n trigger): The starting point for the workflow. It allows for quick, manual execution of the data pipeline for testing and one-off runs.
Variables (Set n8n node): A utility node used to set environment-like variables (APIFYTOKEN, APIFYTASK_ID) centrally, simplifying credential management across the n8n workflow.
Run Apify Scraper (HTTP Request n8n node): Essential for fetching external data. It dynamically constructs the Apify API URL using the defined variables to synchronize and retrieve dataset items. Crucially, it splits the JSON array response into individual n8n items for granular processing.
Clean Data (Code n8n node): This highly effective n8n node performs pre-processing logic. It executes custom JavaScript to ensure data integrity by normalizing phone numbers and standardizing email format.
append operation to seamlessly add the cleaned lead data to the target Google spreadsheet, mapping inputs like ={{ $json.phone }} to the correct column headers.Automate bug report processing using this n8n workflow. Submissions from JotForm are analyzed by Gemini AI, checked against GitHub issues, logged in Google Sheets, and alerted via Telegram.

Streamline bug triage by sending Marker.io issues directly to Intercom. This n8n workflow automatically creates rich conversations with technical context, ensuring faster resolution.

Create a reliable, stateful browser automation AI Agent using this powerful n8n workflow template, leveraging Airtop for web control and Google Sheets for persistent session management. Learn how to master the n8n node.

Use this comprehensive n8n workflow to automatically scrape targeted leads from Google Maps, enrich contact data using AI, and run scheduled, conversational WhatsApp outreach campaigns managed by GPT-powered agents.

Use this robust n8n workflow to automate Customer Satisfaction (CSAT) surveys after resolving Freshdesk tickets. The n8n template tracks status changes, sends personalized emails, and securely logs all feedback data using a Google Sheets n8n node.

Deploy a powerful n8n workflow to automate CV screening. This n8n templates solution uses a Telegram n8n trigger, Google Drive, and Gemini AI to extract candidate data, calculate experience, and save structured results to Google Sheets.

I love building smart, efficient automations with n8n that help businesses save time and scale effortlessly. Turning complex workflows into simple solutions is where I have the most fun







































