Form type: Inline JavaScript fetch() → lead-capture Edge Function (Supabase)
Edge Function: lead-capture (POST to https://api.averyn.app/functions/v1/lead-capture)
Database table: marketing.leads (asset = discharge-toolkit-bundle)
Email sending: Resend via pulse.averyncare.com
Note: This is a bundle gate — one email submission unlocks access to six discharge-related tools. Unlike individual tool/resource gates, this page doesn't redirect. It unlocks the tools in-page using
sessionStorageand sends a welcome email with links to all included resources.
| Field | Type | Required | Notes |
|---|---|---|---|
| First name | text | Yes | Used in email subject lines and respondent greeting |
| Yes | Respondent email destination; lead contact |
The form is intentionally minimal (2 fields). The primary audience is families who received a referral sheet from an SNF discharge nurse or case manager. Low friction is essential — they're in the middle of a stressful transition.
On submission:
fetch() POSTs to lead-capture Edge Function (no page redirect)marketing.leads (asset = discharge-toolkit-bundle), sends welcome + team emails via Resenddischarge-toolkit-unlocked = 1 in sessionStoragepointer-events:none, opacity:0.5, lock icons)plausible('lead_magnet_submit', { props: { asset: 'discharge_toolkit_bundle', source: 'toolkit' } })Session persistence: Tool links stay unlocked for the browser session via sessionStorage. Closing the browser resets the gate — but the welcome email contains direct links.
UTM passthrough: The form captures utm_source, utm_medium, utm_campaign, utm_content, utm_term from the page URL and appends them to the POST body.
| # | Tool | Type | URL |
|---|---|---|---|
| 1 | Hospital-to-Home Checklist | Printable interactive checklist | /resources/hospital-to-home-checklist.html |
| 2 | What's Falling Through the Cracks? Quiz | Scored quiz (10 questions) | /tools/discharge-planning-quiz/ |
| 3 | Care Complexity Assessment | Scored assessment (7 questions) | /tools/care-complexity-assessment/ |
| 4 | Records Readiness Self-Audit | Scored audit (24 questions, 5 categories) | /tools/records-readiness-audit/ |
| 5 | Doctor Transition Checklist | Printable step-by-step checklist | /resources/doctor-transition-checklist.html |
| 6 | Medicare Benefits Quick Reference | Printable fillable reference | /resources/medicare-benefits-quick-reference.html |
Important: The scored tools (2, 3, 4) have their own inline email gates at the end of the assessment for full results. If the user already provided their email on the bundle gate, they'll need to enter it again on the scored tool to get tool-specific results emailed. This is acceptable because:
score and tier data to the lead record (different from the bundle gate)lead-capture Edge Function dedupes on email+asset, so the same email with a different asset creates a new lead record with its own drip| Setting | Value |
|---|---|
| To | hello@averyncare.com |
| From | notifications@notifications.averyncare.com |
| Subject | Lead: Discharge Planning Toolkit — {name} |
| Body | Structured summary with name, email, asset (discharge-toolkit-bundle), source (toolkit), UTMs |
| Setting | Value |
|---|---|
| To | {email} (from form submission) |
| From | hello@pulse.averyncare.com |
| Reply-to | hello@averyncare.com |
| Subject | ✓ Your Discharge Planning Toolkit |
Email content is defined in marketingEmails.ts using the block-based template engine. Includes:
/discharge-toolkit/)These leads are top-of-funnel, action-oriented, pre-customer. They came from a discharge context — likely from an SNF referral sheet or the /professionals/discharge/ page. They're in the middle of a transition and looking for immediate help.
hello@averyncare.com to the new leadsource: toolkit, segment: discharge_familysource: discharge_toolkit_bundle, segment: discharge_familyutm_source=referral_sheet or utm_medium=print, this lead came from a physical referral sheet given to the family by a discharge nurse. High-intent lead.Subject: "The first week home, {name}"
Focus: Practical first-week priorities (PCP follow-up, medication reconciliation, discharge instructions). Links to the Discharge Cracks Quiz. No sales pitch.
Tone: Helpful, practical, empathetic. This person is managing a crisis.
Subject: "Week one check-in, {name}"
Focus: Quick inventory of what should be done by now. Links to the Hospital-to-Home Checklist and Records Readiness Audit. Still no sales pitch.
Tone: Gentle check-in. Normalize the difficulty.
Subject: "When the discharge plan unravels"
Focus: Name the reality (discharge follow-through breaks down around week two). Introduce Averyn as the navigator who drives the follow-through. Mention Expanded ($249/mo) and Record Vault ($999). Link to support options and start page.
Tone: Honest, not salesy. Empathetic but direct.
This toolkit URL (averyncare.com/discharge-toolkit/) is designed to be printed on physical referral sheets given to families by SNF discharge nurses and case managers. The referral sheet should include:
https://averyncare.com/discharge-toolkit/?utm_source=referral_sheet&utm_medium=print&utm_campaign=snf_dischargeaveryncare.com/discharge-toolkitThis provides a secondary CTA on the referral sheet (the primary CTA is to contact Averyn directly). Families who aren't ready for the primary action can still enter the funnel through the toolkit.
| Metric | Where | Target |
|---|---|---|
| Toolkit unlocks | Plausible (lead_magnet_submit, asset=discharge_toolkit_bundle) |
— |
| Welcome email open rate | Resend dashboard | > 50% |
| Day 3 open rate | Resend | > 40% |
| Day 7 open rate | Resend | > 35% |
| Day 14 open rate | Resend | > 30% |
| Reply rate (any drip) | Manual | > 5% |
| Tool usage (post-unlock) | Plausible page views on /tools/* and /resources/* |
Track which tools get opened |
| QR referral traffic | Plausible (utm_source=referral_sheet) |
Directional |
| Conversion to intake | CRM | Track toolkit lead → intake form within 90 days |
localStorage instead of sessionStorage so returning visitors don't need to re-enter email. The welcome email links bypass the gate regardless.