# Handle WhatsApp customer chats with OpenAI and Data Tables

> Quick overview This workflow creates Data Tables for message logging and FAQ, then runs a WhatsApp Cloud API assistant that can read text, voice notes, images, and PDFs, uses OpenAI to respond with conversation memory, and alerts via Telegram when failures occur. How it works 1. Runs when a new WhatsApp Cloud API message is received, ignoring delivery/read status updates. 2. Normalizes the webhook payload into one item per customer message, skips old or unsupported message types, deduplicates by message ID using n8n Data Tables, and logs the raw message. 3. If the message contains audio, an image, or a document, it fetches the WhatsApp media URL, downloads the file, and uses OpenAI and PDF text extraction to convert it into readable text (or records an explanation if the file is unsupported or too large). 4. Saves the cleaned message content to the messages Data Table and waits briefly to buffer multiple rapid-fire messages from the same customer. 5. Loads the customer’s recent convers

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