Find new Swiss B2B leads from SHAB using Apify, Google Sheets and Gmail
Ready for 3.0What 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).
- Configuration (Edit Fields (Set)): sets 9 fields: cantons, legalFormCodes, includeKeywords…
- Fetch new registrations from SHAB (HTTP Request): calls api.apify.com (POST)
- Match target profile (Code): runs custom JavaScript code
- Alert on failed Apify run (Gmail): send (message)
- Read companies already in sheet (Google Sheets): read
- Keep only new companies (Code): runs custom JavaScript code
- Add new companies to sheet (Google Sheets): append
- Build email summary (Code): runs custom JavaScript code
- Email the new leads (Gmail): send (message)
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other Apify + Google Sheets templates (402) · Other Apify + Gmail templates (127)
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (6)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - Google Sheets
n8n-nodes-base.googleSheets - Gmail
n8n-nodes-base.gmail
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…