Skip to main content

Overview

Grouple has 6 Edge Functions deployed on Supabase. They handle email delivery, AI proposal generation, OCR processing, and currency updates. Most are triggered by database triggers or called directly from the frontend/API.

Functions

send-lead-email

Last updated: 6 days ago
Triggered by: send_enquiry_notification DB trigger (AFTER INSERT on enquiries)
Sends lead notification emails to matched venues when a new enquiry is submitted. Called via HTTP from the database trigger with the enquiry payload. Flow:

send-proposal-email

Last updated: 1 day ago
Triggered by: proposal-updated-email DB trigger (AFTER UPDATE on proposals)
Sends an email to the customer when a merchant updates or sends a proposal. Flow:

reservation-confirmation-emails

Last updated: 1 day ago
Triggered by: proposal-confirmation-email DB trigger (AFTER UPDATE on proposals when status = β€œconfirmed”)
Sends confirmation emails to both the customer and merchant when a booking is confirmed. Flow:

generate-proposal

Last updated: 3 months ago
Triggered by: Frontend (merchant clicks β€œGenerate with AI”)
Generates AI-powered proposal content for merchants. Calls Amazon Bedrock Claude 4.6 with venue knowledge (extracted menu data, venue details) and enquiry requirements to produce a tailored proposal. Flow:

mistral-ocr

Last updated: 1 month ago
Triggered by: Frontend / PDF Extract Worker
Processes PDF menus and brochures uploaded by merchants. Extracts structured data from PDFs to populate venue_knowledge.extracted_data. Flow:

update-exchange-rates

Last updated: 1 month ago
Triggered by: Scheduled (cron) or manual
Fetches latest currency exchange rates and updates the exchange_rates table. Supports multi-currency pricing across USD, AED, GBP, INR, EUR. Flow: