TripAi is a powerful AI-based travel planning web application that helps users effortlessly generate customised trip itineraries. By leveraging Meta’s Llama 3.8B Instruct model and integrating real-time data from Amadeus APIs, TripAi delivers intelligent and practical trip suggestions – including flights, hotels, and personalised activities.
✈️ Smart Trip Planner : Enter origin, destination, dates, budget, and partners to get a tailored itinerary.- 🧠 AI-Generated Plans : Powered by Meta Llama 3.8B Instruct for context-aware travel suggestions.
- 🏨 Real-Time Flights & Hotels : View flights and hotel availability via the Amadeus API.
- 📥 Download as PDF : Export your travel plan after a nominal fee using Cashfree Payment Gateway.
- 📊 Recommendations Engine : Suggests trips based on historical travel data.
- 🔒 Firebase Auth : Secure sign-in system for user-specific planning and downloads.
- 💾 MongoDB + Redis : Persistent storage for user plans and caching for performance.
| Tech | Purpose |
|---|---|
| Node.js + Express | Backend server and routing |
| EJS | Server-side templating |
| Bootstrap | Responsive UI design |
| MongoDB + Redis | Database + caching layer |
| Firebase Auth | Authentication system |
| Puppeteer | HTML-to-PDF conversion |
| Meta Llama 3.8B Instruct | Natural language trip planning |
| Amadeus API | Flights and hotels integration |
| Cashfree API | Payment gateway integration |
-
Clone the repository:
git clone https://github.com/your-username/tripai.git cd tripai -
Install dependencies:
npm install
-
Setup
.envfile: Create a.envfile in the root directory and add the following:SESSION_SECRET=Anything REPLICATE_API_TOKEN=get htis token from https://replicate.com/meta/meta-llama-3-8b-instruct AMADEUS_API_KEY=get this from https://developers.amadeus.com/ AMADEUS_API_SECRET==also from https://developers.amadeus.com/ #cashfree CASHFREE_APP_ID=get this from https://www.cashfree.com/ CASHFREE_SECRET_KEY=same fro https://www.cashfree.com/ CASHFREE_ENV=PRODUCTION BASE_URL=http://localhost:3000 XEnvironment=Cashfree.Environment.PRODUCTION; NODE_ENV=PRODUCTION MONGO_URI=Your MongoDb Url from localhost REDIS_URL=Redi Database Url REDIS_USER= REDIS_PASSWORD= FIREBASE_SERVICE_ACCOUNT={Get this from console.firebase.google.com}
-
Start the server:
node app.js
-
Visit
http://localhost:3000to start using TripAi locally.
This project is licensed under the MIT License – see the LICENSE file for details.
