Talk with Archie
API reference › Communication
Skills › Communication

Draft a Client Communication

POST/api/v1/skills/communications.draft/invoke
Drafts a client communication for an accountant to review and send. Supply the type, which is an email, letter, memo or report, and the recipients, and optionally a subject, the context and a tone. It returns the draft content, a subject line and suggested attachments, and sends nothing.
Body parameters
typeenumRequired
Kind of communication to draft: email, letter, memo or report.
emaillettermemoreport
recipientsarray of stringsRequired
Names of the people the communication is addressed to, one per entry.
subjectstring · default
Optional subject line as plain text; leave empty and Archie proposes one.
contextstring · default
What the communication should say, and any background the writer needs.
toneenum · default formal
Register of the draft: formal, friendly or urgent.
formalfriendlyurgent
Returns

Skill executed successfully

skillstringRequired
Example prepare_communication
outputobjectRequired
output.stub_fieldsarray of strings
output.warningsarray of strings
output.draft_idstring · uuid
output.contentstring · default
output.subject_linestring · default
output.suggested_attachmentsarray of strings
correlation_idstringRequired
Errors
StatusTypeWhen
401AUTH.TOKEN_INVALIDAuthentication required
403PERMISSION.CAPABILITY_DENIEDInsufficient permissions
404SKILL.NOT_FOUNDSkill not found
422VALIDATION.INVALID_FORMATValidation error
429RATE_LIMIT.USERRate limit exceeded
5XXINTERNAL.UNKNOWNInternal server error
curl https://uk.heyarchie.com/api/v1/skills/communications.draft/invoke \
  -X POST \
  -H "Authorization: Bearer sk_..." \
  -H "Content-Type: application/json" \
  -d '{
       "type": "email",
       "recipients": [
         "string"
       ],
       "subject": "string",
       "context": "string",
       "tone": "formal"
     }'
from heyarchie import Archie
archie = Archie(api_key="sk_...")
result = archie.skills.invoke(
    "communications.draft",
    type="email",
    recipients=["string"],
    subject="string",
    context="string",
    tone="formal",
)
print(result)
import { Archie } from "heyarchie";

const archie = new Archie({ apiKey: "sk_..." });
const result = await archie.skills.invoke("communications.draft", {
  "type": "email",
  "recipients": [
    "string"
  ],
  "subject": "string",
  "context": "string",
  "tone": "formal"
});
console.log(result);
Response
{
  "skill": "prepare_communication",
  "output": {
    "content": "Dear Priya,\n\nThe draft accounts for the year ended 31 March 2026 will be ready on 14 May 2026. Could you send the final stock count by 30 April?\n\nKind regards",
    "draft_id": "d2b7e9f4-3a61-4c85-8e20-b5f1a4c7d936",
    "subject_line": "Your year-end timetable",
    "suggested_attachments": [
      "Year-end information checklist"
    ]
  },
  "correlation_id": "<string>"
}
{
  "error": {
    "type": "<string>",
    "code": "<string>",
    "message": "<string>",
    "param": "<string>",
    "retry_after_seconds": "<integer>"
  }
}
{
  "error": {
    "type": "<string>",
    "code": "<string>",
    "message": "<string>",
    "param": "<string>",
    "retry_after_seconds": "<integer>"
  }
}
{
  "error": {
    "type": "<string>",
    "code": "<string>",
    "message": "<string>",
    "param": "<string>",
    "retry_after_seconds": "<integer>"
  }
}

Every response also carries X-Request-ID. Quote it if you write to us about a call.