Quick overview
This workflow runs an AI-powered Accessible Dubai travel assistant on Telegram and WhatsApp, using OpenAI and the WinWin Travel MCP to search live hotel offers, send paginated offer cards with photo galleries, and answer room-feature questions from hotel-provided feature data.
How it works
- Triggers on incoming Telegram messages/callbacks or WhatsApp Cloud API messages and normalizes the user context (channel, user ID, text, and button selections).
- Routes updates to either send a welcome prompt, show a gallery menu, or acknowledge the request with a “working on it” message.
- Uses an OpenAI agent with WinWin MCP tools to classify the request (hotel search, Dubai accessibility info, clarification, out of scope, or room-feature question) and, for hotel searches, fetches live offers and a WinWin results URL.
- If hotel offers are returned, formats results into batches of three, sends each offer’s key photos and a detailed offer card to Telegram or an interactive card to WhatsApp, and provides a “next 3” pagination option.
- Stores offer photo URLs in an n8n Data Table and, when the user taps “View Gallery,” retrieves the matching room or hotel photos and sends them as single images or media groups.
- Extracts room and hotel feature data from the WinWin search response into an n8n Data Table and, when the user asks about a specific feature (for example, roll-in shower), uses OpenAI to match relevant features and returns a short answer plus any associated feature images.
Setup
- Create and select credentials for Telegram (bot token), WhatsApp Business Cloud API (trigger + send access token), OpenAI API, and a WinWin MCP Bearer token.
- Replace every YOUR_WHATSAPP_PHONE_NUMBER_ID placeholder in the WhatsApp nodes and in the HTTP Request calls to graph.facebook.com.
- Create three n8n Data Tables (WAUsers, OfferPhotos, OfferFeatures) with the required columns and select the correct table in each Data Table node that reads/writes them.
- Ensure the selected OpenAI models (gpt-4o / gpt-4o-mini) are available in your account or change them to models you can access.
- Activate the workflow, then message your Telegram bot (send /start) or your WhatsApp number to begin chatting and testing search, pagination, galleries, and room-feature questions.