Settings

Configuration and actions

Problem Clustering

Regenerate problem clusters from all extracted problems using cosine similarity on embeddings. This will delete existing clusters and create new ones, then enrich them with AI-generated summaries.

Mailgun Webhook

Configure Mailgun to forward newsletters to this app automatically.

Webhook URL

POST https://<your-domain>/api/webhooks/mailgun

Setup Steps

  1. Go to Mailgun Dashboard → Receiving → Create Route
  2. Set match expression (e.g. match_recipient("newsletters@yourdomain.com"))
  3. Set action: forward to the webhook URL above
  4. Copy your Webhook Signing Key into MAILGUN_WEBHOOK_SIGNING_KEY env var

Environment Variables

Required environment variables (set in .env):

OPENAI_API_KEYGPT-4o analysis + embeddings
DATABASE_URLPostgreSQL connection
MAILGUN_WEBHOOK_SIGNING_KEYWebhook verification