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
- Telegram Trigger
- Extract Message Details
- Trip Request AI Agent
- Initial Gemini Chat Model
- Parse User Request
- Calculate Budget Details
- Check Trip Info Completeness
- Request Additional Info
- Trip Planning Agent
- Discover Destinations
- Parse Trip Details
- Create Itinerary Format
- Send Itinerary via Telegram
- Secondary Gemini Model
Similar automations
RAG & Knowledge BasesBuild Travel Itineraries with OpenAI RAG and Supabase10 stepsChatbots & Messaging BotsPlan Trips on WhatsApp with an Ollama Travel Assistant6 stepsAI Agents & AssistantsCreate Trip Itineraries from Email and WhatsApp with Ollama8 stepsEmail AutomationReply to Travel Requests by Email with Ollama5 steps