mit einem Klick
broadcast-newsletter
// End-to-end newsletter pipeline: investigate recent features, draft, send via API endpoint, and track delivery/open/click metrics.
// End-to-end newsletter pipeline: investigate recent features, draft, send via API endpoint, and track delivery/open/click metrics.
Use when the user says "mk0r", "appmaker CLI", "open a VM", "run something in the sandbox", "talk to the VM agent", "spin up an E2B sandbox", or "chat with appmaker from CLI." Wraps the `mk0r` CLI to list projects, exec commands inside their E2B sandboxes, stream chat with the VM agent (same `/api/chat` the web UI uses), toggle SOAX residential IP, manage schedules, and copy files. Supports a sticky default project via `mk0r projects use`.
Use when the user mentions "influencer candidates", "social media operator", "check proposals on Upwork/Fiverr", "review influencer applications", "qualify candidates", or "reach out to operators". Manages the IG/TikTok account operator hiring pipeline — review applicants, check replies, qualify, and do proactive outreach.
One-time onboarding for a new consumer site: SEO audit of the existing site, Next.js 16 scaffold, @m13v/seo-components install, route-group architecture, real images/video/structured data, Cloud Run deploy, dashboard registration, and SEO infrastructure wiring (withSeoContent, guide index, optional sidebar and AI chat). This skill stops at infrastructure; day-to-day SEO guide page generation is handled by the gsc-seo-page skill and seo/generate_page.py. Use when: 'set up client website', 'onboard new client site', 'new consumer site', 'recreate website', 'rebuild website', or when spinning up a fresh site that will later receive programmatic SEO pages.
One-time onboarding for a new consumer site: SEO audit of the existing site, Next.js 16 scaffold, @m13v/seo-components install, route-group architecture, real images/video/structured data, Cloud Run deploy, dashboard registration, and SEO infrastructure wiring (withSeoContent, guide index, optional sidebar and AI chat). This skill stops at infrastructure; day-to-day SEO guide page generation is handled by the gsc-seo-page skill and seo/generate_page.py. Use when: 'set up client website', 'onboard new client site', 'new consumer site', 'recreate website', 'rebuild website', or when spinning up a fresh site that will later receive programmatic SEO pages.
Generate SEO pages from Google Search Console queries, and onboard new products into the automated GSC/SERP pipeline. Delegates page generation to ~/social-autoposter/seo/generate_page.py and covers end-to-end product onboarding: GSC domain registration via API, config.json wiring, launchd activation, backfill, and verification.
End-to-end workflow for creating, rebuilding, or enhancing a client's website. Covers SEO audit, content extraction, Next.js scaffolding, real image/video assets, structured data, SEO guide pages, component injection, analytics, deployment, and dashboard registration. Includes concrete design system blueprints with exact Tailwind classes, component templates, and section layouts. Use when: 'create client website', 'rebuild website', 'recreate site', 'client landing page', 'SEO pages for client', or when onboarding a new client who needs a web presence.
| name | broadcast-newsletter |
| description | End-to-end newsletter pipeline: investigate recent features, draft, send via API endpoint, and track delivery/open/click metrics. |
End-to-end newsletter pipeline: investigate recent features, draft a newsletter, send it to all users via a backend API, and track delivery/open/click metrics.
Run stages in order, get user approval between stages.
git log --since="N days ago" --oneline --no-merges in the product repoCHANGELOG.json for user-facing descriptionsUse an Explore agent to read relevant source files. Understand how it works, what the user sees, key capabilities. Report back for alignment.
Every newsletter MUST have at least one CLICKABLE CTA. Instructions like "open Settings > Remote Control" don't count: there's nothing to click, and the open-but-don't-click pattern will tank CTR. Use at least one of:
chat.fazm.ai, a fazm:// URL scheme, a specific landing page). The URL must be a complete clickable thing in the email, not "go to fazm.ai then click X".Bold the primary action with **...** so the eye lands on it. Never make the only link a generic "Download here" line, existing users don't need it and it's noise.
The May 12, 2026 send (47% open / 3% CTR) failed exactly here: the only link was "Download" and the feature CTA pointed to in-app menus with nothing to click. 250 people opened, 16 clicked.
Present the draft to the user for approval before proceeding.
All broadcasts go through the production API endpoint. No scripts, no direct DB/Resend calls.
Endpoint: POST https://<your-dashboard-domain>/api/crm/broadcast
Auth: Authorization: Bearer $CRON_SECRET
curl -X POST https://<your-domain>/api/crm/broadcast \
-H "Authorization: Bearer <CRON_SECRET>" \
-H "Content-Type: application/json" \
-d '{"product":"fazm","subject":"Your subject","body":"Body text...","dry_run":true}'
Response includes recipient_count, first 10 recipients, and a tracking block:
"tracking": {
"html_body_length": 2876,
"text_body_length": 1783,
"will_track_opens_and_clicks": true
}
Always verify will_track_opens_and_clicks is true and html_body_length > 50 before showing the dry run to the user. If it's false, opens and clicks will silently record as zero (this is what happened to the May 5, 2026 "ChatGPT 5.5" broadcast: 516 sends, 0 tracked opens). The route will also hard-fail a real send if HTML can't be derived.
curl -X POST https://<your-domain>/api/crm/broadcast \
-H "Authorization: Bearer <CRON_SECRET>" \
-H "Content-Type: application/json" \
-d '{"product":"fazm","subject":"Your subject","body":"Body text...","test_email":"your@email.com"}'
Sends only to that address with [TEST] prefix. Bypasses unsubscribe check.
curl -X POST https://<your-domain>/api/crm/broadcast \
-H "Authorization: Bearer <CRON_SECRET>" \
-H "Content-Type: application/json" \
-d '{"product":"fazm","subject":"Your subject","body":"Body text..."}'
Response: { success, total, sent, skipped, failed, errors }
skipped = unsubscribed or dedup-blocked (normal). failed = actual errors.
The endpoint accepts an optional image_url field. The image is injected into the derived HTML between the lead paragraph and the rest of the body. Plain-text recipients see nothing (no inline image fallback), so don't put critical info in the visual.
curl -X POST https://<your-domain>/api/crm/broadcast \
-H "Authorization: Bearer <CRON_SECRET>" \
-H "Content-Type: application/json" \
-d '{"product":"fazm","subject":"...","body":"...","image_url":"https://fazm.ai/agents.gif"}'
Hosting pattern: drop the file in ~/fazm-website/public/<filename> and push. It serves at https://fazm.ai/<filename> automatically via Vercel (e.g. agents.gif → https://fazm.ai/agents.gif). Verify with curl -I returning 200 before sending.
GIF sizing recipe (known-good for inbox preview without hurting deliverability):
ffmpeg -i input.mp4 -vf "fps=8,scale=260:-1:flags=lanczos" -loop 0 output.gifAfter test send, open the email in Gmail web to verify the image actually loads. Gmail proxies images and occasionally blocks self-hosted GIFs on the first send to a domain.
sendEmail, before any Resend API call)appendUnsubscribeHtml / appendUnsubscribeText in src/lib/resend.ts)List-Unsubscribe and List-Unsubscribe-Post: List-Unsubscribe=One-Click on every send (required by Gmail/Yahoo bulk-sender rules)text only; the API generates the HTML version via textToHtml() so open/click tracking pixels get inserted. If derivation produces empty HTML, the real send is rejected with a 400skipped, not failed)fazm_emails / assrt_emails with status transitions driven by Resend webhooksSELECT
COUNT(*) as total_sent,
COUNT(*) FILTER (WHERE status = 'delivered') as delivered,
COUNT(*) FILTER (WHERE opened_at IS NOT NULL) as opened,
COUNT(*) FILTER (WHERE clicked_at IS NOT NULL) as clicked
FROM fazm_emails
WHERE direction = 'outbound'
AND subject = '<SUBJECT>'
AND created_at > NOW() - INTERVAL '7 days';
Stats arrive via Resend webhooks. Check after 1h, 24h, and 48h.
What "good" looks like for a Fazm-scale broadcast (~500 engaged Mac app users). Anything below the floor means something broke or the content failed.
| Metric | Floor (something is wrong) | OK | Strong |
|---|---|---|---|
| Delivery rate | < 92% | 92-97% | 97%+ |
| Open rate | < 35% | 35-50% | 50%+ |
| CTR (of delivered) | < 3% | 3-5% | 5-10%+ |
| Reply rate | n/a | any reply is a win | 5+ replies |
The metric that actually matters: clicks per send. Opens are vanity at this scale. 250 opens with 16 clicks (May 12, 2026 send) means you woke up 250 people and converted 16. That's the funnel leak. If clicks < 20 on a 500-person send, the CTA was structural, not vibes; revisit the Stage 3 CTA rules.
Transactional sends have different thresholds. The "Your Fazm download link" emails routinely hit 60%+ open and 50%+ CTR because users need that link. Don't compare a feature-update broadcast to a transactional send.
Downstream conversion is the only real KPI. Tie clicks to the PostHog distinct_id via fazm_workflow_users.posthog_distinct_id and check activation within 48h. A broadcast that drives 30 clicks and 0 activations is worse than one that drives 10 clicks and 5 activations.
tracking.will_track_opens_and_clicks is true and html_body_length > 50image_url: URL returns 200 via curl -I before sendbody_html (sanity check that tracking is wired)body_html is null or empty for the recipient row, opens and clicks will record as zero no matter what. The May 5, 2026 ChatGPT 5.5 broadcast hit this. The dry-run tracking block and the route's hard-fail guard exist to prevent a repeat.status column is the latest state, not a count. A row that moves sent → delivered → opened → clicked overwrites earlier statuses. For accurate rates, count via opened_at IS NOT NULL and clicked_at IS NOT NULL, not via status = 'opened'.