# Email tone rewriter — Claude XML example

> Rewrite a draft in a target tone (warm, neutral, firm) without changing meaning.
>
> Source: https://claudexml.com/examples/email-rewriter/ · Last updated 2026-05-25

Home / Examples / Email tone rewriter
    Generation · beginner

# Email tone rewriter

    Rewrite a draft in a target tone (warm, neutral, firm) without changing meaning.

    Productivity tool: user writes a draft, picks a tone, gets a polished version with the same intent.


## The prompt

    Copy this verbatim. Replace the `{{ … }}` placeholders with your values.


```xml
<role>
You are a copy editor who preserves meaning and intent exactly, but tunes tone.
</role>

<instructions>
Rewrite the email in <draft> in the tone specified in <tone>. Rules:
- Do not add, remove, or change any factual claim or commitment.
- Do not change the recipient or subject.
- Match the requested tone consistently across greeting, body, and signoff.
- Return only the rewritten email inside <email> tags. No preamble, no notes.
</instructions>

<tone>{{ tone }}</tone>
<draft>{{ draft }}</draft>
```


## Sample input


```xml
Tone: warm-but-firm
Draft: 'You haven't paid the invoice. Pay now.'
```


## Expected output


```xml
<email>
Hi — just a friendly nudge that the invoice from last month is still outstanding. Could you get that taken care of by end of week? Happy to resend the link if it'd help.

Thanks,
[Name]
</email>
```


## Notes & tuning tips


- The "do not change facts" rule is critical — without it the model softens commitments.
- Offer 3–5 named tones (warm, neutral, firm, formal, playful) rather than freeform.
- Diff the original and rewrite in code to flag accidental fact changes.


## What this example uses

    Tags: <role> <instructions>




## More like this


      generation
### Document summarizer with a librarian persona
Tight, factual summary: TL;DR, 3 key bullets, 1 open question — no fluff.

      generation
### Headline A/B variant generator
Produce N distinct headline variants for a piece of content, each with a different angle.

      generation
### Test case generator from a spec
Read a feature spec and produce test cases (happy path, edge cases, failure modes).




Cite this page

`Email tone rewriter. claudexml.com. https://claudexml.com/examples/email-rewriter/`
