Skip to content

Workspace Artifacts

Summary: Sam's workspace contains 48 files and directories across 8 categories: agent configuration (8 files), strategy & analysis documents (11 files), automation scripts (6 scripts), data files (9 data files/directories), Braze audit tooling (4 JS scripts), memory logs (18 daily files + 2 support files), credentials (2 env files), and Node.js config. The workspace is version-controlled via its own .git repository and spans marketing intelligence, funnel analytics, CRM audit tooling, and growth infrastructure for FuturHealth's GLP-1 weight-loss program.


Agent Configuration Files

These files constitute Sam's identity, operating instructions, and persistent memory system. Sam reads them at the start of every session to reconstruct context.

FileSizeLast ModifiedPurposeKey Contents
AGENTS.md7.7 KBMar 3Master operating manual — how Sam behaves in every contextSession startup checklist; memory system rules (daily notes vs. long-term MEMORY.md); heartbeat system; safety rules; group chat participation rules; platform formatting rules (Discord/WhatsApp)
SOUL.md2.0 KBMar 3Identity & personality specSam is John's work buddy; direct/casual tone; no performative helpfulness; has opinions; sales-and-growth filter on all priorities; "earn trust through competence"
USER.md526 BMar 3Profile of John (the human)John Levan, FuturHealth founder; PST timezone; focused on company growth through sales & marketing; prefers casual, direct communication
IDENTITY.md224 BMar 3Sam's self-descriptorName: Sam; Creature: AI work buddy; Vibe: casual/direct; Emoji: ⚡
MEMORY.md24.2 KBMar 16Long-term curated memoryDistilled events, decisions, lessons, and insights from all sessions to date. Main-session only (not shared in group contexts for security)
HEARTBEAT.md1.5 KBMar 17Heartbeat task schedule3× daily check-in windows: 10am, 2pm, 6pm PT; tasks include monitoring Slack channels (sam-chat, funnel-squad), funnel CVR metrics (SEMA, MICRO, order bump, express pay, attribution), and GitHub funnel monitoring
BOOTSTRAP.md1.9 KBMar 3First-run initialization scriptGuides a brand-new agent instance through identity formation; instructs it to discover name, vibe, emoji, and communication preferences with John; tells it to delete itself once complete (still exists — artifact)
TOOLS.md3.8 KBMar 17API service directory & credentials indexDocuments all connected services: PostHog (project 98417, key insight IDs), Meta Ads (account act_2108575489887376), Braze (iad-02 endpoint, 6 app IDs), NorthBeam, Higgsfield (AI video), Shotstack (video compositing), Looker (~160 dashboards), GitHub (74 FuturHealth repos, futurhealth-automation account)
POSTHOG-RULES.md805 BMar 8Analytics governance rulesSingle source of truth: insight uC2ZuA1y ("Wegovy Pillform $198 Funnel") maintained by Elias; path segmentation: WEGO-PILL / SEMA / MICRO / NUTRITION; explicit prohibitions on querying random events or making unverified claims

Strategy & Analysis Documents

Research, creative strategy, and operational plans produced by Sam for FuturHealth's growth function.

FileSizeDatePurposeKey Data Points
futurhealth-creative-brief.md3.2 KBMar 6Brand foundation briefBrand mission (medication + nutrition + coaching = sustainable weight loss); 3 growth pillars; brand positioning between telehealth/digital health/preventative health; target customer profile; creative guardrails (never position as prescription-only)
futurhealth-intelligence-report-1.md8.6 KBMar 6Market intelligence scan #1Trustpilot analysis: FuturHealth fulfillment complaints (medication delays, billing issues, powerless CS); competitor weaknesses: Ro (bait-and-switch pricing, $149→$300+), Hims (3.0 stars, hard to cancel); top 5 market objections with ad concept responses; real customer language for copy; 5 recommended creative concepts (The GLP-1 Exit Plan, Nutrition Gap, $1,102 Difference, Real Doctors, Beyond the Pill)
futurhealth-creative-briefs-sean.md5.0 KBMar 6Video production briefs for Sean Duran5 fully-specified briefs: (1) GLP-1 Exit Plan — weight regain fear angle; (2) Nutrition Gap — GLP-1 diet guidance; (3) $1,102 Difference — value comparison; (4) Real Doctors, Not Algorithms — trust/provider angle; (5) Beyond the Pill — complete program / 58.5% stat. Each includes hook, key message, format, variant count, and CTA
futurhealth-post-copy-variants.md4.1 KBMar 65 Meta ad post copy variantsAngle-specific ad copy to replace generic messaging: Variant 1 (Exit Plan), Variant 2 (Nutrition Gap), Variant 3 ($1,102 Difference), Variant 4 (Real Doctors), Variant 5 (Complete Program / 58.5%). Each includes headline + body copy optimized for thumb-stop
futurhealth-meta-campaign-structure.md5.3 KBMar 6Meta Ads campaign blueprintFresh account (efunnel #7, act_2108575489887376); Phase 1 budget $500–1,000/day; 3-campaign structure: (1) Prospecting / Creative Testing — broad women/men + 1% lookalike; (2) Retargeting — funnel visitors 7d/quiz starters 14d/page engagers 30d; (3) Creative Lab — weekly rotation of Sean's new concepts; geo exclusions (LA, AL, VA, MS); target CPA $250; launch checklist
futurhealth-micro-bucket-map-v1.md35.0 KBMar 1030+ micro-niche audience segments × 5 angles = 150+ hook conceptsTier 1 (survey-validated): Metabolism Betrayal (Women 45-65, ~30% of base), Camera Hider (Women 45-70, 45% hide from photos), Dieting Veteran (40-70), Empty Nester, High Achiever; Tier 2 (high-potential): Men's Health, Disease Prevention, Budget-Conscious; each bucket includes segment definition, core belief, 5 sub-angles with hook copy, format recommendation, and concept formula
futurhealth-micro-bucket-hooks-150.csv41.5 KBMar 10Master hook library (CSV format)150+ rows; columns: Bucket #, Bucket Name, Sub-Angle Code, Sub-Angle Name, Hook Copy, Target Demo, Format Recommendation, Priority Tier, Concept Formula, Deploy Week. Example row: MBM-01 / The Metabolism Betrayal / 1C / Doing Everything Right / "I walk 10,000 steps. I eat salads. I still can't lose weight."
futurhealth-top5-creative-briefs.md15.5 KBMar 10Top 5 production-ready creative briefsFor Sean Duran, ready for AI tools → storyboard → Meta launch. Brief 1: MBM-21B "Pill vs Shot" (no injections, $114 CPA proven); Brief 2: MBM-01C "Doing Everything Right" (metabolism betrayal, largest female segment); Briefs 3–5 cover additional high-conviction angles. Each includes full storyboard (timestamp-by-timestamp for video), static layout spec, Meta ad copy, target audience, compliance notes
futurhealth-lead-scoring-model.md4.0 KBMar 17Lead scoring model v1Based on 5,513 purchases × 2,996 zip codes (30-day window). Scoring: Zip income (40%), Funnel stage (30%), Gender (15%), Age (15%). Key findings: $80K+ zip CVR 9.1% vs 6.7% under $80K; Women 55-64 = 31% of purchases at $339 CPA; Men cheapest CPA ($340). Tier definitions: T1 HOT (70-100 pts), T2 WARM (50-69), T3 COOL (30-49), T4 NURTURE (0-29). Implementation: swap state → zip in quiz
braze-deep-dive.md6.3 KBMar 11Braze CRM audit & angle-matched messaging planInventory: 149 canvases (100 active); 8 cart abandon flows; 2 broken post-purchase journeys (0 entries each). Critical findings: (1) NO UTM/ad source data in Braze — all messaging one-size-fits-all; (2) gender is the only personalization variable; (3) post-purchase retention flows are dead; (4) SMS links to plus.fh.co (different domain than acquisition funnel). Proposed: 5 segment-specific cart abandon sequences tied to landing page angle; engineering ask to pass landing_page_slug + utm_campaign as Braze custom attributes
order-bump-test-tracking.md7.5 KBMar 17Order bump A/B test — daily logTest launched ~Mar 10; Wegovy Pill checkout only; $49 Concierge Premium add-on. Pre-test baseline: AOV ~$270-290, ATC→Purchase 24.8%. 7+ days of intraday data logged. Key findings: bump attach rate 5-11%; AOV impact mixed (baseline often slightly negative vs control due to MICRO route mix); upsell rate climbed to 36.5% by Day 6 (2x baseline); checkout CVR stable — no friction detected

Automation Scripts

Executable scripts in scripts/ — automation tooling for funnel monitoring and API integrations.

scripts/funnel-watch-cron.sh

  • Purpose: Continuous GitHub commit monitor with PostHog cross-reference alerting
  • Trigger: cron job, every 30 minutes
  • What it does: Polls latest commits on funnel, funnel-cms, landing-pages, checkout repos via GitHub API; compares against a state file (memory/github-watch-state.json) to detect new commits; formats a change summary; writes an alert to memory/pending-funnel-alert.md for Sam to pick up on next heartbeat; logs all changes to memory/funnel-changes.md
  • API/Services: GitHub API (FuturHealth org), reads PostHog context on next heartbeat
  • Note: Contains a hardcoded PAT (legacy, superseded by github-funnel-monitor.sh which reads from .env.credentials)

scripts/github-funnel-monitor.sh

  • Purpose: Primary GitHub funnel change monitor — cleaner version of funnel-watch-cron.sh
  • Trigger: Called by Sam during 3× daily heartbeat windows
  • What it does: Same repos as above; reads GITHUB_PAT_TAGIATELLE from env or .env.credentials; detects new commits per repo; appends timestamped change entries to memory/funnel-changes.md; outputs NEW_CHANGES_DETECTED or NO_CHANGES for Sam to act on
  • API/Services: GitHub API (FuturHealth org, 4 repos: funnel-cms, funnel, landing-pages, checkout)
  • Output: memory/funnel-changes.md, stdout summary

scripts/google-auth.js

  • Purpose: Google OAuth2 token management utility
  • Trigger: Run manually when setting up or refreshing Google API credentials
  • What it does: Supports 3 modes — auth-url (generate OAuth consent URL for Gmail + Calendar scopes), exchange <code> (swap authorization code for access + refresh tokens, saves to config/google/token.json), refresh (use stored refresh token to get new access token)
  • API/Services: Google OAuth2 (oauth2.googleapis.com); scopes: Gmail (read/send/modify) + Calendar (read/events)
  • Config files: config/google/credentials.json, config/google/token.json

scripts/posthog_sankey.py

  • Purpose: PostHog funnel query tool — generates Sankey-style flow data per conversion path
  • Trigger: Run manually when analyzing funnel performance
  • What it does: Queries PostHog FunnelsQuery API for the Wegovy Pillform $198 funnel (7-day window); runs once overall and once per path (WEGO-PILL, SEMA, MICRO, NUTRITION) with URL filters; prints step-by-step counts, drop rates, and an ASCII Sankey tree showing flow from landing page → quiz → lead → results → ATC → order → purchase
  • API/Services: PostHog API (us.posthog.com, project 98417, personal API key)
  • Key events tracked: conv_landing_page_view, achieve_screen_loaded, conv_lead, Results Page (URL-filtered), conv_add_to_cart, conv_order_page_viewed, conv_purchase

Braze Audit Tooling

Four Node.js scripts created March 13 to audit Braze user profiles — investigating whether leads were receiving the correct onboarding sequences post-purchase.

braze-audit.js

  • Purpose: Initial Braze user profile field explorer
  • What it does: Reads user_ids.txt; calls Braze /users/export/ids API for first user; prints all available fields and their types; checks canvas_variant_history and campaigns_received structure. Used to understand what data Braze exposes before writing the full audit
  • Target canvases: [SMD] Welcome (RX) - Async Eligible, [SMD] Welcome (RX) - Async Ineligible, Account Completion Nudge
  • API: Braze REST API (rest.iad-02.braze.com)

braze-audit-full.js

  • Purpose: Full batch audit of user comms receipt
  • What it does: Processes all users in user_ids.txt in batches of 50 (Braze API limit); exports canvas and campaign receipt history; checks which of the 3 target canvases each user received; generates summary: users found vs. not found in Braze, per-canvas receipt rates, zero/one/multiple match breakdown, full frequency table of all canvases seen by the cohort; saves results to comms-audit-results.json
  • API: Braze REST API; fields: external_id, canvases_received, campaigns_received, email, first_name, last_name
  • Output: comms-audit-results.json

braze-check-fields.js

  • Purpose: Broad field discovery — export user with no field filter
  • What it does: Calls Braze export API with no fields_to_export to see everything returned by default; prints each field name, type, and a sample value. Diagnostic script for understanding Braze's default export schema

braze-check-fields2.js

  • Purpose: Comprehensive field check with explicit list
  • What it does: Same as braze-check-fields.js but requests an explicit set of fields: external_id, braze_id, email, first_name, last_name, campaigns_received, canvases_received, canvas_variant_history, custom_attributes, custom_events, devices, total_revenue, purchases. Prints each returned field with type and sample

Data Files

Audience lists, audit results, and ad performance data. Contents not read.

File / DirectoryTypePurposeSize
data/meta-audiences/all-wegovy-pill-leads.csvCSVAll Wegovy Pill leads (for Meta Custom Audience upload)372 KB
data/meta-audiences/leads-no-purchase.csvCSVLeads who did not convert to purchase (retargeting audience)368 KB
data/meta-audiences/purchasers-jan1-onward.csvCSVAll purchasers since Jan 1 (Lookalike Audience source)377 KB
data/meta-audiences/pill-purchasers-jan1-onward.csvCSVWegovy Pill-specific purchasers since Jan 178 KB
data/meta-audiences/purchasers-lookalike-source.csvCSVSmaller curated list for 1% Lookalike seeding4.7 KB
braze_leads_50_march15.csvCSV50-user Braze lead sample from March 15 (spot-check data)3.6 KB
comms-audit-mar12.csvCSVRaw comms audit input data from March 12 (96 records)5.5 KB
comms-audit-results.jsonJSONFull Braze comms audit output from braze-audit-full.js59.2 KB
user_ids.txtTXTList of 95 user IDs used as input for Braze audit scripts2.7 KB
futurhealth-micro-bucket-hooks-150.csvCSVComplete 150-hook library (see Strategy section above)41.5 KB

Media & Document Assets

Non-text files — ad creative assets and a research document.

FileTypePurposeSize
ad-data-fhvi754.pngPNGPerformance data screenshot for ad creative FHVI-754135 KB
ad-data-fhvi764.pngPNGPerformance data screenshot for ad creative FHVI-764115 KB
spritesheet-fhvi754.jpgJPGSpritesheet of frames from ad FHVI-754 (for creative analysis)155 KB
spritesheet-fhvi764.jpgJPGSpritesheet of frames from ad FHVI-764 (for creative analysis)204 KB
glp1-high-velocity-creative-engine.pagesPagesApple Pages document — GLP-1 high velocity creative engine (likely framework/process doc)703 KB
round-one-survey-learnings.pdfPDFCustomer survey learnings — Round 1 (July 2025 survey, referenced throughout strategy docs)1.4 MB
comms-audit-mar12-raw.htmlHTMLRaw HTML stub from comms audit (38 bytes — empty/stub)38 B

Auth & Credentials

.env.credentials (2.7 KB, Mar 17) — Primary credentials store. Contains API keys and tokens for all connected services. DO NOT read, log, or transmit contents. Based on TOOLS.md, the following services have credentials stored here:

  • PostHog: POSTHOG_API_KEY (phc_ project key) + POSTHOG_PERSONAL_API_KEY (phx_ — used for all API queries)
  • Meta Ads: META_ACCESS_TOKEN
  • Braze: BRAZE_API_KEY
  • NorthBeam: NORTHBEAM_API_KEY
  • Higgsfield (AI video): API Key + API Secret
  • Shotstack (video compositing): API Key + Owner ID
  • Looker: LOOKER_CLIENT_ID + LOOKER_CLIENT_SECRET
  • GitHub: Multiple PATs including GITHUB_PAT_TAGIATELLE (broadest access, 74 repos) + recovery codes

.env.northbeam (112 B, Mar 9) — Separate credentials file for NorthBeam attribution API. Smaller/isolated from main credentials file.


Memory System

Sam's session continuity lives in the memory/ directory. All files are in Markdown except the state JSON.

FileSizePurpose
memory/2026-03-03.md609 BDay 1 session notes
memory/2026-03-05.md2.3 KBSession notes
memory/2026-03-06.md8.6 KBDetailed session notes — creative strategy day
memory/2026-03-07.md3.9 KBSession notes
memory/2026-03-08.md2.3 KBSession notes
memory/2026-03-09.md2.2 KBSession notes
memory/2026-03-10.md12.4 KBDetailed session notes — micro-bucket map creation day
memory/2026-03-11.md8.1 KBDetailed notes — Braze deep dive + order bump launch
memory/2026-03-12.md11.6 KBDetailed notes — comms audit + SEMA→MICRO reroute
memory/2026-03-13.md1.3 KBSession notes
memory/2026-03-14.md1.7 KBSession notes
memory/2026-03-15.md4.4 KBSession notes
memory/2026-03-16.md2.5 KBSession notes — lead scoring model
memory/2026-03-17.md9.6 KBDetailed notes — checkout/funnel releases, coupon banner
memory/2026-03-18.md1.7 KBSession notes
memory/funnel-changes.md13.7 KBFunnel change log — auto-appended by github-funnel-monitor.sh; tracks commits to funnel-cms, funnel, landing-pages, checkout with impact assessments. Covers Mar 9–18: 20+ significant commits logged including SEMA→MICRO reroute, LP revert, declination modal, coupon banner, express pay feature flag
memory/github-watch-state.json107 BState file tracking last-seen SHA for each monitored repo

Node.js Config

FileContents
package.jsonTwo dependencies: googleapis ^171.4.0 (for Google API access), xlsx ^0.18.5 (for spreadsheet parsing). Minimal config — no scripts defined
package-lock.json41.8 KB — locked dependency tree

Workspace Git Repository

The workspace at /Users/fireharp/Prog/FH/fh-claw/.openclaw/workspace/ contains its own .git directory, making it an independent version-controlled repository. This is separate from any parent repo. Sam commits its own work products here, maintaining a historical record of all strategy documents, scripts, and memory files. Last commit activity: March 12, 2026 (per .git directory modification date).


Summary Table

CategoryFilesTotal Size (approx.)
Agent configuration9 files~44 KB
Strategy & analysis documents11 files~172 KB
Automation scripts4 scripts in scripts/~15 KB
Braze audit tooling4 JS files~18 KB
Data files10 files / 1 directory~1.3 MB
Media & document assets7 files~2.7 MB
Memory system17 daily notes + 2 support files~103 KB
Credentials2 env files~2.8 KB
Node config2 files~42 KB
Total~67 items~4.4 MB

Services Sam Has Active Access To

ServicePurposeStatus
PostHogFunnel analytics (project 98417)Active
Meta AdsPaid acquisition (efunnel #7)Active
BrazeEmail + SMS CRM (iad-02)Active
GitHubFuturHealth codebase monitoring (74 repos)Active
Google (Gmail + Calendar)Email/calendar access for JohnActive
NorthBeamMulti-touch attributionPartial (spend/orders work; attribution endpoints 403)
LookerBusiness intelligence (~160 dashboards)Active (read-only)
HiggsfieldAI talking-head video generationActive
ShotstackVideo compositing/editingActive
TikTok AdsPaid acquisitionNot yet connected

FuturHealth Internal — Confidential