Plan and email daily technician routes with Google Sheets, OSRM, Gmail and Telegram
Ready for 3.0What this workflow does
This workflow has 12 nodes and runs on a schedule (cron 0 6 * * 1-6). Along the way it connects Google Sheets, Gmail and Telegram.
How it runs
Trigger: On a schedule (cron 0 6 * * 1-6).
- Get Today's Visits (Google Sheets): uses Google Sheets
- Prepare Stops (Code): runs custom JavaScript code
- Request Drive Times (HTTP Request): calls an HTTP API
- Build Drive Time Matrix (Code): runs custom JavaScript code
- Optimize Visit Order (Code): runs custom JavaScript code
- Add Arrival Times (Code): runs custom JavaScript code
- Email Route Sheet (Gmail): uses Gmail
- If: checks a condition and branches into true / false
- Split Out: splits a list into separate items
- Alert Dispatcher (Telegram): uses Telegram
…plus 1 more step. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other Telegram + Google Sheets templates (674) · Other Gmail + Telegram templates (361)
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 (8)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Google Sheets
n8n-nodes-base.googleSheets - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - Split Out
n8n-nodes-base.splitOut - Gmail
n8n-nodes-base.gmail - If
n8n-nodes-base.if - Telegram
n8n-nodes-base.telegram
From the author
Quick overview Each morning, pulls today's visits from Google Sheets, builds the shortest driving order from real OSRM road times, and emails the technician a run sheet with arrival times. Dispatch is alerted in Telegram only when the day overruns working…