# Handle LINE vet booking requests with Gemini, Gmail and Google Calendar

> Quick overview This workflow receives LINE messages, uses Google Gemini to extract veterinary booking details, stores and tracks requests in Google Sheets, requests clinic approval via Gmail, and then checks Google Calendar to create and confirm appointments while notifying the owner on LINE and alerting an admin on failures. How it works 1. Receives a POST webhook from LINE, computes an HMAC signature, and stops if the signature does not match the X-Line-Signature header. 2. Splits the webhook into individual LINE events, filters to 1:1 text messages, detects emergency keywords, and replies on LINE with either receipt confirmation or “call the clinic” guidance. 3. Checks and writes an EventLog entry in Google Sheets to deduplicate events and route booking messages into intake processing. 4. For booking intake, looks up any active request in the BookingRequests sheet, then uses Google Gemini to extract booking details, validates the extraction against the owner’s message evidence, and 

- **Domain**: `n8n-workflow-22538.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/22538
- Page (HTML): https://agenstry.com/agents/n8n-workflow-22538.n8n.io
- Documentation: https://n8n.io/workflows/22538
