{
  "kind": "original-bounded-choice-workflow",
  "version": 1,
  "scope": "Determine whether a proposed first-contact outreach conflicts with an existing supplied customer, open conversation or explicit opt-out record. Original fictional contact history only; no message is sent and no prospect qualification is inferred.",
  "question": "Review proposed first-contact outreach against supplied history. Existing customer: active customer relationship, use its account owner. Open conversation: an unresolved conversation already exists. Do not contact: explicit opt-out. First contact: history explicitly contains none of those. Need history: relevant records are absent or incomplete. Opt-out takes priority, then active customer, then open conversation. Decide only from supplied records.",
  "choices": [
    "Existing customer",
    "Open conversation",
    "Do not contact",
    "First contact",
    "Need history"
  ],
  "actions": {
    "Existing customer": {
      "action": "preview_decision_report",
      "payload": {
        "decision": "Existing customer",
        "workflow": "outreach-relationship-check"
      },
      "pending": false
    },
    "Open conversation": {
      "action": "preview_decision_report",
      "payload": {
        "decision": "Open conversation",
        "workflow": "outreach-relationship-check"
      },
      "pending": false
    },
    "Do not contact": {
      "action": "preview_decision_report",
      "payload": {
        "decision": "Do not contact",
        "workflow": "outreach-relationship-check"
      },
      "pending": false
    },
    "First contact": {
      "action": "preview_decision_report",
      "payload": {
        "decision": "First contact",
        "workflow": "outreach-relationship-check"
      },
      "pending": false
    },
    "Need history": {
      "action": "preview_decision_report",
      "payload": {
        "decision": "Need history",
        "workflow": "outreach-relationship-check"
      },
      "pending": true
    }
  },
  "samples": [
    {
      "id": "customer",
      "label": "An account already exists",
      "expected": "Existing customer",
      "request": {
        "context": "{\n  \"task\": \"Proposed first-contact pitch. History: active customer contract; account owner Mira; no opt-out.\"\n}",
        "question": "Review proposed first-contact outreach against supplied history. Existing customer: active customer relationship, use its account owner. Open conversation: an unresolved conversation already exists. Do not contact: explicit opt-out. First contact: history explicitly contains none of those. Need history: relevant records are absent or incomplete. Opt-out takes priority, then active customer, then open conversation. Decide only from supplied records.",
        "choices": [
          "Existing customer",
          "Open conversation",
          "Do not contact",
          "First contact",
          "Need history"
        ]
      }
    },
    {
      "id": "thread",
      "label": "An unresolved sales conversation",
      "expected": "Open conversation",
      "request": {
        "context": "{\n  \"task\": \"Proposed first-contact pitch. History: prospect has an unresolved pricing conversation with Evan; no contract or opt-out.\"\n}",
        "question": "Review proposed first-contact outreach against supplied history. Existing customer: active customer relationship, use its account owner. Open conversation: an unresolved conversation already exists. Do not contact: explicit opt-out. First contact: history explicitly contains none of those. Need history: relevant records are absent or incomplete. Opt-out takes priority, then active customer, then open conversation. Decide only from supplied records.",
        "choices": [
          "Existing customer",
          "Open conversation",
          "Do not contact",
          "First contact",
          "Need history"
        ]
      }
    },
    {
      "id": "stop",
      "label": "A recorded opt-out",
      "expected": "Do not contact",
      "request": {
        "context": "{\n  \"task\": \"Proposed first-contact pitch. History: active customer plus explicit request not to receive marketing outreach.\"\n}",
        "question": "Review proposed first-contact outreach against supplied history. Existing customer: active customer relationship, use its account owner. Open conversation: an unresolved conversation already exists. Do not contact: explicit opt-out. First contact: history explicitly contains none of those. Need history: relevant records are absent or incomplete. Opt-out takes priority, then active customer, then open conversation. Decide only from supplied records.",
        "choices": [
          "Existing customer",
          "Open conversation",
          "Do not contact",
          "First contact",
          "Need history"
        ]
      }
    },
    {
      "id": "new",
      "label": "A checked empty history",
      "expected": "First contact",
      "request": {
        "context": "{\n  \"task\": \"Proposed first-contact pitch. History checked: no contract, unresolved conversation or opt-out.\"\n}",
        "question": "Review proposed first-contact outreach against supplied history. Existing customer: active customer relationship, use its account owner. Open conversation: an unresolved conversation already exists. Do not contact: explicit opt-out. First contact: history explicitly contains none of those. Need history: relevant records are absent or incomplete. Opt-out takes priority, then active customer, then open conversation. Decide only from supplied records.",
        "choices": [
          "Existing customer",
          "Open conversation",
          "Do not contact",
          "First contact",
          "Need history"
        ]
      }
    },
    {
      "id": "missing",
      "label": "Unavailable contact records",
      "expected": "Need history",
      "request": {
        "context": "{\n  \"task\": \"Proposed first-contact pitch. Customer and message history are unavailable.\"\n}",
        "question": "Review proposed first-contact outreach against supplied history. Existing customer: active customer relationship, use its account owner. Open conversation: an unresolved conversation already exists. Do not contact: explicit opt-out. First contact: history explicitly contains none of those. Need history: relevant records are absent or incomplete. Opt-out takes priority, then active customer, then open conversation. Decide only from supplied records.",
        "choices": [
          "Existing customer",
          "Open conversation",
          "Do not contact",
          "First contact",
          "Need history"
        ]
      }
    },
    {
      "id": "closed",
      "label": "A resolved historical thread",
      "expected": "First contact",
      "request": {
        "context": "{\n  \"task\": \"Proposed first-contact pitch. History checked: old pricing thread resolved and closed; no contract, open thread or opt-out.\"\n}",
        "question": "Review proposed first-contact outreach against supplied history. Existing customer: active customer relationship, use its account owner. Open conversation: an unresolved conversation already exists. Do not contact: explicit opt-out. First contact: history explicitly contains none of those. Need history: relevant records are absent or incomplete. Opt-out takes priority, then active customer, then open conversation. Decide only from supplied records.",
        "choices": [
          "Existing customer",
          "Open conversation",
          "Do not contact",
          "First contact",
          "Need history"
        ]
      }
    }
  ],
  "consumer": "preview_choice_workflow_v2.py"
}
