Meeting coworker plus1 + Federato underwriting pack on feat/federato-browserbase.
The plus1 / camera / LiveAvatar seat is a teammate piece. This branch is the UW queue, appetite scoring, Browserbase Maps/FEMA work browser, and Playwright Meet Present.
- Pulls Federato property policies (schema → query plan → cache).
- Ranks them against the official 2025 appetite table (pure scoring in
packages/brain). - Deep-dives a policy (Harbor Point
PR-2025-1001is the decline demo). - Opens that address in a Browserbase cloud Chrome (Google Maps + FEMA).
- Playwright joins your Google Meet as a signed-in Chrome profile and Presents the fullscreen live-view tab.
apps/dashboard Next.js console — open the UW tab
apps/backend Federato API + Browserbase + Meet Present
packages/brain Appetite + query plan (no network)
packages/protocol Shared zod types
git checkout feat/federato-browserbase
cp .env.example .env # paste keys (see teammate .env, not this file)
npm install # from repo rootDashboard talks to the backend at http://localhost:8787 (apps/dashboard/.env.local.example).
The plus1's face and voice come from packages/liveavatar (HeyGen LiveAvatar on the Meet tab's
fake camera/mic) and packages/voice (ElevenLabs → PCM). No virtual audio devices needed: set
LIVEAVATAR_API_KEY, LIVEAVATAR_AVATAR_ID, ELEVENLABS_API_KEY in .env (see .env.example).
| Key | Required | What |
|---|---|---|
FEDERATO_CLIENT_ID / FEDERATO_CLIENT_SECRET |
yes | HTN Federato API |
FEDERATO_AUTH_URL / AUDIENCE / HANDLER_URL |
yes | defaults are in .env.example |
BROWSERBASE_API_KEY / BROWSERBASE_PROJECT_ID |
for live view | booth #46 / browserbase.com |
MEET_URL |
for auto Present | https://meet.google.com/xxx-yyyy-zzz |
OPENAI_API_KEY (or Google/Anthropic) |
optional | Stagehand act() on FEMA; goto works without it |
Do not commit .env. Send keys in chat/DM.
Two terminals from the repo root:
npm run backend # backend http://localhost:8787
npm run dashboard # UI http://localhost:3000Optional cache refresh (schema + ~27 property policies):
npm run backend:warmOpen http://localhost:3000 → UW tab.
| Button | What |
|---|---|
| Rank / Refresh API | Score the Federato queue |
| Click a row | Select that policyId (use a real id from the list, e.g. 1001, not a made-up one) |
| Deep-dive | Memo only (?browse=0) |
| Browserbase live view | Cloud Maps/FEMA; session closes after the check |
| Join Meet & Present | Keep-alive live view + Playwright join + Present |
Playwright cannot see your everyday Chrome. Sign in once in the plus1 profile:
npm run backend:google-loginSign into Google in the headed window that opens. Session is saved at apps/backend/.profile (gitignored). Reuse it on later runs unless you delete that folder.
- Put
MEET_URLin.envor paste the Meet link in the UW input. - First time:
npm run backend:google-login. - Then either:
or UW → Join Meet & Present.
MEET_URL=https://meet.google.com/xxx-yyyy-zzz npm run backend:screenshare
Chrome opens the Browserbase fullscreen live view, joins Meet as the saved Google account, clicks Present, and auto-picks the tab titled plus1-work.
If the meeting has knock enabled, admit that Google account. If Present stalls, click Share once — the work tab should already be selected.
CLI / API:
curl http://localhost:8787/api/federato/rank
curl http://localhost:8787/api/federato/deep-dive/1001
curl -X POST http://localhost:8787/api/federato/screenshare-session \
-H 'Content-Type: application/json' -d '{"policyId":1001}'
curl -X POST http://localhost:8787/api/federato/present-meet \
-H 'Content-Type: application/json' \
-d '{"policyId":1001,"meetUrl":"https://meet.google.com/xxx-yyyy-zzz"}'- UW → Rank (27 property policies).
- Select Harbor Point Retail LLC (
1001/PR-2025-1001) — decline: premium, age, frame, losses, AZ/WA. - Join Meet & Present → Maps + FEMA for
44 Cedar Ln, Tampa, FL. - Talk the memo while the live-view tab is shared.
| Script | |
|---|---|
npm run backend |
Backend :8787 |
npm run dashboard |
Dashboard :3000 |
npm run backend:warm |
Refresh schema + policies |
npm run backend:rank |
CLI rank |
npm run backend:google-login |
One-time Google sign-in |
npm run backend:screenshare |
Live view + join + Present |
npm run test:brain |
Appetite unit tests |
More detail: apps/backend/README.md. Architecture notes: HLD.md, CLAUDE.md.