DEV Community

Hafsah Inuwa
Hafsah Inuwa

Posted on

Building a Visa Guide AI with Django, Gemini API, and Telex A2A

What Visa Guide AI v2 Actually Does

The agent provides concrete, actionable visa information based on your passport:

Input: Your passport country
Output:

  • Visa-Free Countries: Where you can travel without any visa
  • 🛂 Visa-on-Arrival Countries: Destinations where you can get a visa at entry
  • 📝 Visa-Required Countries: Places where you need to apply in advance
  • 💰 Visa Fees: Estimated costs for different visa types
  • 💡 Recommendations: Smart suggestions based on travel preferences

Example Query:
"I have a US passport, where can I travel?"

Example Response:
"With a US passport, you can visit:

  • ✅ Visa-free: UK, EU, Japan, Brazil (90 days)
  • 🛂 Visa-on-arrival: Thailand, Indonesia, Kenya ($50 fee)
  • 📝 Visa required: Russia, China, India (apply 4 weeks ahead)
  • 💡 Recommendation: Consider Japan for easy visa-free travel"

Technical Implementation

The core Django view processes the passport input, uses Gemini API to analyze global visa policies, and structures the response into the clear categories above.

Top comments (0)