graph TD
A[Booking_Executor_Agent] --> B[Detect Click Events]
B --> C[Read email_log.csv]
C --> D[Extract clicked_leads JSON]
D --> E[Lead Processing Loop]
E --> F[Map Lead to Tour Parameters]
F --> G[Check Rezdy Availability]
G --> H[Validate Business Rules]
H --> I{Rules Pass?}
I -->|Yes| J[Create Rezdy Booking]
J --> K[Extract rezdy_booking_id]
K --> M[Compose CSV Row]
I -->|No| L[Mark as Rejected]
L --> M
M --> N[Append to bookings_log.csv]
subgraph SILO_A[Intake & Click Detection]
B
C
D
end
subgraph SILO_B[Availability & Rules]
F
G
H
I
end
subgraph SILO_C[Booking & Logging]
J
K
L
M
N
end
style SILO_A fill:#f9f,stroke:#333
style SILO_B fill:#bbf,stroke:#333
style SILO_C fill:#bfb,stroke:#333