# Reply to WhatsApp and Instagram booking DMs using OpenAI and Google Sheets

> Quick overview This workflow receives WhatsApp and Instagram DM webhooks, uses OpenAI to generate short support and booking replies, logs conversations to Google Sheets, captures corporate/group leads into a Leads sheet with staff email alerts, and triggers a timed human-handoff mode to silence the bot. How it works 1. Receives incoming WhatsApp and Instagram messages via Meta webhook endpoints (with separate GET verification handling). 2. Normalizes each event into a common message format (platform, sender ID, message type, and text) and looks up the sender in a Google Sheets Contacts tab. 3. If the sender is new, saves the contact to Google Sheets and sends a predefined welcome message back on WhatsApp or Instagram. 4. If the sender exists and is currently marked as handed off within the defined time window, stops without replying. 5. Otherwise, sends the message text to OpenAI, parses the returned JSON intent and reply text, and routes the conversation based on the intent. 6. For co

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