Live AI-powered life strategy diagnostic for African women. Purpose · Profession · Faith
# The-Integrated-Woman-Diagnostic-Tool
Live AI-powered life strategy diagnostic for African women. Purpose · Profession · Faith
## Links
- **Live Demo:**
theintegratedwomandiagnosti…
- **Overview / Pitch Deck:**
gamma.app
## Project layout
- `index.html` — the entire frontend (single-file HTML/CSS/JS)
- `api/generate.js` — Vercel serverless function that proxies the Claude API for the personalised narrative
- `api/lead.js` — Vercel serverless function that captures opted-in emails to Airtable
- `vercel.json`, `package.json`, `.env.example` — deployment config
## Deploy (Vercel + Airtable)
### 1. Airtable
Create a base. Add a table named `Leads` (or whatever you set in `AIRTABLE_TABLE_NAME`) with these fields:
| Field | Type |
|---|---|
| Email | Single line text |
| Name | Single line text |
| Stage | Single line text |
| Domain | Single line text |
| Faith | Single line text |
| Family | Single line text |
| FirstGen | Single line text |
| Archetype | Single line text |
| ArchetypeId | Single line text |
| Constraint | Single line text |
| ConstraintId | Single line text |
| Scores | Long text |
| Narrative | Long text |
| Consent | Checkbox |
| SubmittedAt | Date (or Single line text) |
Generate a Personal Access Token at
airtable.com with `data.records:write` scope on the base. Grab the base ID from the API docs page for that base (starts with `app...`).
### 2. Vercel
```sh
npm i -g vercel # if you don't have it
vercel link # link this repo to a Vercel project
vercel env add ANTHROPIC_API_KEY
vercel env add AIRTABLE_API_KEY
vercel env add AIRTABLE_BASE_ID
vercel env add AIRTABLE_TABLE_NAME # e.g. "Leads"
vercel env add ALLOWED_ORIGIN # optional; set to your deployed origin to lock CORS
vercel --prod
```
Or push this branch and import the repo via the Vercel dashboard, then add the same env vars …