Skip to main content

n8n: Lead Automation Made Simple

April 18, 2026 by
Prit bhatti


 


We’ve all been there: staring at Google Maps for hours, copying and pasting business names, phone numbers, and addresses into a spreadsheet. It’s soul-crushing work that keeps you away from what actually matters—closing deals in Odoo.

I decided there had to be a better way. By using n8n, I built an automated "lead machine" that scrapes local business data and pushes it straight into my workflow. Here is how it works and how you can do the same.

First off: What is n8n?

If you haven't heard of it, n8n is a powerful workflow automation tool. Think of it like a more flexible, "fair-priced" alternative to Zapier. It allows you to connect different apps (like Google Maps, Sheets, and Odoo) using a visual interface. The best part? It handles complex logic—like loops and data merging—that other tools simply can't touch.

The "Lead Engine" Workflow: Node by Node

To get the data from Google Maps into my Odoo CRM, I built a nested loop system. Here’s the breakdown of the key players in this workflow:

1. The Batcher (The Brain)

We start with a Batch Queries node. Instead of trying to search for everything at once (which usually breaks things), this node releases one search term at a time—for example, "Industrial Manufacturers in Paris." It ensures the workflow stays organized and doesn't hit any rate limits.

2. The SerpAPI Google Maps Node

This is where the magic happens. It talks to Google Maps and pulls the actual data: business names, ratings, websites, and addresses. Since Google only shows 20 results at a time, this node sits inside a loop.

3. The Pagination Loop (The "Go Back" Logic)

I used an If Node and an Increment Offset node. If there are more results to find (e.g., results 21–40), the workflow "loops" back and asks Google for the next page. This continues until every local lead is captured.

4. The Data Merger (The Collector)

Inside a loop, data can get messy. I used a Merge Node combined with a Code Node to act as a "bucket." It catches every single result from every page and flattens them into one clean, high-quality list. No duplicates, no missing rows.

5. The Google Sheets / Odoo Integration

Once the data is cleaned, the workflow automatically appends the rows to a Google Sheet. From there, it’s a straight shot into Odoo CRM. Every business found on the map becomes a new Lead or Opportunity in Odoo, complete with their contact details.

6. The "Done" Signal

Once all 10+ categories are finished, the Batch Queries node sends a final signal to a Mailer node. I get a single email summary: "Automation Complete: 365 new leads added to Odoo."

Why n8n is the Secret Sauce for Odoo Users

The biggest hurdle in sales isn't the pitch; it's the prospecting. By the time I log into Odoo in the morning, my CRM is already populated with fresh, relevant leads in the manufacturing or e-commerce sectors.

I’m no longer a data entry clerk—I’m a salesperson.

  • Don't fear the loop: Nested loops (category loops + pagination loops) are the only way to get all the data.
  • Wait times are your friend: Use a "Wait" node between queries to keep your API accounts safe.
  • Merge as you go: Use an Append Merge node to ensure you don't lose data between loop cycles.

I’m no longer a data entry clerk—I’m a salesperson.

Using n8n for this project changed everything. Unlike more rigid automation platforms, n8n gave me the granular control I needed to build a "logic-first" pipeline.

For anyone using Odoo, the benefits of this n8n-driven approach are clear:

  • Clean ERP Data: By filtering at the n8n level, my Odoo CRM stays free of duplicates and "ghost" records
  • Complex Logic Made Simple: Handling "list subtraction" is usually a nightmare, but the n8n Merge node makes it visual and easy to manage.
  • Scalability: Whether I'm scraping 10 leads or 10,000, n8n handles the heavy lifting without breaking a sweat.

Final Thoughts

Building a lead gen machine is about more than just scraping; it’s about data integrity. By putting n8n at the center of my Odoo pipeline, I’ve moved away from manual "VLOOKUPS" and into a world where my CRM is always fresh, always clean, and always ready for the next sale.

"If you’re looking to scale your Odoo leads, start with the logic. Start with n8n"

Pro-Tip for Odoo users:

When importing these leads, make sure to map the place_id from Google Maps to a custom field in Odoo. This prevents you from ever creating the same lead twice if you run the search again next month!

Prit bhatti April 18, 2026
Share this post
Tags