{
  "schema": "leumas.docs.page/1",
  "id": "adapter:domain/email-campaign",
  "slug": "adapters/domain/email-campaign",
  "kind": "capabilities",
  "bucket": "package",
  "title": "email-campaign",
  "name": "Email Campaign",
  "eyebrow": null,
  "chip": null,
  "summary": "Email marketing & cold-outreach copywriting microservice: generate subject-line variants by proven copy formulas (curiosity, urgency, benefit, question, how-to, number, personalized, FOMO), craft...",
  "keywords": [
    "email-campaign",
    "subject-line",
    "curiosity",
    "urgency",
    "how-to",
    "how to use email campaign",
    "personalized",
    "fomo"
  ],
  "audience": "both",
  "funnel": {
    "product": null,
    "cta": null
  },
  "body": "# email-campaign\n\nAn intelligent email-marketing copywriting microservice. Every tool has a deterministic heuristic\ncore that runs fully offline; the generative tools also try an optional LLM (via `../_shared/llm.js`)\nand silently fall back to the heuristic. Results are tagged `mode: 'heuristic' | 'llm'`.\n\n## Tools\n\n| Tool | Args | What it does |\n|---|---|---|\n| `subjectLines` | `{ topic, audience?, tone?, count?, formulas?, seed? }` | Subject-line variants generated by copy formulas (curiosity, urgency, benefit, question, how-to, number, personalized, FOMO, social-proof, negativity), ranked by open-rate score. Hybrid. |\n| `previewText` | `{ topic, tone? }` | Inbox preview/preheader lines (40–90 chars) that complement the subject. Hybrid. |\n| `spamScore` | `{ text }` | Deterministic deliverability check: spam-trigger-word list + ALL-CAPS/emoji/`!`/`$`/length heuristics → 0–100 spamScore + reasons + fix recommendation. |\n| `abVariants` | `{ subject, count?, seed? }` | Spins a control subject into A/B/C… test variants (one lever each) and predicts a winner by score. |\n| `ctaButtons` | `{ goal?, topic?, count? }` | High-converting CTA button labels by campaign goal (signup/sale/download/demo/webinar/reengage/nurture/waitlist). Hybrid. |\n| `scoreSubject` | `{ subject }` | Scores + grades (A–F) a single subject line on length, personalization, question/number hooks, and spam risk. |\n| `sequenceIdeas` | `{ topic, goal?, steps? }` | Outlines a multi-touch drip/nurture sequence with per-email purpose, send-day offset, suggested subject, and CTA. Hybrid. |\n\n## Example\n\n```js\nimport pack from './index.js';\nawait pack.adapters.subjectLines({ topic: 'our new analytics dashboard', tone: 'bold', count: 5 });\npack.adapters.spamScore({ text: 'FREE!!! Buy now and WIN CASH $$$' });\npack.adapters.scoreSubject({ subject: 'Your Q3 report is ready — 3 wins inside' });\n```\n\n## DRY boundaries\n\n- Raw NLP (tokenizing, sentiment, generic readability) → `nlp` / `a-text`. This pack owns\n  email-marketing copy craft (subject formulas, deliverability, A/B spins, CTAs).\n- Web meta tags / SERP snippet previews → `seo` (search). This pack is inbox/preheader/open-rate (email).\n- No cross-pack imports except `../_shared/llm.js`.\n",
  "source": {
    "path": "shared/engines/adapters/domain/email-campaign/README.md",
    "blobSha": "",
    "commit": "",
    "committedAt": "",
    "provenance": "no-git",
    "bytes": 2447,
    "hash": "0adfd262cce4dc455b4a66c19302854a20278d47"
  },
  "urls": {
    "html": "/p/adapters/domain/email-campaign",
    "json": "/docs/adapters/domain/email-campaign.json",
    "md": "/docs/adapters/domain/email-campaign.md"
  },
  "links": {
    "composes": [],
    "usedBy": [],
    "product": [],
    "howTo": [],
    "skills": []
  }
}
