How mariam1617/rahaal-virtual-travel-assisstant works
Ra7al is an Egypt-focused conversational travel concierge. Travelers enter through the Streamlit interface or FastAPI; requests are routed to planning, local travel help, trip execution, or feedback workflows. Planning produces and validates itineraries before approval-gated execution, while feedback can refine a trip or inform later personalization. The graph includes documented capabilities whose implementation was not sampled, but omits uncertain links between them; dashed edges indicate those unverified relationships.
Main entry points: supervisor/graph.py Supervisor routing · main.py FastAPI application · feedback/graph.py Feedback workflow · planner/graph.py Itinerary planner
Components 23
Conversation entry
- Streamlit interface
app.py - FastAPI application
src/main.py - Turn runner
src/runner.py
Agent workflows
- Supervisor routing
src/agents/supervisor/graph.py - Itinerary planner
src/agents/planner/graph.py - Draft generation
src/agents/planner/draft_generator.py - Feedback workflow
src/agents/feedback/graph.py - Feedback classification
src/agents/feedback/router.py - Trip adjustments
src/agents/feedback/itinerary_update.py - Preference learning
src/agents/feedback/preference_learning.py - Trip execution
src/agents/execution/graph.py - Booking workflow
src/agents/execution/booking.py - Calendar sync
src/agents/execution/calendar_sync.py
Travel knowledge
- Tourist help
src/agents/tourist_help/graph.py - Place recommendations
src/agents/tourist_help/recommendations.py - Travel information RAG
src/rag/tourist_rag
Profiles and history
- Profile service
src/services/profile_service.py - Trip history service
src/history/service.py - History interface
src/history/ui.py
Persistence
- User repository
src/db/repositories/user_repo.py - Plan repository
src/db/repositories/plan_repo.py - Insight repository
src/db/repositories/insight_repo.py
Other components
- Traveler
Connections 27
- Traveler → Streamlit interface: starts conversation
app.py - Traveler → FastAPI application: sends request
- Streamlit interface → Turn runner: runs turns
app.py - Streamlit interface → Supervisor routing: routes requests
app.py - FastAPI application → Supervisor routing: mounts endpoint
src/main.py - FastAPI application → Itinerary planner: mounts endpoint
src/main.py - FastAPI application → Tourist help: mounts endpoint
src/main.py - FastAPI application → Feedback workflow: mounts endpoint
src/main.py - Turn runner → Plan repository: saves plans
src/runner.py - Turn runner → Trip history service: records approvals
src/runner.py - Supervisor routing → Itinerary planner: dispatches requests
src/agents/supervisor/graph.py - Supervisor routing → Feedback workflow: dispatches requests
src/agents/supervisor/graph.py - Supervisor routing → Trip execution: dispatches requests
src/agents/supervisor/graph.py - Supervisor routing → Tourist help: dispatches requests
src/agents/supervisor/graph.py - Itinerary planner → Draft generation: generates draft
src/agents/planner/graph.py - Itinerary planner → Trip execution: requests approval
src/agents/planner/graph.py - Feedback workflow → Feedback classification: classifies feedback
src/agents/feedback/graph.py - Feedback workflow → Trip adjustments: updates itinerary
src/agents/feedback/graph.py - Feedback workflow → Preference learning: learns preferences
src/agents/feedback/graph.py - Trip execution → Booking workflow: runs booking
src/agents/execution/graph.py - Trip execution → Calendar sync: syncs calendar
src/agents/execution/graph.py - Tourist help → Place recommendations: offers places
- Tourist help → Travel information RAG: retrieves guidance
- Profile service → User repository: reads profiles
src/services/profile_service.py - Profile service → Insight repository: persists insights
src/services/profile_service.py - History interface → Trip history service: uses history
src/history/ui.py - Trip history service → User repository: reads users