Monitor hotel competitor rates and answer WhatsApp Q&A using OpenAI GPT-4.1
Ready for 3.0What this workflow does
This AI workflow has 39 nodes and runs on a schedule (cron 0 0 9 * * *) (plus 1 other trigger). Along the way it connects Data table, WhatsApp Business Cloud and OpenAI Chat Model. It also calls test.api.amadeus.com over HTTP.
How it runs
Trigger: On a schedule (cron 0 0 9 * * *) (plus 1 other trigger).
- Config (Edit Fields (Set)): sets 7 fields: currency, adults, roomQuantity…
- Filter Text Messages (If): checks a condition and branches into true / false
- Amadeus OAuth (HTTP Request): calls test.api.amadeus.com (POST)
- Normalize Whatsapp Input (Edit Fields (Set)): sets 1 field: chatInput
- Generate 30 night windows (Code): runs custom JavaScript code
- Get Alert Summary (Data table): get
- Combine 30-Day Rates (Merge): merges the data from its input branches
- Amadeus Hotel Offers (HTTP Request): calls test.api.amadeus.com
- AI Agent: runs an AI agent, with model: OpenAI Chat Model; 1 tool (Get Hotel_Rates_History); memory: Simple Memory
- Clean Amadeus Data (Code): runs custom JavaScript code
…plus 22 more steps. See the full node list below.
Services it uses
Other WhatsApp + OpenAI templates (104)
HTTP calls to: test.api.amadeus.com
Scraping pages by hand? Firecrawl is a simpler option (10% off for new users).
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (15)
- Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - If
n8n-nodes-base.if - Data table
n8n-nodes-base.dataTable - Merge
n8n-nodes-base.merge - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Data Table Tool
n8n-nodes-base.dataTableTool - WhatsApp Trigger
n8n-nodes-base.whatsAppTrigger - WhatsApp Business Cloud
n8n-nodes-base.whatsApp - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - Schedule Trigger
n8n-nodes-base.scheduleTrigger - HTML
n8n-nodes-base.html
From the author
How It Works Top Branch Workflow A 1. The Market Intelligence: - Patrols the Market: Runs hourly to scrape competitor rates for future days. - Gathers Intel: If prices spike, it instantly checks event announcements to see if a major event is driving demand. -…