{
  "schemaVersion": "1.0",
  "process": {
    "name": "Processamento de pedido",
    "code": "PED-001",
    "category": "OPERATIONAL",
    "description": "Processo de exemplo: do recebimento do pedido ao despacho."
  },
  "version": {
    "versionNumber": 1,
    "title": "Processamento de pedido",
    "objective": "Objetivo de exemplo para Processamento de pedido.",
    "scopeNote": null,
    "trigger": null,
    "expectedOutcome": null,
    "changeNote": null,
    "publishedAt": "2026-08-05T14:58:20.566Z",
    "automationIndex": 25,
    "avgEfficiency": 3.2,
    "totalCycleTimeMinutes": 720
  },
  "steps": [
    {
      "key": "inicio",
      "name": "Início",
      "description": null,
      "type": "START",
      "orderHint": 0,
      "responsibleLabel": null,
      "slaValue": null,
      "slaUnit": null,
      "inputs": null,
      "outputs": null,
      "tools": null,
      "automationPotential": "NONE",
      "efficiencyScore": null,
      "analysisNote": null
    },
    {
      "key": "receber-pedido",
      "name": "Receber pedido",
      "description": null,
      "type": "ACTION",
      "orderHint": 1,
      "responsibleLabel": "Atendimento",
      "slaValue": 30,
      "slaUnit": "MINUTE",
      "inputs": null,
      "outputs": null,
      "tools": null,
      "automationPotential": "PARTIAL",
      "efficiencyScore": 4,
      "analysisNote": null
    },
    {
      "key": "verificar-estoque",
      "name": "Verificar estoque",
      "description": null,
      "type": "DECISION",
      "orderHint": 2,
      "responsibleLabel": "Logística",
      "slaValue": null,
      "slaUnit": null,
      "inputs": null,
      "outputs": null,
      "tools": null,
      "automationPotential": "NONE",
      "efficiencyScore": null,
      "analysisNote": null
    },
    {
      "key": "notificar-cliente",
      "name": "Notificar cliente sem estoque",
      "description": null,
      "type": "ACTION",
      "orderHint": 3,
      "responsibleLabel": "Atendimento",
      "slaValue": null,
      "slaUnit": null,
      "inputs": null,
      "outputs": null,
      "tools": null,
      "automationPotential": "NONE",
      "efficiencyScore": 2,
      "analysisNote": "Processo manual e repetitivo — candidato a template automático de e-mail."
    },
    {
      "key": "separar-item",
      "name": "Separar item",
      "description": null,
      "type": "ACTION",
      "orderHint": 4,
      "responsibleLabel": "Logística",
      "slaValue": 2,
      "slaUnit": "HOUR",
      "inputs": null,
      "outputs": null,
      "tools": null,
      "automationPotential": "LOW",
      "efficiencyScore": 4,
      "analysisNote": null
    },
    {
      "key": "embalar-item",
      "name": "Embalar item",
      "description": null,
      "type": "ACTION",
      "orderHint": 5,
      "responsibleLabel": "Logística",
      "slaValue": 1,
      "slaUnit": "HOUR",
      "inputs": null,
      "outputs": null,
      "tools": null,
      "automationPotential": "LOW",
      "efficiencyScore": null,
      "analysisNote": null
    },
    {
      "key": "emitir-nota-fiscal",
      "name": "Emitir nota fiscal",
      "description": null,
      "type": "AUTOMATED",
      "orderHint": 6,
      "responsibleLabel": "Sistema fiscal",
      "slaValue": 5,
      "slaUnit": "MINUTE",
      "inputs": null,
      "outputs": null,
      "tools": null,
      "automationPotential": "ALREADY_AUTOMATED",
      "efficiencyScore": null,
      "analysisNote": "Já emitida automaticamente pelo ERP fiscal no fechamento do pedido."
    },
    {
      "key": "decidir-aprovacao",
      "name": "Aprovar despacho",
      "description": null,
      "type": "DECISION",
      "orderHint": 7,
      "responsibleLabel": "Supervisor de logística",
      "slaValue": null,
      "slaUnit": null,
      "inputs": null,
      "outputs": null,
      "tools": null,
      "automationPotential": "NONE",
      "efficiencyScore": null,
      "analysisNote": null
    },
    {
      "key": "cancelar-pedido",
      "name": "Cancelar pedido",
      "description": null,
      "type": "ACTION",
      "orderHint": 8,
      "responsibleLabel": "Atendimento",
      "slaValue": null,
      "slaUnit": null,
      "inputs": null,
      "outputs": null,
      "tools": null,
      "automationPotential": "NONE",
      "efficiencyScore": 3,
      "analysisNote": null
    },
    {
      "key": "despachar-pedido",
      "name": "Despachar pedido",
      "description": null,
      "type": "ACTION",
      "orderHint": 9,
      "responsibleLabel": "Logística",
      "slaValue": 1,
      "slaUnit": "BUSINESS_DAY",
      "inputs": null,
      "outputs": null,
      "tools": null,
      "automationPotential": "HIGH",
      "efficiencyScore": 3,
      "analysisNote": "Etiquetas e acionamento da transportadora já têm API disponível — automatizável."
    },
    {
      "key": "fim",
      "name": "Fim",
      "description": null,
      "type": "END",
      "orderHint": 10,
      "responsibleLabel": null,
      "slaValue": null,
      "slaUnit": null,
      "inputs": null,
      "outputs": null,
      "tools": null,
      "automationPotential": "NONE",
      "efficiencyScore": null,
      "analysisNote": null
    }
  ],
  "dependencies": [
    {
      "fromStepKey": "cancelar-pedido",
      "toStepKey": "fim",
      "conditionLabel": null
    },
    {
      "fromStepKey": "decidir-aprovacao",
      "toStepKey": "cancelar-pedido",
      "conditionLabel": "rejeitado"
    },
    {
      "fromStepKey": "decidir-aprovacao",
      "toStepKey": "despachar-pedido",
      "conditionLabel": "aprovado"
    },
    {
      "fromStepKey": "despachar-pedido",
      "toStepKey": "fim",
      "conditionLabel": null
    },
    {
      "fromStepKey": "embalar-item",
      "toStepKey": "decidir-aprovacao",
      "conditionLabel": null
    },
    {
      "fromStepKey": "emitir-nota-fiscal",
      "toStepKey": "decidir-aprovacao",
      "conditionLabel": null
    },
    {
      "fromStepKey": "inicio",
      "toStepKey": "receber-pedido",
      "conditionLabel": null
    },
    {
      "fromStepKey": "notificar-cliente",
      "toStepKey": "fim",
      "conditionLabel": null
    },
    {
      "fromStepKey": "receber-pedido",
      "toStepKey": "verificar-estoque",
      "conditionLabel": null
    },
    {
      "fromStepKey": "separar-item",
      "toStepKey": "embalar-item",
      "conditionLabel": null
    },
    {
      "fromStepKey": "separar-item",
      "toStepKey": "emitir-nota-fiscal",
      "conditionLabel": null
    },
    {
      "fromStepKey": "verificar-estoque",
      "toStepKey": "notificar-cliente",
      "conditionLabel": "sem estoque"
    },
    {
      "fromStepKey": "verificar-estoque",
      "toStepKey": "separar-item",
      "conditionLabel": "em estoque"
    }
  ]
}
