Skip to content

ai-draft

Enterprise Part of the commercial Kumiko Enterprise offering — not in the open framework.

Query handler (ai-draft:query:draft) that takes a source message (subject, sender, body) and a stated purpose, then returns a ready-to-send draft reply via the tenant’s configured LLM provider. The system prompt is editable per-tenant through a config-key or the prompt-store (no deploy required); the caller is responsible for sending or storing the returned draft in a separate write action.

Per-tenant config keys, set via the tenant-admin UI or a seed. 🔒 = encrypted at rest.

| Key | Type | Default | Scope | Who can write | Who can read | |---|---|---|---|---|---| | draft-system-prompt | text | `You draft a reply message for a business application.

Given the source message and the stated purpose, write a professional, concise reply.

  • Match the language of the source message unless a target language is given.
  • Courteous and to the point; avoid placeholders like [name] unless unavoidable.
  • Return the draft via the draft_message tool (subject + body).

If the purpose is unclear or you are missing information you cannot reasonably assume, call clarify_request instead. Call exactly one tool.| tenant |TenantAdmin, SystemAdmin|TenantAdmin, SystemAdmin` |