Templates / Run a Telegram hotel search bot with OpenAI and WinWin MCP

Run a Telegram hotel search bot with OpenAI and WinWin MCP

Ready for 3.0

by Vadym · 17 views · created 2026-09-01 · Support Chatbot, AI Chatbot

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This AI workflow has 41 nodes and runs on Telegram events (message, callback query). Along the way it connects Telegram, OpenAI Chat Model, MCP Client and Postgres Chat Memory.

How it runs

Trigger: On Telegram events (message, callback query).

  1. Route Update Type (Switch): routes items into 5 branches
  2. Send Welcome Message (Telegram): uses Telegram
  3. Send Searching Message (Telegram): uses Telegram
  4. Send Gallery Type Menu (Telegram): uses Telegram
  5. Parse Gallery Selection (Edit Fields (Set)): sets 2 fields: photo_type, base_button_id
  6. Hotel Search Agent (AI Agent): runs an AI agent, with model: OpenAI Model (Agent); 2 tools (WinWin MCP Tools, Photo Validation Tool); memory: Postgres Chat Memory; output parser: Hotel Results Parser
  7. Get Gallery Photos (Data table): get
  8. Has Hotel Results? (If): checks a condition and branches into true / false
  9. Send Hotel Name and Room Type (Telegram): uses Telegram
  10. Build batches of (Code): runs custom JavaScript code

…plus 25 more steps. See the full node list below.

Services it uses

TelegramOpenAI Chat ModelMCP ClientPostgres Chat Memory

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.

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (15)

From the author

Quick overview This workflow powers a Telegram hotel demo bot that uses OpenAI and the WinWin MCP to search live hotel offers, send rich offer cards with booking links, and store/retrieve validated hotel and room photo galleries via an n8n Data Table. How it…

Excerpt from Vadym's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.