Automation library · Alerts and monitoring

Monitor hotel competitor rates and answer WhatsApp Q&A

Started by an incoming WhatsApp message, and works across WhatsApp and n8n data table. It puts OpenAI behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 39 steps, 2 branches: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAIRetrieval

39 stepsLarge: read it before trusting it with anything live
2Branches: places the flow splits
0Loops or waits
2Services it connects to

The flow

Starts it 2Model 6Logic 19Service 12

The steps in the order they run, from what starts it.

  1. 1Structured Output ParserOutput Parser StructuredModel
  2. 2Get Hotel_Rates_HistoryData Table ToolService
  3. 3WhatsApp TriggerWhats App triggerStarts it
  4. 4OpenAI Chat Model2Lm Chat Open AiModel
  5. 5Simple MemoryMemory Buffer WindowModel
  6. 6OpenAI Chat ModelLm Chat Open AiModel
  7. 7Daily Market CheckSchedule triggerStarts it
  8. 8AI Agent: AnalyzeAgentModel
  9. 9AI Agent: Q&AAgentModel
  10. 10Filter Text MessagesIfLogic
  11. 11ConfigSetLogic
  12. 12Send WhatsApp AlertWhats AppService
  13. 13Combine Summary & AlertMergeLogic
  14. 14Q&AWhats AppService
  15. 15Normalize Whatsapp InputSetLogic
  16. 16Amadeus OAuthHttp RequestService
  17. 17Upsert Hotel Price AlertsData TableService
  18. 18Get Alert SummaryData TableService
  19. 19Generate 30 night windowsCodeLogic
  20. 20Combine 30-Day RatesMergeLogic
  21. 21Amadeus Hotel OffersHttp RequestService
  22. 22Clean Amadeus DataCodeLogic
  23. 23New SnapshotCodeLogic
  24. 24Combine New Rates vs Prev RatesMergeLogic
  25. 25Get Prev RatesData TableService
  26. 26Upsert Latest RatesData TableService
  27. 27Compute ChangeCodeLogic
  28. 28Insert History RatesData TableService
  29. 29Prev SnapshotCodeLogic
  30. 30Significant Competitor ChangeIfLogic
  31. 31Get Our Hotel RatesData TableService
  32. 32Combine Competitor Rates vs Our RatesMergeLogic
  33. 33Prefix Our Hotel FieldsSetLogic
  34. 34Build VCC URLsCodeLogic
  35. 35Combine Rates & EventsMergeLogic
  36. 36Fetch VCC Month HTMLHttp RequestService
  37. 37Prepare AI Agent InputCodeLogic
  38. 38Extract Event DetailsHtmlLogic
  39. 39Events ExtractCodeLogic

How it's built

Starts on
An incoming WhatsApp message
Steps
39, with 2 branches
Size
Large: read it before trusting it with anything live
Connects to
WhatsApp, n8n data table
Model
OpenAI
Retrieval
Answers are drawn from documents you supply, not from the model alone

Questions

What does it need to run?

An n8n account, plus your own WhatsApp account, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an incoming WhatsApp message.

Does it use AI?

Yes. It calls OpenAI. Its answers draw on documents you give it, not on the model alone. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 39 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

Before you run it

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 39 steps before you point it at anything that matters.