{"uid":"cap_f_acEN0o0NsTZJWvs_mri","slug":"x402-deployer-x402-deployer-workers-dev-52831fac","name":"AI Email Draft Generator","description":"AI email writer / cold outreach / follow-up generator. Subject + body + salutation + sign-off. 7 tones × 10 email types (cold_outreach, follow_up, decline, reply, internal_update, thank_you, intro, request, apology, general). Length controls.","url":"https://x402-deployer.x402-deployer.workers.dev/email-draft","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"required":["prompt"],"properties":{"cta":{"type":"string","description":"Optional. Call to action to include, e.g. 'schedule a call this week'."},"tone":{"type":"string","description":"Optional. formal, casual, friendly (default), warm, direct, apologetic, or enthusiastic."},"length":{"enum":["very_short","short","medium","long"],"type":"string","description":"Optional. very_short, short, medium (default, ~80-150 words), or long (~150-300 words)."},"prompt":{"type":"string","description":"Brief describing the email's goal and context. Max 4,000 chars."},"email_type":{"type":"string","description":"Optional. cold_outreach, follow_up, decline, reply, internal_update, thank_you, introduction, request, apology, or general (default)."},"sender_name":{"type":"string","description":"Optional. Sender's name for the sign-off. Defaults to a '[Your name]' placeholder."},"recipient_name":{"type":"string","description":"Optional. Recipient's name, used in the salutation."}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"body":{"type":"string"},"subject":{"type":"string"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_vF5D-EzkX3lR7re7vmQhx","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates complete email drafts (subject, body, salutation, sign-off) across 10 email types and 7 tones with length controls","exampleAgentPrompt":"Draft a cold outreach email in a persuasive tone to 'Sarah Chen' from 'Alex Rivera at Acme Corp' — medium length — introducing our SaaS analytics platform and asking for a 20-minute discovery call.","exampleUseCases":null,"resultDescription":"A fully composed email including subject line, salutation, body paragraphs, and sign-off, tailored to the specified email type (e.g. cold_outreach, follow_up), tone (e.g. formal, friendly, persuasive), and length setting.","failureModes":["Invalid email type value returns 400 error","Unsupported tone value returns 400 error","Missing required context fields returns incomplete or generic draft","Payment not included or insufficient USDC returns 402 Payment Required","Empty or missing body parameters returns 422 Unprocessable Entity"],"whenToPreferThis":"Use this endpoint when an AI agent needs to programmatically generate complete, ready-to-send emails with structured output (subject + body + salutation + sign-off) across a wide variety of business scenarios. Prefer this over generic LLM prompting when you need consistent email structure, specific tone controls, and support for defined email types like cold_outreach, follow_up, decline, apology, or internal_update.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:44:42.072Z","isFirstParty":false}