Merchant clicks "Generate with AI" on Send Proposal page
↓
Frontend calls generate-proposal Edge Function (or API)
↓
Worker receives:
- Enquiry details (group size, budget tier, occasion type, requirements)
- Venue details (name, capacity, pricing, amenities, cuisine types)
- Extracted menu/package data from venue_knowledge
↓
Builds a contextual prompt for Bedrock Claude 4.6
↓
Claude generates:
- Proposal title and description
- Recommended packages and inclusions
- Pricing suggestions
- Personalised message to the customer
↓
Result returned to merchant for review and editing
↓
Merchant sends → proposal saved to Supabase