Setup guides

Connected in an afternoon.

Everything Debrief connects to, step by step. Each guide takes 5 to 15 minutes.

Supabase basics

Debrief uses Supabase for accounts. People sign up with their email and a password (or a one-time link), or with GitHub. The GitHub button appears the moment it's enabled in Supabase.

  1. Create a project at supabase.com. The free tier is fine.
  2. In Project Settings → API, copy the Project URL and the anon key into SUPABASE_URL and SUPABASE_ANON_KEY in .env.
  3. In Authentication → URL Configuration, set Site URL to your Debrief address (for example http://localhost:3000) and add http://localhost:3000/** to Redirect URLs. Add your real domain the same way when you deploy.
  4. Find your callback URL: it's your Project URL plus /auth/v1/callback, like https://abcdefgh.supabase.co/auth/v1/callback. GitHub needs it. Some forms call it the redirect URL; it's the same thing.

GitHub

  1. Go to GitHub → Settings → Developer settings → OAuth Apps and click New OAuth App.
  2. Application name: Debrief. Homepage URL: your Debrief address. Authorization callback URL: your Supabase callback URL.
  3. Click Register application, copy the Client ID, then Generate a new client secret and copy it (GitHub shows it once).
  4. In Supabase, Authentication → Sign In / Providers → GitHub: enable it, paste both values, save.

Email sign-up

Email and password sign-up, "email me a link" and password reset are on by default (Authentication → Sign In / Providers → Email). Keep Confirm email switched on so people prove they own the address.

  1. Supabase's built-in mailer only sends a few auth emails an hour and is meant for testing. For real users, connect your own sender: Authentication → Emails → SMTP Settings → enable custom SMTP.
  2. With Resend (after verifying your domain): host smtp.resend.com, port 465, username resend, password a Resend API key, sender email an address on your verified domain such as hello@yourdomain.com, sender name "Debrief".
  3. Raise the sending limit under Authentication → Rate Limits if you expect many sign-ups an hour.

Custom verification email

The email a new user gets to confirm their address is a template you can rewrite completely, in HTML.

  1. Open Authentication → Emails → Templates and pick Confirm signup.
  2. Set the Subject, for example Confirm your email for Debrief.
  3. Paste your HTML into Message body. Ready-made, on-brand templates live in the Debrief folder under supabase/email-templates/: confirm-signup.html, magic-link.html and reset-password.html.
  4. Keep the link variable in the button: {{ .ConfirmationURL }}. Without it the email can't confirm anything.
  5. Save, then sign up with a test address to see it. Repeat for Magic Link and Reset Password so every email matches.

Variables you can use

VariableWhat it is
{{ .ConfirmationURL }}The link that confirms the address (or signs in, or opens password reset).
{{ .Token }}A 6-digit code, if you'd rather show a code than a link.
{{ .Email }}The address the email is going to.
{{ .SiteURL }}Your Site URL from URL Configuration.
{{ .Data.full_name }}Anything saved at sign-up. Debrief saves full_name and product_name.

Email clients ignore most CSS, so keep styles inline and the layout simple. Test in Gmail and Outlook before launch. People who sign in with GitHub never get this email: GitHub has already confirmed their address.

Email delivery (Resend)

Debrief emails customers their interview link and your win-back messages through Resend.

  1. Create a Resend account and an API key. Put it in RESEND_API_KEY.
  2. Verify a domain you own at resend.com/domains: add the DNS records Resend shows (SPF, DKIM) at your domain registrar and wait for "Verified". A subdomain like mail.yourdomain.com works well.
  3. Set FROM_EMAIL to an address on that domain, like Sam from Acme <sam@mail.yourdomain.com>, and optionally REPLY_TO_EMAIL to the inbox where you read replies. Restart Debrief.
  4. In Debrief, open Settings → Emails and click Send test. It shows Resend's exact answer.

Resend's shared test sender onboarding@resend.dev only delivers to the email on your Resend account. Customer invites sent from it fail, and Debrief marks them "Not delivered".

Stripe

Connect once and every cancelled subscription gets an interview from you. Takes about two minutes, no code.

  1. In Stripe, open Developers → API keys → Create restricted key.
  2. Give it Customers: Read and Webhook Endpoints: Write. Leave everything else as None, then create it.
  3. In Debrief, open Settings → Stripe, paste the key and click Connect Stripe. Debrief checks the key and adds its webhook (customer.subscription.deleted) to your Stripe account for you.
  4. Prefer to manage the webhook yourself? Expand Use your own webhook instead for your workspace's URL, and paste the signing secret.

We store the key encrypted and only use it to read the email and name of customers who cancel. Disconnecting removes our webhook from your Stripe.

Slack alerts

  1. Create a Slack app at api.slack.com/apps → Incoming Webhooks → turn on → Add New Webhook to Workspace → pick a channel.
  2. Copy the webhook URL (https://hooks.slack.com/services/…) into Settings → Notifications → Slack in Debrief and save.

AI interviewer

Without an AI key, Debrief asks scripted follow-ups and tags reasons by keyword. With one, follow-ups adapt to each answer, tagging is smarter and Ask Debrief writes full answers.

  • Any OpenAI-compatible router: LLM_API_KEY and LLM_BASE_URL (for example Requesty), optionally LLM_MODEL.
  • Or Anthropic directly: ANTHROPIC_API_KEY.