Skip to content
NEWMeet Alaaddin, your AI genie with a voice. trig8n launches 1 January 2027. See what is new

Library / Email Automation

Email Automation

Manage catering event quotes and countdowns with Postgres, Gmail, OpenAI and Telegram

When an API call/webhook arrives, it handles email with OpenAI / ChatGPT using Gmail, Postgres, Telegram.

What it does

## 09-09-01 automate catering event orders with AI quotes and countdown reminders ### How it works Keep catering events on track from inquiry to invoice. - A new event arrives on the intake webhook. Validation rejects bad payloads, an AI assistant writes a quote email to the client, and the event is stored with its deposit deadline. - When the client replies with changes or pays the deposit, the update webhook updates the record and confirms by email while the owner gets a Telegram alert. - On event day the completion webhook saves the final headcount and the AI writes the final invoice email plus a review request. - Every morning at 08:00 a countdown sweep finds events at T-7, T-3, T-1 and overdue deposits, emails clients, pings the owner, and posts an all clear on quiet days. ### Setup steps - Create the catering_events and comms_log tables in Postgres and connect the credential. - Add Gmail, Telegram and OpenAI credentials, then point the three webhooks at your intake channel. - Replace ops@yourcatering.com and YOUR_TELEGRAM_CHAT_ID with real values. ### Customization - Edit packages and payment terms in Build Quote Context; change sweep thresholds in Parse Open Events. Rules are deterministic; the AI only writes the copy.

The steps

  1. Webhook Catering Intake
  2. Normalize Intake
  3. Validate Intake
  4. Build Invalid Intake Notice
  5. Post Invalid Intake TG
  6. Email Invalid Intake Notice
  7. Build Quote Context
  8. AI Draft Quote
  9. Quote Model
  10. Parse Quote Output
  11. Insert Catering Event
  12. Log Quote Comms
  13. Send Quote Email
  14. Send Intake TG Alert

63 steps in total.

Similar automations