๐Ÿ’ฌ Create personalized city trip itineraries with Telegram Bot & GPT-4o

โšก 181 views ยท ๐Ÿ’ฌ Support Chatbots

Description

Overview

This workflow transforms your Telegram bot into a smart AI-powered travel assistant that instantly creates 3-day trip plans for any city in the world. Users can personalize trips by sending hashtags such as #luxury, #budget, or #romantic to receive itineraries aligned with their travel style โ€” from cozy getaways to adrenaline-filled adventures.

Ideal for travel bloggers, tour operators, and AI enthusiasts looking to provide interactive trip suggestions through Telegram.


How it Works

  1. Telegram Trigger โ€” Listens for new messages from users.
  2. Show Typing Indicator โ€” Sends a โ€œtypingโ€ฆโ€ signal for a smooth user experience.
  3. Switch Node โ€” Detects preset hashtags (e.g. #cozy, #nightlife, #cultural) and routes the flow.
  4. Prompt Builder โ€” Creates a JSON prompt with the selected city, trip duration, and preset theme.
  5. AI/ML API (GPT-5 or GPT-4o) โ€” Generates a detailed 3-day itinerary including sights, restaurants, and travel tips.
  6. Telegram Message โ€” Sends the formatted trip plan back to the user.

Key Features


Setup Steps

  1. Create Telegram Bot

    • Open @BotFather
    • Run /newbot, set a name and username
    • Save your bot token
  2. Add Credentials in n8n

    • Telegram API โ†’ Use your bot token
    • AI/ML API โ†’ Add your API key (GPT-4o or GPT-5 model)
  3. Import and Configure

    • Import this JSON workflow into n8n
    • Link credentials for Telegram and AI/ML API
    • Activate the workflow
  4. Test the Bot

    • Send: #luxury Paris or #nature Bali
    • Receive your detailed AI-generated itinerary instantly

Example Interaction

User:

/romantic Florence

Bot:

โœจ 3-Day Romantic Getaway in Florence โœจ  

Day 1 โ€” Artistic Beginnings  
โ€ข Visit: Uffizi Gallery, Ponte Vecchio  
โ€ข Eat: Trattoria ZaZa ๐Ÿ  
โ€ข Tip: Sunset walk along Arno River ๐ŸŒ‡  

Day 2 โ€” Tuscan Charm  
โ€ข Visit: Boboli Gardens, Piazzale Michelangelo  
โ€ข Eat: Wine tasting in Chianti region ๐Ÿท  
โ€ข Tip: Rent a Vespa for the full Italian vibe ๐Ÿ‡ฎ๐Ÿ‡น  

Day 3 โ€” Hidden Gems  
โ€ข Visit: Fiesole hilltop village  
โ€ข Eat: Local bakery for morning cappuccino โ˜•  
โ€ข Tip: Avoid peak crowds by starting early ๐ŸŒ…  

Resources

๐Ÿ”— Nodes Used

Telegram, Telegram Trigger

๐Ÿ“ฅ Import

Download workflow.json and import into n8n: Workflow menu โ†’ Import from File

๐Ÿ“– Importing guide ยท ๐Ÿ”‘ Credential setup