Skip to content
NEWMeet Alaaddin, your AI genie with a voice. trig8n launches 1 January 2027. See what is new

Library / Chatbots & Messaging Bots

Chatbots & Messaging Bots

Plan travel itineraries from Telegram messages with Gemini and SerpAPI

Polls a Telegram bot every minute, uses Gemini agents with SerpAPI place search to build itineraries, and asks follow-up questions when trip details are missing.

What it does

## Telegram AI Trip Planner ### How it works This workflow polls Telegram every minute for new bot messages, extracts the latest travel request, and acknowledges the Telegram update so it is not processed again. It uses Gemini-powered AI agents to parse the request and, when enough details are present, generate a researched travel itinerary with place search support. If key information is missing it asks the user for clarification; otherwise it formats and sends the completed itinerary back through Telegram. ### Setup steps - Create a Telegram bot with BotFather and configure the Telegram bot token in the HTTP Request URLs and Telegram nodes. - Configure Google Gemini credentials for both Gemini chat model nodes. - Configure SerpAPI credentials for the Search Places tool used by the trip-planning agent. - Review the polling and Telegram update-offset logic in the Fetch Telegram Updates, Extract New Message, and Acknowledge Updates nodes before running on localhost. ### Customization Adjust the AI prompts, structured parsers, budget calculation code, and the Enough Info? conditions to change what details are required and how the itinerary is planned. @youtube

The steps

  1. Telegram Trigger
  2. Extract Message Details
  3. Trip Request AI Agent
  4. Initial Gemini Chat Model
  5. Parse User Request
  6. Calculate Budget Details
  7. Check Trip Info Completeness
  8. Request Additional Info
  9. Trip Planning Agent
  10. Discover Destinations
  11. Parse Trip Details
  12. Create Itinerary Format
  13. Send Itinerary via Telegram
  14. Secondary Gemini Model

Similar automations