---
title: "communication_drafting"
description: "Draft communications (email, message) based on user intent and context."
canonical: "https://acs.synapti.ai/workflows/communication-drafting/"
last_updated: "2026-10-28T18:48:12Z"
---

# Draft communications (email, message) based on user intent and context.

Generated from [schemas/workflows/personal_assistant_workflows.yaml](https://github.com/synaptiai/agent-capability-standard/blob/main/schemas/workflows/personal_assistant_workflows.yaml) at commit 18c38b74ac21.

- Workflow id: `communication_drafting`
- Risk: medium
- Catalog: domain workflows (personal-assistant)
- Declares Standard 1.1.0
- Steps: 10

Communication drafting workflow that understands user intent,
retrieves relevant context, and generates appropriate messages.
All communications require user approval before sending.

**Figure: Steps of communication_drafting: 10 steps, checkpoint at step 9.** Read top to bottom: only steps 9 and 10 (checkpoint, audit) change state; steps 2, 6, 7 and 8 have gates; and the highest step risk is low, at steps 1, 2, 3, 4, 5, 6, 7, 8, 9 and 10.

| # | Capability | Layer | Role | Gates | On failure | Reads from | Risk |
| --- | --- | --- | --- | --- | --- | --- | --- |
| 1 | `critique` | REASON |  |  |  |  | low |
| 2 | `inquire` | COORDINATE |  | skip |  | 1 | low |
| 3 | `search` | PERCEIVE |  |  |  |  | low |
| 4 | `retrieve` | PERCEIVE |  |  |  |  | low |
| 5 | `recall` | REMEMBER |  |  |  |  | low |
| 6 | `generate` | SYNTHESIZE |  | skip |  | 1, 2, 3, 4, 5 | low |
| 7 | `critique` | REASON |  | skip |  | 6 | low |
| 8 | `transform` | SYNTHESIZE |  | skip |  | 6, 7 | low |
| 9 | `checkpoint` | VERIFY | checkpoint |  |  |  | low |
| 10 | `audit` | VERIFY |  |  |  | 1, 2, 9 | low |

## Inputs

**Figure: Inputs of communication_drafting.** 9 inputs, 2 required (filled pin) and 7 optional (outlined pin).

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `request` | string | Yes | User's communication request |
| `recipient` | string | Yes |  |
| `communication_type` | string | No |  |
| `conversation_history` | array of object | No | Recent conversation context |
| `key_points` | array of string | No | Points the communication must cover |
| `max_length` | integer | No |  |
| `format` | string | No |  |
| `default_style` | object | No |  |
| `profile` | object | No |  |

## Steps

1. [`critique`](https://acs.synapti.ai/capabilities/critique/index.md): Analyze user request for communication intent. Stores `intent_analysis_out`. (risk low)
2. [`inquire`](https://acs.synapti.ai/capabilities/inquire/index.md): Clarify ambiguous aspects of the request. Stores `clarification_out`. (risk low)
   - Gate: when `${intent_analysis_out.issues} == []`, skip: The analysis found no ambiguity in the intent.
3. [`search`](https://acs.synapti.ai/capabilities/search/index.md): Find relevant prior communications with recipient. Stores `history_search_out`. (risk low)
4. [`retrieve`](https://acs.synapti.ai/capabilities/retrieve/index.md): Get recipient's contact information and preferences. Stores `recipient_info_out`. (risk low)
5. [`recall`](https://acs.synapti.ai/capabilities/recall/index.md): Retrieve user's communication style preferences. Stores `style_prefs_out`. (risk low)
6. [`generate`](https://acs.synapti.ai/capabilities/generate/index.md): Draft the communication. Stores `draft_out`. (risk low)
   - Gate: when `${clarification_out.questions} != null && ${clarification_out.questions} != []`, skip: Clarifying questions are open; ask them before drafting.
7. [`critique`](https://acs.synapti.ai/capabilities/critique/index.md): Review draft for tone, clarity, and completeness. Stores `draft_review_out`. (risk low)
   - Gate: when `${draft_out} == null`, skip: No draft to review.
8. [`transform`](https://acs.synapti.ai/capabilities/transform/index.md): Apply corrections based on review if needed. Stores `revised_draft_out`. (risk low)
   - Gate: when `${draft_review_out} == null || ${draft_review_out.issues} == []`, skip: Draft needs no revision.
9. [`checkpoint`](https://acs.synapti.ai/capabilities/checkpoint/index.md): Checkpoint before presenting draft. Stores `checkpoint_out`. (risk low, changes state)
10. [`audit`](https://acs.synapti.ai/capabilities/audit/index.md): Record communication drafting session. Stores `audit_out`. (risk low, changes state)

## Data flow

**Figure: Which step reads which stored output.** 5 steps read the output of earlier steps, 12 reads in all; step 6 (generate) reads the most, from 5 steps.

- Step 2 reads from step 1.
- Step 6 reads from steps 1, 2, 3, 4 and 5.
- Step 7 reads from step 6.
- Step 8 reads from steps 6 and 7.
- Step 10 reads from steps 1, 2 and 9.

## Risk

**Figure: Risk of communication_drafting: declared medium; highest step risk low, at step 1 (critique).** The catalog declares medium; the highest step risk is low.

- Step 1 (`critique`): low
- Step 2 (`inquire`): low
- Step 3 (`search`): low
- Step 4 (`retrieve`): low
- Step 5 (`recall`): low
- Step 6 (`generate`): low
- Step 7 (`critique`): low
- Step 8 (`transform`): low
- Step 9 (`checkpoint`): low
- Step 10 (`audit`): low

## Success criteria

- User intent clearly understood
- Relevant context incorporated
- Appropriate tone and format applied
- Draft ready for user review

## Related

- Domain: [personal-assistant](https://acs.synapti.ai/domains/personal-assistant/index.md)
- Listed by the [personal-assistant](https://acs.synapti.ai/domains/personal-assistant/index.md) profile

## Validate it

```sh
python tools/validate_workflows.py --catalog schemas/workflows/personal_assistant_workflows.yaml
```

## Workflow YAML

```yaml
communication_drafting:
  goal: Draft communications (email, message) based on user intent and context.
  risk: medium
  domain: personal-assistant
  profile: schemas/profiles/personal_assistant.yaml
  description: |
    Communication drafting workflow that understands user intent,
    retrieves relevant context, and generates appropriate messages.
    All communications require user approval before sending.
  success:
    - User intent clearly understood
    - Relevant context incorporated
    - Appropriate tone and format applied
    - Draft ready for user review
  steps:
    - capability: critique
      purpose: Analyze user request for communication intent.
      risk: low
      mutation: false
      store_as: intent_analysis_out
      input_bindings:
        target: ${request}
        criteria:
          - communication_goal
          - recipient_relationship
          - urgency_level
          - formality_required

    - capability: inquire
      purpose: Clarify ambiguous aspects of the request.
      risk: low
      mutation: false
      store_as: clarification_out
      input_bindings:
        ambiguous_input: ${request}
        context:
          conversation_history: ${conversation_history}
          ambiguities: "${intent_analysis_out.issues: array<object>}"
        max_questions: 2
      gates:
        - when: ${intent_analysis_out.issues} == []
          action: skip
          message: The analysis found no ambiguity in the intent.

    - capability: search
      purpose: Find relevant prior communications with recipient.
      risk: low
      mutation: false
      store_as: history_search_out
      input_bindings:
        query: ${recipient}
        scope: communication_history
        limit: 10

    - capability: retrieve
      purpose: Get recipient's contact information and preferences.
      risk: low
      mutation: false
      store_as: recipient_info_out
      input_bindings:
        target: ${recipient}
        format: contact_profile

    - capability: recall
      purpose: Retrieve user's communication style preferences.
      risk: low
      mutation: false
      store_as: style_prefs_out
      input_bindings:
        key: communication_preferences
        default: ${default_style}

    - capability: generate
      purpose: Draft the communication.
      domain: communication
      risk: low
      mutation: false
      store_as: draft_out
      gates:
        - when: ${clarification_out.questions} != null && ${clarification_out.questions} != []
          action: skip
          message: Clarifying questions are open; ask them before drafting.
      input_bindings:
        specification:
          type: ${communication_type}
          recipient: "${recipient_info_out.data: object}"
          intent: ${intent_analysis_out}
          tone: "${style_prefs_out.data.tone: string}"
          context: "${history_search_out.results: array<object>}"
          key_points: ${key_points}
        constraints:
          max_length: ${max_length}
          format: ${format}

    - capability: critique
      purpose: Review draft for tone, clarity, and completeness.
      risk: low
      mutation: false
      store_as: draft_review_out
      gates:
        - when: ${draft_out} == null
          action: skip
          message: No draft to review.
      input_bindings:
        target: "${draft_out.content: string}"
        criteria:
          - tone_appropriateness
          - clarity
          - completeness
          - grammar_spelling

    - capability: transform
      purpose: Apply corrections based on review if needed.
      risk: low
      mutation: false
      store_as: revised_draft_out
      input_bindings:
        input: "${draft_out.content: string}"
        source_format: draft
        target_format: polished
        options:
          corrections: "${draft_review_out.suggestions: array<object>}"
      gates:
        - when: ${draft_review_out} == null || ${draft_review_out.issues} == []
          action: skip
          message: Draft needs no revision.

    - capability: checkpoint
      purpose: Checkpoint before presenting draft.
      risk: low
      mutation: true
      store_as: checkpoint_out
      input_bindings:
        scope: communication_draft
        label: "COMM-${communication_type}"

    - capability: audit
      purpose: Record communication drafting session.
      risk: low
      mutation: true
      store_as: audit_out
      input_bindings:
        event:
          type: communication_draft
          recipient: ${recipient}
          communication_type: ${communication_type}
          intent: ${intent_analysis_out}
          open_questions: "${clarification_out.questions: array<object>}"
          checkpoint_id: ${checkpoint_out.checkpoint_id}

  inputs:
    request:
      type: string
      required: true
      description: User's communication request
    recipient:
      type: string
      required: true
    communication_type:
      type: string
      enum: [email, slack_message, text, formal_letter]
      default: email
    conversation_history:
      type: array
      items: {type: object}
      description: Recent conversation context
    key_points:
      type: array
      items: {type: string}
      description: Points the communication must cover
    max_length:
      type: integer
      default: 300
    format:
      type: string
      default: professional
    default_style:
      type: object
      default:
        tone: professional
        formality: medium
    profile:
      type: object
      ref: schemas/profiles/personal_assistant.yaml
```
