{"product_id":"telegram-healthcare-lead-capture-with-gemini-to-google-sheets-n8n","title":"Telegram Healthcare Lead Capture with Gemini to Google Sheets (n8n)","description":"\u003ch3\u003eCapture Telegram healthcare leads automatically—powered by Gemini—and route emergencies to you fast\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow turns Telegram into a healthcare lead-capture chatbot. It uses Google Gemini to collect care requirements and contact details, detects emergencies for owner escalation, and saves qualified, non-duplicate leads into Google Sheets while notifying you in Telegram.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReceives new inquiries\u003c\/strong\u003e: Triggers when a new Telegram message arrives.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGuides the user with Gemini\u003c\/strong\u003e: Uses a Google Gemini chat model with conversation memory to ask structured questions for service, city, condition, urgency, and then name + phone—\u003cem\u003eor\u003c\/em\u003e identifies when the user is in an emergency.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eExtracts structured output\u003c\/strong\u003e: Parses the assistant response to obtain a validated \u003cstrong\u003eLEAD_CAPTURED JSON\u003c\/strong\u003e payload and an optional \u003cstrong\u003eESCALATE:true\u003c\/strong\u003e flag.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eResponds in Telegram\u003c\/strong\u003e: Sends the formatted, safe reply back to the user.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eEscalates emergencies\u003c\/strong\u003e: If escalation is detected, sends an emergency alert to the owner via Telegram including the user’s message, the bot reply, and any captured details.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSaves qualified leads\u003c\/strong\u003e: For valid leads, checks Google Sheets for an existing row with the same phone number to prevent duplicates.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eAppends and notifies\u003c\/strong\u003e: If not a duplicate, appends the lead to Google Sheets and notifies the owner in Telegram with the lead details.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eHealthcare providers using Telegram for inbound inquiries who need \u003cstrong\u003einstant lead capture\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003eClinics or home-care services that want \u003cstrong\u003eemergency detection\u003c\/strong\u003e and immediate owner notifications.\u003c\/li\u003e\n  \u003cli\u003eOperators running \u003cstrong\u003en8n automation workflows\u003c\/strong\u003e to maintain clean lead lists in Google Sheets.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details (n8n + integrations)\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eTelegram trigger\u003c\/strong\u003e + Telegram node for bot messaging and owner alerts\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003en8n-nodes-langchainagent\u003c\/strong\u003e with a \u003cstrong\u003eGoogle Gemini (PaLM)\u003c\/strong\u003e chat model (conversation memory)\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCode\u003c\/strong\u003e + \u003cstrong\u003eFilter\u003c\/strong\u003e for JSON parsing\/validation and escalation vs. lead logic\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGoogle Sheets\u003c\/strong\u003e for duplicate checks by phone number and lead row appending\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003cp\u003e\u003cstrong\u003eSetup requirements\u003c\/strong\u003e: Configure Telegram bot credentials, add Google Gemini (PaLM) API credentials, connect Google Sheets OAuth, and set the target spreadsheet\/sheet and owner Telegram contact.\u003c\/p\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45887425675443,"sku":"N8N-18588","price":55.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/9BhonH2CW-0-Fe_PALlwY_XeLj2F6g.png?v=1787475789","url":"https:\/\/buyflowscripts.com\/products\/telegram-healthcare-lead-capture-with-gemini-to-google-sheets-n8n","provider":"N8N Commerce","version":"1.0","type":"link"}