Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
LLM-powered copywriting with structured output schemas.
@latimer-woods-tech/llm
npm install @latimer-woods-tech/copy
generateHeadline(opts)
function generateHeadline(opts: { product: string; audience: string; benefit: string; tone?: 'professional' | 'casual' | 'urgent'; env: LLMEnv; }): Promise<string>;
generateEmail(opts)
function generateEmail(opts: { purpose: 'welcome' | 'nurture' | 'sales' | 'reactivation'; product: string; audience: string; env: LLMEnv; }): Promise<{ subject: string; body: string }>;
generateSocialPost(opts)
function generateSocialPost(opts: { platform: 'twitter' | 'linkedin' | 'instagram'; topic: string; tone?: string; env: LLMEnv; }): Promise<string>;
generateAdCopy(opts)
function generateAdCopy(opts: { product: string; audience: string; platform: 'google' | 'meta' | 'linkedin'; count?: number; // default 3 variants env: LLMEnv; }): Promise<Array<{ headline: string; description: string }>>;
import { generateHeadline, generateEmail } from '@latimer-woods-tech/copy'; const headline = await generateHeadline({ product: 'FocusBro', audience: 'ADHD professionals', benefit: 'Stay in deep work for 2x longer', tone: 'casual', env, }); const email = await generateEmail({ purpose: 'welcome', product: 'FocusBro', audience: 'new ADHD professionals', env, });