zammad_create_shared_draft
Create or overwrite a shared draft on a Zammad ticket as Reply-All, using the latest customer article for headers, with a fresh signature and localized quote block. Validates HTML for formatting rules.
Instructions
Create or overwrite the shared draft of a Zammad ticket as a Reply-All email. Auto-detects the most recent customer article and derives to/cc/subject/in_reply_to from it. Renders the agent's signature fresh from Zammad (with placeholder substitution and lazy loading of related objects) and appends the original article as a localised . PUT semantics: any existing draft on the ticket is overwritten. reply_html validation (always on for universal rules, conditional for configured ones): - universal: no top-level , no , no ASCII straight quotes ", no ASCII apostrophe ' inside words - when ZAMMAD_BANNED_NAMES is set: body must not contain any banned name - when ZAMMAD_REQUIRED_GREETING is set: body must contain that greeting
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| extra_cc | No | Additional CC addresses to add on top of the automatic Reply-All set. | |
| ticket_id | Yes | Zammad ticket ID (numeric, from URL: /#ticket/zoom/<id>). | |
| reply_html | Yes | Reply body as HTML with a nested <div> structure. Example: <div><div>Hello Mr Smith,</div><div><br></div><div>thank you for your message ...</div><div><br></div><div>Best regards</div></div> | |
| quote_locale | No | Locale for the quote block lead-in. 'en' → "On Tuesday, 9 June 2026 at 10:00:00, X wrote:". 'de' → "Am Dienstag, 09. Juni 2026 um 10:00:00, schrieb X:". When omitted, falls back to ZAMMAD_QUOTE_LOCALE (server default). | |
| signature_id | No | Signature ID from /signatures (default: 1). |