Final booking coordinator. Takes optimized recommendations from SmartTripClaw (Agent 5), validates with Pre-Trip Checker (Agent 7), then orchestrates actual bookings across flights, accommodation, tours, and activities. Provides booking links, confirmation tracking, and post-booking setup (calendar invites, document storage). Use when ready to book the trip.
The final step — turning recommendations into confirmed bookings.
Agent 8 is the executor that:
┌─────────────────────────────────────┐
│ SMART TRIP (Agent 5) │
│ Top 3 recommendations │
└──────────────┬──────────────────────┘
▼
┌─────────────────────────────────────┐
│ PRE-TRIP CHECK (Agent 7) │
│ ✅ Visa, passport, safety OK? │
└──────────────┬──────────────────────┘
▼
┌─────────────────────────────────────┐
│ TRIP BOOKER (Agent 8) │
│ ├── Book flights │
│ ├── Book accommodation │
│ ├── Book tours/activities │
│ ├── Generate itinerary │
│ └── Setup post-booking tasks │
└─────────────────────────────────────┘
python3 scripts/book_trip.py \
--recommendation 1 \
--passengers 2 \
--cabin economy \
--booking-mode guided \
--output confirmations
| Flag | Description | Example |
|---|---|---|
--recommendation | Which Agent 5 option | 1, 2, 3 |
--passengers | Number of travelers | 1, 2 |
--cabin | Flight class | economy, business |
--booking-mode | How to book | guided, auto, links-only |
--output | What to generate | confirmations, calendar, documents |
| Mode | What it does | Best for |
|---|---|---|
guided | Step-by-step with user approval | Most users |
auto | Book everything automatically | Trusted setups |
links-only | Just provide booking links | Manual bookers |
🎉 BOOKING CONFIRMED
═══════════════════════════════════════════
✈️ FLIGHT
• Booking ref: ABC123
• SIN → BKK, TG416, May 15, 2025, 10:30
• Return: BKK → SIN, TG415, May 20, 2025, 14:00
• Passengers: 2 (Economy)
• Total: $360
• Status: ✅ Confirmed
🏨 ACCOMMODATION
• Booking ref: XYZ789
• Hotel: On Nut Residence
• Check-in: May 15, 2025
• Check-out: May 20, 2025 (5 nights)
• Room: 1 Deluxe Double
• Total: $200
• Status: ✅ Confirmed
🎯 ACTIVITIES
• Grand Palace Tour (May 16) - $40 ✅
• Cooking Class (May 17) - $35 ✅
• Rooftop Bar Reservation (May 18) - $30 ✅
📋 DOCUMENTS GENERATED
□ Flight e-tickets (PDF)
□ Hotel voucher (PDF)
□ Travel itinerary (PDF)
□ Emergency contacts card
□ Calendar invites (.ics)
📅 POST-BOOKING TASKS
□ Add to calendar (done)
□ Set price alerts for remaining activities
□ Check-in online (24h before flight)
□ Download offline maps
□ Notify bank of travel
💰 TOTAL PAID: $665
• Flights: $360
• Hotel: $200
• Activities: $105
Called by user when ready to book:
# After Agent 5 provides recommendations
booking = TripBooker.execute(
recommendation=top_choice,
passengers=2,
mode="guided"
)
# Returns confirmation numbers, documents, next steps
Automatically creates:
references/booking_apis.md — API integration guidesassets/confirmation_template.html — Email templatereferences/cancellation_policies.md — Common policies