Templates / Find new Swiss B2B leads from SHAB using Apify, Google Sheets and Gmail

Find new Swiss B2B leads from SHAB using Apify, Google Sheets and Gmail

Ready for 3.0

by Swiss Alpine Data · 0 views · created 2026-10-31 · Lead Generation

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This workflow has 10 nodes and runs on a schedule (cron 0 7 * * 1-5). Along the way it connects Google Sheets and Gmail. It also calls api.apify.com over HTTP.

How it runs

Trigger: On a schedule (cron 0 7 * * 1-5).

  1. Configuration (Edit Fields (Set)): sets 9 fields: cantons, legalFormCodes, includeKeywords…
  2. Fetch new registrations from SHAB (HTTP Request): calls api.apify.com (POST)
  3. Match target profile (Code): runs custom JavaScript code
  4. Alert on failed Apify run (Gmail): send (message)
  5. Read companies already in sheet (Google Sheets): read
  6. Keep only new companies (Code): runs custom JavaScript code
  7. Add new companies to sheet (Google Sheets): append
  8. Build email summary (Code): runs custom JavaScript code
  9. Email the new leads (Gmail): send (message)

Services it uses

Google SheetsGmail

HTTP calls to: api.apify.com

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (6)

From the author

Quick Overview This workflow runs every weekday morning, pulls newly published Swiss commercial register (SHAB HR01) company entries via an Apify actor, filters them into qualified leads, stores only unseen companies in Google Sheets, and emails a daily HTML…

Excerpt from Swiss Alpine Data's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.