The chatbot now supports multiple AI providers with automatic fallback, so it will always work even without API keys!
The chatbot tries AI providers in this order:
- Google Gemini (if
GOOGLE_GEMINI_API_KEYis set) - OpenAI GPT-3.5 (if
OPENAI_API_KEYis set) - Hugging Face (if
HUGGINGFACE_API_KEYis set) - Smart Travel Assistant (always works - no API key needed!)
The chatbot will work immediately using the smart travel assistant fallback! No setup needed.
- Get API key from: https://makersuite.google.com/app/apikey
- Add to
backend/.env:GOOGLE_GEMINI_API_KEY=your_api_key_here
- Get API key from: https://platform.openai.com/api-keys
- Add to
backend/.env:OPENAI_API_KEY=your_api_key_here
- Get API key from: https://huggingface.co/settings/tokens
- Add to
backend/.env:HUGGINGFACE_API_KEY=your_api_key_here
Even without API keys, the chatbot can answer:
- ✅ Greetings and basic questions
- ✅ Travel planning queries
- ✅ Destination recommendations
- ✅ Budget questions
- ✅ Safety and weather information
- ✅ Sustainability questions
- ✅ Photo swipe discovery
- ✅ General travel tips
- Start the backend:
cd backend && npm start - Open the frontend:
cd frontend && npm start - Click the chatbot button (💬) in the bottom right
- Try asking:
- "Hello"
- "Help me plan a trip"
- "What destinations do you have?"
- "Tell me about safety"
- Any travel-related question!
The chatbot will automatically use the best available AI provider!