{
  "version": "0.1.0",
  "name": "worcflow.ai API",
  "description": "Commitment tracking for WhatsApp conversations",
  "openapi": "https://api.worcflow.ai/v1/openapi.json",
  "flows": [
    {
      "name": "Track commitments from a WhatsApp chat",
      "description": "Ingest a WhatsApp conversation and get back structured commitments with owners, deadlines, and status",
      "steps": [
        {
          "operation": "createWorkspace",
          "description": "Create a workspace for the client or project"
        },
        {
          "operation": "ingestMessages",
          "description": "Submit WhatsApp messages for processing"
        },
        {
          "operation": "queryCommitments",
          "description": "Retrieve extracted commitments"
        }
      ]
    },
    {
      "name": "Monitor and nudge at-risk commitments",
      "description": "Check for commitments approaching deadline and send reminders",
      "steps": [
        {
          "operation": "getAtRiskCommitments",
          "description": "Get commitments that are at risk of being missed"
        },
        {
          "operation": "sendNudge",
          "description": "Send reminder to commitment owner"
        }
      ]
    }
  ]
}
