{
  "schema": "https://usetalkie.com/workflows/templates/schema/v1",
  "id": "dictate-to-email",
  "name": "Dictate to Email",
  "description": "Talk through a reply and open a polished draft in Mail.app without sending automatically.",
  "trigger": {
    "type": "manual",
    "input": "dictation"
  },
  "privacy": {
    "default": "local-draft",
    "externalCalls": ["configured-llm"],
    "externalCallsRequired": false
  },
  "variables": ["TRANSCRIPT", "SUMMARY", "TITLE", "LAST_OUTPUT"],
  "steps": [
    {
      "type": "dictate",
      "output": "TRANSCRIPT"
    },
    {
      "type": "llm",
      "provider": "configured-llm-or-local-mlx",
      "prompt": "Turn {{TRANSCRIPT}} into a concise email body. Create a subject from {{SUMMARY}}."
    },
    {
      "type": "email",
      "client": "Mail.app",
      "subject": "{{TITLE}}",
      "body": "{{LAST_OUTPUT}}",
      "sendAutomatically": false
    }
  ],
  "setup": [
    "Set a tone instruction such as direct, warm, or formal.",
    "Leave recipients blank unless this workflow always goes to the same person.",
    "Review the Mail.app draft before sending."
  ]
}
