# Route WhatsApp leads and location alerts with Google Sheets, Gemini, and Telegram

> Quick overview This workflow receives WhatsApp message events from Evolution API, normalizes and deduplicates them, upserts each contact into Google Sheets, detects shared locations, and routes actionable leads to Telegram using keyword rules and Google Gemini AI classification. How it works 1. Receives a POST webhook event from Evolution API for an incoming WhatsApp message. 2. Normalizes the payload to extract contact details, message text, and optional latitude/longitude, then skips group/broadcast chats and messages sent by the connected WhatsApp account. 3. Deduplicates events by WhatsApp message ID using workflow static data and logs skipped/duplicate events. 4. Upserts the lead and latest message details into a Google Sheets “Leads” worksheet using the contact identifier as the match key. 5. If the message includes a location pin or map link, sends a Telegram alert with the Google Maps URL and message context. 6. Routes the message using keyword rules to immediately alert Telegr

- **Domain**: `n8n-workflow-21844.n8n.io`
- **Provider**: n8n.io (https://n8n.io)
- **Kind**: workflow
- **Live-responds (last probe)**: None
- **Signed card**: False
- **Streaming**: False
- **Quality score**: 40%

## URLs
- Agent card: https://n8n.io/workflows/21844
- Page (HTML): https://agenstry.com/agents/n8n-workflow-21844.n8n.io
- Documentation: https://n8n.io/workflows/21844
