generate_message
Generate a personalized handwritten postcard message from recipient details, returning ready-to-use text or a structured prompt when AI isn't configured.
Instructions
Generate a personalized handwritten message for a postcard based on context about the recipient. Returns a ready-to-use message you can pass directly to send_postcard. Uses AI if Cloudflare credentials are configured (CLOUDFLARE_ACCOUNT_ID + CLOUDFLARE_API_TOKEN); otherwise returns a structured prompt you can use to compose the message yourself.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tone | No | Message tone | warm |
| max_chars | No | Max character count for the message | |
| sender_context | No | Who is sending the card. Example: 'Blue Wave Pools — local pool builder in Austin, TX' | |
| recipient_context | Yes | Who the recipient is and why you're writing. Example: 'John Smith, homeowner at 123 Oak St. Sending a before/after postcard showing what a pool would look like in his backyard.' |