{
  "graph_code": "returns-center",
  "graph_id": 62002,
  "root_node_id": 10,
  "graph_version": "1.0.0",
  "dsl_version": "1.0",
  "schema_version": "1.0",
  "strict_validation": true,
  "default_lang": "en",
  "allowed_langs": [
    "en",
    "es"
  ],
  "nodes": [
    {
      "id": 10,
      "is_terminal": false
    },
    {
      "id": 20,
      "is_terminal": false
    },
    {
      "id": 30,
      "is_terminal": false
    },
    {
      "id": 40,
      "is_terminal": false
    },
    {
      "id": 50,
      "is_terminal": false
    },
    {
      "id": 60,
      "is_terminal": false
    },
    {
      "id": 70,
      "is_terminal": false
    },
    {
      "id": 90,
      "is_terminal": true
    },
    {
      "id": 91,
      "is_terminal": true
    },
    {
      "id": 92,
      "is_terminal": true
    },
    {
      "id": 93,
      "is_terminal": true
    },
    {
      "id": 95,
      "is_terminal": true
    }
  ],
  "edges": [
    {
      "id": 101,
      "from": 10,
      "to": 20
    },
    {
      "id": 102,
      "from": 10,
      "to": 30
    },
    {
      "id": 201,
      "from": 20,
      "to": 40
    },
    {
      "id": 202,
      "from": 20,
      "to": 50
    },
    {
      "id": 203,
      "from": 20,
      "to": 95
    },
    {
      "id": 301,
      "from": 30,
      "to": 60
    },
    {
      "id": 302,
      "from": 30,
      "to": 70
    },
    {
      "id": 401,
      "from": 40,
      "to": 90
    },
    {
      "id": 402,
      "from": 40,
      "to": 91
    },
    {
      "id": 501,
      "from": 50,
      "to": 93
    },
    {
      "id": 502,
      "from": 50,
      "to": 95
    },
    {
      "id": 601,
      "from": 60,
      "to": 91
    },
    {
      "id": 602,
      "from": 60,
      "to": 92
    },
    {
      "id": 603,
      "from": 60,
      "to": 93
    },
    {
      "id": 701,
      "from": 70,
      "to": 93
    }
  ],
  "labels": [
    {
      "edge_id": 101,
      "lang": "en",
      "text": "Continue with ordinary return"
    },
    {
      "edge_id": 101,
      "lang": "es",
      "text": "Continuar con devolución ordinaria"
    },
    {
      "edge_id": 102,
      "lang": "en",
      "text": "Continue with a defective item"
    },
    {
      "edge_id": 102,
      "lang": "es",
      "text": "Continuar con artículo defectuoso"
    },
    {
      "edge_id": 201,
      "lang": "en",
      "text": "View eligible return options"
    },
    {
      "edge_id": 201,
      "lang": "es",
      "text": "Ver opciones de devolución disponibles"
    },
    {
      "edge_id": 202,
      "lang": "en",
      "text": "View late-return options"
    },
    {
      "edge_id": 202,
      "lang": "es",
      "text": "Ver opciones fuera de plazo"
    },
    {
      "edge_id": 203,
      "lang": "en",
      "text": "View policy restriction"
    },
    {
      "edge_id": 203,
      "lang": "es",
      "text": "Ver restricción de la política"
    },
    {
      "edge_id": 301,
      "lang": "en",
      "text": "View available resolutions"
    },
    {
      "edge_id": 301,
      "lang": "es",
      "text": "Ver soluciones disponibles"
    },
    {
      "edge_id": 302,
      "lang": "en",
      "text": "Review late issue"
    },
    {
      "edge_id": 302,
      "lang": "es",
      "text": "Revisar incidencia fuera de plazo"
    },
    {
      "edge_id": 401,
      "lang": "en",
      "text": "Request return and refund"
    },
    {
      "edge_id": 401,
      "lang": "es",
      "text": "Solicitar devolución y reembolso"
    },
    {
      "edge_id": 402,
      "lang": "en",
      "text": "Request replacement"
    },
    {
      "edge_id": 402,
      "lang": "es",
      "text": "Solicitar sustitución"
    },
    {
      "edge_id": 501,
      "lang": "en",
      "text": "Request an exception review"
    },
    {
      "edge_id": 501,
      "lang": "es",
      "text": "Solicitar revisión de excepción"
    },
    {
      "edge_id": 502,
      "lang": "en",
      "text": "View decision"
    },
    {
      "edge_id": 502,
      "lang": "es",
      "text": "Ver decisión"
    },
    {
      "edge_id": 601,
      "lang": "en",
      "text": "Request replacement"
    },
    {
      "edge_id": 601,
      "lang": "es",
      "text": "Solicitar sustitución"
    },
    {
      "edge_id": 602,
      "lang": "en",
      "text": "Request repair"
    },
    {
      "edge_id": 602,
      "lang": "es",
      "text": "Solicitar reparación"
    },
    {
      "edge_id": 603,
      "lang": "en",
      "text": "Request manual review"
    },
    {
      "edge_id": 603,
      "lang": "es",
      "text": "Solicitar revisión manual"
    },
    {
      "edge_id": 701,
      "lang": "en",
      "text": "Request manual review"
    },
    {
      "edge_id": 701,
      "lang": "es",
      "text": "Solicitar revisión manual"
    }
  ],
  "conditions": [
    {
      "edge_id": 101,
      "rule": "context_value",
      "params": {
        "key": "reason",
        "operator": "==",
        "value": "changed_mind"
      }
    },
    {
      "edge_id": 102,
      "rule": "context_value",
      "params": {
        "key": "reason",
        "operator": "==",
        "value": "defective"
      }
    },
    {
      "edge_id": 201,
      "rule": "context_value",
      "params": {
        "key": "ordinary_returnable",
        "operator": "==",
        "value": true
      }
    },
    {
      "edge_id": 201,
      "rule": "time",
      "params": {
        "source": "context[delivered_at]",
        "operator": "younger_than",
        "target": 2592001
      }
    },
    {
      "edge_id": 202,
      "rule": "context_value",
      "params": {
        "key": "ordinary_returnable",
        "operator": "==",
        "value": true
      }
    },
    {
      "edge_id": 202,
      "rule": "time",
      "params": {
        "source": "context[delivered_at]",
        "operator": "older_than",
        "target": 2592000
      }
    },
    {
      "edge_id": 203,
      "rule": "context_value",
      "params": {
        "key": "ordinary_returnable",
        "operator": "==",
        "value": false
      }
    },
    {
      "edge_id": 301,
      "rule": "time",
      "params": {
        "source": "context[delivered_at]",
        "operator": "younger_than",
        "target": 7776001
      }
    },
    {
      "edge_id": 302,
      "rule": "time",
      "params": {
        "source": "context[delivered_at]",
        "operator": "older_than",
        "target": 7776000
      }
    },
    {
      "edge_id": 402,
      "rule": "context_value",
      "params": {
        "key": "replacement_available",
        "operator": "==",
        "value": true
      }
    },
    {
      "edge_id": 501,
      "rule": "context_value",
      "params": {
        "key": "exception_available",
        "operator": "==",
        "value": true
      }
    },
    {
      "edge_id": 502,
      "rule": "context_value",
      "params": {
        "key": "exception_available",
        "operator": "==",
        "value": false
      }
    },
    {
      "edge_id": 601,
      "rule": "context_value",
      "params": {
        "key": "replacement_available",
        "operator": "==",
        "value": true
      }
    },
    {
      "edge_id": 602,
      "rule": "context_value",
      "params": {
        "key": "repair_supported",
        "operator": "==",
        "value": true
      }
    }
  ],
  "metadata": [
    {
      "id": 101,
      "node_id": 10,
      "lang": "en",
      "title": "Why are you returning this item?"
    },
    {
      "id": 102,
      "node_id": 10,
      "lang": "es",
      "title": "¿Por qué devuelves este artículo?"
    },
    {
      "id": 201,
      "node_id": 20,
      "lang": "en",
      "title": "Check the ordinary return policy"
    },
    {
      "id": 202,
      "node_id": 20,
      "lang": "es",
      "title": "Comprobar la política de devolución ordinaria"
    },
    {
      "id": 301,
      "node_id": 30,
      "lang": "en",
      "title": "Check the issue reporting window"
    },
    {
      "id": 302,
      "node_id": 30,
      "lang": "es",
      "title": "Comprobar el plazo para comunicar la incidencia"
    },
    {
      "id": 401,
      "node_id": 40,
      "lang": "en",
      "title": "Choose your return resolution"
    },
    {
      "id": 402,
      "node_id": 40,
      "lang": "es",
      "title": "Elige la solución de devolución"
    },
    {
      "id": 501,
      "node_id": 50,
      "lang": "en",
      "title": "The ordinary return window has ended"
    },
    {
      "id": 502,
      "node_id": 50,
      "lang": "es",
      "title": "El plazo de devolución ordinaria ha terminado"
    },
    {
      "id": 601,
      "node_id": 60,
      "lang": "en",
      "title": "Choose a resolution for the defective item"
    },
    {
      "id": 602,
      "node_id": 60,
      "lang": "es",
      "title": "Elige una solución para el artículo defectuoso"
    },
    {
      "id": 701,
      "node_id": 70,
      "lang": "en",
      "title": "The issue reporting window has ended"
    },
    {
      "id": 702,
      "node_id": 70,
      "lang": "es",
      "title": "El plazo para comunicar la incidencia ha terminado"
    },
    {
      "id": 901,
      "node_id": 90,
      "lang": "en",
      "title": "Return request accepted"
    },
    {
      "id": 902,
      "node_id": 90,
      "lang": "es",
      "title": "Solicitud de devolución aceptada"
    },
    {
      "id": 911,
      "node_id": 91,
      "lang": "en",
      "title": "Replacement request accepted"
    },
    {
      "id": 912,
      "node_id": 91,
      "lang": "es",
      "title": "Solicitud de sustitución aceptada"
    },
    {
      "id": 921,
      "node_id": 92,
      "lang": "en",
      "title": "Repair request accepted"
    },
    {
      "id": 922,
      "node_id": 92,
      "lang": "es",
      "title": "Solicitud de reparación aceptada"
    },
    {
      "id": 931,
      "node_id": 93,
      "lang": "en",
      "title": "Request sent for manual review"
    },
    {
      "id": 932,
      "node_id": 93,
      "lang": "es",
      "title": "Solicitud enviada a revisión manual"
    },
    {
      "id": 951,
      "node_id": 95,
      "lang": "en",
      "title": "Ordinary return not eligible"
    },
    {
      "id": 952,
      "node_id": 95,
      "lang": "es",
      "title": "Devolución ordinaria no elegible"
    }
  ],
  "outputs": [
    {
      "node_id": 90,
      "type": "content",
      "lang": "en",
      "content": "Return accepted in this simulation. No refund or shipment has been made."
    },
    {
      "node_id": 90,
      "type": "content",
      "lang": "es",
      "content": "Devolución aceptada en esta simulación. No se ha efectuado ningún reembolso ni envío."
    },
    {
      "node_id": 91,
      "type": "content",
      "lang": "en",
      "content": "Replacement accepted in this simulation. No inventory has been reserved or shipment made."
    },
    {
      "node_id": 91,
      "type": "content",
      "lang": "es",
      "content": "Sustitución aceptada en esta simulación. No se ha reservado inventario ni realizado ningún envío."
    },
    {
      "node_id": 92,
      "type": "content",
      "lang": "en",
      "content": "Repair request accepted in this simulation. No repair has been scheduled."
    },
    {
      "node_id": 92,
      "type": "content",
      "lang": "es",
      "content": "Solicitud de reparación aceptada en esta simulación. No se ha programado ninguna reparación."
    },
    {
      "node_id": 93,
      "type": "content",
      "lang": "en",
      "content": "Your request requires manual review. This is a simulated referral, not an approval."
    },
    {
      "node_id": 93,
      "type": "content",
      "lang": "es",
      "content": "Tu solicitud requiere revisión manual. Es una derivación simulada, no una aprobación."
    },
    {
      "node_id": 95,
      "type": "content",
      "lang": "en",
      "content": "The ordinary return is not eligible under the fictional policy of this demo."
    },
    {
      "node_id": 95,
      "type": "content",
      "lang": "es",
      "content": "La devolución ordinaria no es elegible según la política ficticia de esta demo."
    }
  ]
}
