{
  "kind": "original-bounded-choice-workflow",
  "version": 1,
  "scope": "Choose one fixed next response for an original call-screening dialogue using its stated conversation stage and caller intent. The candidate message text stays immutable. Missing dialogue context stays pending. No audio transcription, telephone call, stored note or spoken response is performed.",
  "question": "Select a fixed next message. First: caller explicitly asks to end -> End exchange. Otherwise, absent dialogue stage -> Need dialogue context; never infer a stage from a name. With a known stage: identification plus name but no reason -> Ask purpose; purpose plus callback request without contact -> Ask callback details; purpose plus informational note needing no reply -> Acknowledge note. Missing essential intent -> Need dialogue context. Select supplied text only; never send or invent contacts.",
  "choices": [
    "Ask purpose",
    "Ask callback details",
    "Acknowledge note",
    "End exchange",
    "Need dialogue context"
  ],
  "actions": {
    "Ask purpose": {
      "action": "preview_fixed_payload",
      "payload": {
        "messageId": "ask-purpose",
        "text": "What would you like to discuss?"
      },
      "pending": false
    },
    "Ask callback details": {
      "action": "preview_fixed_payload",
      "payload": {
        "messageId": "ask-callback",
        "text": "What number should be used for the return call?"
      },
      "pending": false
    },
    "Acknowledge note": {
      "action": "preview_fixed_payload",
      "payload": {
        "messageId": "acknowledge",
        "text": "Thank you for the information."
      },
      "pending": false
    },
    "End exchange": {
      "action": "preview_fixed_payload",
      "payload": {
        "messageId": "end",
        "text": "Thank you. We can end the exchange here."
      },
      "pending": false
    },
    "Need dialogue context": {
      "action": "no_permitted_payload",
      "payload": null,
      "pending": false
    }
  },
  "samples": [
    {
      "id": "name",
      "label": "Identification needs a purpose",
      "expected": "Ask purpose",
      "request": {
        "context": "{\n  \"task\": \"Dialogue stage: identification. Caller: My name is Alex. No reason for the call has been supplied.\",\n  \"permittedCandidates\": {\n    \"Ask purpose\": {\n      \"messageId\": \"ask-purpose\",\n      \"text\": \"What would you like to discuss?\"\n    },\n    \"Ask callback details\": {\n      \"messageId\": \"ask-callback\",\n      \"text\": \"What number should be used for the return call?\"\n    },\n    \"Acknowledge note\": {\n      \"messageId\": \"acknowledge\",\n      \"text\": \"Thank you for the information.\"\n    },\n    \"End exchange\": {\n      \"messageId\": \"end\",\n      \"text\": \"Thank you. We can end the exchange here.\"\n    }\n  }\n}",
        "question": "Select a fixed next message. First: caller explicitly asks to end -> End exchange. Otherwise, absent dialogue stage -> Need dialogue context; never infer a stage from a name. With a known stage: identification plus name but no reason -> Ask purpose; purpose plus callback request without contact -> Ask callback details; purpose plus informational note needing no reply -> Acknowledge note. Missing essential intent -> Need dialogue context. Select supplied text only; never send or invent contacts.",
        "choices": [
          "Ask purpose",
          "Ask callback details",
          "Acknowledge note",
          "End exchange",
          "Need dialogue context"
        ]
      }
    },
    {
      "id": "callback",
      "label": "Return call without contact",
      "expected": "Ask callback details",
      "request": {
        "context": "{\n  \"task\": \"Dialogue stage: purpose. Caller: Please ask them to call me back. Context: no callback number or other contact detail supplied.\",\n  \"permittedCandidates\": {\n    \"Ask purpose\": {\n      \"messageId\": \"ask-purpose\",\n      \"text\": \"What would you like to discuss?\"\n    },\n    \"Ask callback details\": {\n      \"messageId\": \"ask-callback\",\n      \"text\": \"What number should be used for the return call?\"\n    },\n    \"Acknowledge note\": {\n      \"messageId\": \"acknowledge\",\n      \"text\": \"Thank you for the information.\"\n    },\n    \"End exchange\": {\n      \"messageId\": \"end\",\n      \"text\": \"Thank you. We can end the exchange here.\"\n    }\n  }\n}",
        "question": "Select a fixed next message. First: caller explicitly asks to end -> End exchange. Otherwise, absent dialogue stage -> Need dialogue context; never infer a stage from a name. With a known stage: identification plus name but no reason -> Ask purpose; purpose plus callback request without contact -> Ask callback details; purpose plus informational note needing no reply -> Acknowledge note. Missing essential intent -> Need dialogue context. Select supplied text only; never send or invent contacts.",
        "choices": [
          "Ask purpose",
          "Ask callback details",
          "Acknowledge note",
          "End exchange",
          "Need dialogue context"
        ]
      }
    },
    {
      "id": "note",
      "label": "Informational note without reply",
      "expected": "Acknowledge note",
      "request": {
        "context": "{\n  \"task\": \"Dialogue stage: purpose. Caller: The delivery is complete. This is only an update and no reply is needed.\",\n  \"permittedCandidates\": {\n    \"Ask purpose\": {\n      \"messageId\": \"ask-purpose\",\n      \"text\": \"What would you like to discuss?\"\n    },\n    \"Ask callback details\": {\n      \"messageId\": \"ask-callback\",\n      \"text\": \"What number should be used for the return call?\"\n    },\n    \"Acknowledge note\": {\n      \"messageId\": \"acknowledge\",\n      \"text\": \"Thank you for the information.\"\n    },\n    \"End exchange\": {\n      \"messageId\": \"end\",\n      \"text\": \"Thank you. We can end the exchange here.\"\n    }\n  }\n}",
        "question": "Select a fixed next message. First: caller explicitly asks to end -> End exchange. Otherwise, absent dialogue stage -> Need dialogue context; never infer a stage from a name. With a known stage: identification plus name but no reason -> Ask purpose; purpose plus callback request without contact -> Ask callback details; purpose plus informational note needing no reply -> Acknowledge note. Missing essential intent -> Need dialogue context. Select supplied text only; never send or invent contacts.",
        "choices": [
          "Ask purpose",
          "Ask callback details",
          "Acknowledge note",
          "End exchange",
          "Need dialogue context"
        ]
      }
    },
    {
      "id": "end",
      "label": "Caller asks to end",
      "expected": "End exchange",
      "request": {
        "context": "{\n  \"task\": \"Dialogue stage: purpose. Caller: Please end this exchange now; I do not want to continue.\",\n  \"permittedCandidates\": {\n    \"Ask purpose\": {\n      \"messageId\": \"ask-purpose\",\n      \"text\": \"What would you like to discuss?\"\n    },\n    \"Ask callback details\": {\n      \"messageId\": \"ask-callback\",\n      \"text\": \"What number should be used for the return call?\"\n    },\n    \"Acknowledge note\": {\n      \"messageId\": \"acknowledge\",\n      \"text\": \"Thank you for the information.\"\n    },\n    \"End exchange\": {\n      \"messageId\": \"end\",\n      \"text\": \"Thank you. We can end the exchange here.\"\n    }\n  }\n}",
        "question": "Select a fixed next message. First: caller explicitly asks to end -> End exchange. Otherwise, absent dialogue stage -> Need dialogue context; never infer a stage from a name. With a known stage: identification plus name but no reason -> Ask purpose; purpose plus callback request without contact -> Ask callback details; purpose plus informational note needing no reply -> Acknowledge note. Missing essential intent -> Need dialogue context. Select supplied text only; never send or invent contacts.",
        "choices": [
          "Ask purpose",
          "Ask callback details",
          "Acknowledge note",
          "End exchange",
          "Need dialogue context"
        ]
      }
    },
    {
      "id": "missing",
      "label": "Same name but no dialogue stage",
      "expected": "Need dialogue context",
      "request": {
        "context": "{\n  \"task\": \"Caller: My name is Alex. Dialogue stage: not supplied. No previous dialogue is available.\",\n  \"permittedCandidates\": {\n    \"Ask purpose\": {\n      \"messageId\": \"ask-purpose\",\n      \"text\": \"What would you like to discuss?\"\n    },\n    \"Ask callback details\": {\n      \"messageId\": \"ask-callback\",\n      \"text\": \"What number should be used for the return call?\"\n    },\n    \"Acknowledge note\": {\n      \"messageId\": \"acknowledge\",\n      \"text\": \"Thank you for the information.\"\n    },\n    \"End exchange\": {\n      \"messageId\": \"end\",\n      \"text\": \"Thank you. We can end the exchange here.\"\n    }\n  }\n}",
        "question": "Select a fixed next message. First: caller explicitly asks to end -> End exchange. Otherwise, absent dialogue stage -> Need dialogue context; never infer a stage from a name. With a known stage: identification plus name but no reason -> Ask purpose; purpose plus callback request without contact -> Ask callback details; purpose plus informational note needing no reply -> Acknowledge note. Missing essential intent -> Need dialogue context. Select supplied text only; never send or invent contacts.",
        "choices": [
          "Ask purpose",
          "Ask callback details",
          "Acknowledge note",
          "End exchange",
          "Need dialogue context"
        ]
      }
    },
    {
      "id": "contact",
      "label": "Another callback with missing number",
      "expected": "Ask callback details",
      "request": {
        "context": "{\n  \"task\": \"Dialogue stage: purpose. Caller: Could I receive a return call about the schedule? Context: a callback is requested and contact details are absent.\",\n  \"permittedCandidates\": {\n    \"Ask purpose\": {\n      \"messageId\": \"ask-purpose\",\n      \"text\": \"What would you like to discuss?\"\n    },\n    \"Ask callback details\": {\n      \"messageId\": \"ask-callback\",\n      \"text\": \"What number should be used for the return call?\"\n    },\n    \"Acknowledge note\": {\n      \"messageId\": \"acknowledge\",\n      \"text\": \"Thank you for the information.\"\n    },\n    \"End exchange\": {\n      \"messageId\": \"end\",\n      \"text\": \"Thank you. We can end the exchange here.\"\n    }\n  }\n}",
        "question": "Select a fixed next message. First: caller explicitly asks to end -> End exchange. Otherwise, absent dialogue stage -> Need dialogue context; never infer a stage from a name. With a known stage: identification plus name but no reason -> Ask purpose; purpose plus callback request without contact -> Ask callback details; purpose plus informational note needing no reply -> Acknowledge note. Missing essential intent -> Need dialogue context. Select supplied text only; never send or invent contacts.",
        "choices": [
          "Ask purpose",
          "Ask callback details",
          "Acknowledge note",
          "End exchange",
          "Need dialogue context"
        ]
      }
    }
  ],
  "contextBindings": {
    "Ask purpose": [
      "permittedCandidates",
      "Ask purpose"
    ],
    "Ask callback details": [
      "permittedCandidates",
      "Ask callback details"
    ],
    "Acknowledge note": [
      "permittedCandidates",
      "Acknowledge note"
    ],
    "End exchange": [
      "permittedCandidates",
      "End exchange"
    ]
  },
  "consumer": "preview_choice_workflow_v2.py"
}
