{
  "graph_code": "booking-assistant",
  "graph_id": 62005,
  "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": 90,
      "is_terminal": true
    },
    {
      "id": 91,
      "is_terminal": true
    },
    {
      "id": 92,
      "is_terminal": true
    }
  ],
  "edges": [
    {
      "id": 101,
      "from": 10,
      "to": 20
    },
    {
      "id": 102,
      "from": 10,
      "to": 92
    },
    {
      "id": 103,
      "from": 10,
      "to": 91
    },
    {
      "id": 201,
      "from": 20,
      "to": 90
    },
    {
      "id": 202,
      "from": 20,
      "to": 30
    },
    {
      "id": 203,
      "from": 20,
      "to": 92
    },
    {
      "id": 204,
      "from": 20,
      "to": 91
    },
    {
      "id": 301,
      "from": 30,
      "to": 40
    },
    {
      "id": 302,
      "from": 30,
      "to": 92
    },
    {
      "id": 303,
      "from": 30,
      "to": 91
    },
    {
      "id": 401,
      "from": 40,
      "to": 90
    },
    {
      "id": 402,
      "from": 40,
      "to": 92
    },
    {
      "id": 403,
      "from": 40,
      "to": 91
    }
  ],
  "labels": [
    {
      "edge_id": 101,
      "lang": "en",
      "text": "Select appointment"
    },
    {
      "edge_id": 101,
      "lang": "es",
      "text": "Seleccionar cita"
    },
    {
      "edge_id": 102,
      "lang": "en",
      "text": "Cancel booking"
    },
    {
      "edge_id": 102,
      "lang": "es",
      "text": "Cancelar reserva"
    },
    {
      "edge_id": 103,
      "lang": "en",
      "text": "Close expired booking"
    },
    {
      "edge_id": 103,
      "lang": "es",
      "text": "Cerrar reserva caducada"
    },
    {
      "edge_id": 201,
      "lang": "en",
      "text": "Confirm appointment"
    },
    {
      "edge_id": 201,
      "lang": "es",
      "text": "Confirmar cita"
    },
    {
      "edge_id": 202,
      "lang": "en",
      "text": "Choose another appointment"
    },
    {
      "edge_id": 202,
      "lang": "es",
      "text": "Volver a elegir cita"
    },
    {
      "edge_id": 203,
      "lang": "en",
      "text": "Cancel booking"
    },
    {
      "edge_id": 203,
      "lang": "es",
      "text": "Cancelar reserva"
    },
    {
      "edge_id": 204,
      "lang": "en",
      "text": "Close expired booking"
    },
    {
      "edge_id": 204,
      "lang": "es",
      "text": "Cerrar reserva caducada"
    },
    {
      "edge_id": 301,
      "lang": "en",
      "text": "Select revised appointment"
    },
    {
      "edge_id": 301,
      "lang": "es",
      "text": "Seleccionar cita modificada"
    },
    {
      "edge_id": 302,
      "lang": "en",
      "text": "Cancel booking"
    },
    {
      "edge_id": 302,
      "lang": "es",
      "text": "Cancelar reserva"
    },
    {
      "edge_id": 303,
      "lang": "en",
      "text": "Close expired booking"
    },
    {
      "edge_id": 303,
      "lang": "es",
      "text": "Cerrar reserva caducada"
    },
    {
      "edge_id": 401,
      "lang": "en",
      "text": "Confirm revised appointment"
    },
    {
      "edge_id": 401,
      "lang": "es",
      "text": "Confirmar cita modificada"
    },
    {
      "edge_id": 402,
      "lang": "en",
      "text": "Cancel booking"
    },
    {
      "edge_id": 402,
      "lang": "es",
      "text": "Cancelar reserva"
    },
    {
      "edge_id": 403,
      "lang": "en",
      "text": "Close expired booking"
    },
    {
      "edge_id": 403,
      "lang": "es",
      "text": "Cerrar reserva caducada"
    }
  ],
  "conditions": [
    {
      "edge_id": 101,
      "rule": "session_age",
      "params": {
        "max": 120
      }
    },
    {
      "edge_id": 101,
      "rule": "context_value",
      "params": {
        "key": "slot_id",
        "operator": "!=",
        "value": ""
      }
    },
    {
      "edge_id": 101,
      "rule": "context_value",
      "params": {
        "key": "slot_start_epoch",
        "operator": ">",
        "value": 0
      }
    },
    {
      "edge_id": 101,
      "rule": "context_value",
      "params": {
        "key": "slot_service_available",
        "operator": "==",
        "value": true
      }
    },
    {
      "edge_id": 101,
      "rule": "context_value",
      "params": {
        "key": "lead_seconds",
        "operator": ">=",
        "value": 86400
      }
    },
    {
      "edge_id": 103,
      "rule": "session_age",
      "params": {
        "min": 121
      }
    },
    {
      "edge_id": 201,
      "rule": "session_age",
      "params": {
        "max": 120
      }
    },
    {
      "edge_id": 201,
      "rule": "context_value",
      "params": {
        "key": "slot_id",
        "operator": "!=",
        "value": ""
      }
    },
    {
      "edge_id": 201,
      "rule": "context_value",
      "params": {
        "key": "slot_start_epoch",
        "operator": ">",
        "value": 0
      }
    },
    {
      "edge_id": 201,
      "rule": "context_value",
      "params": {
        "key": "slot_service_available",
        "operator": "==",
        "value": true
      }
    },
    {
      "edge_id": 201,
      "rule": "context_value",
      "params": {
        "key": "lead_seconds",
        "operator": ">=",
        "value": 86400
      }
    },
    {
      "edge_id": 202,
      "rule": "session_age",
      "params": {
        "max": 120
      }
    },
    {
      "edge_id": 204,
      "rule": "session_age",
      "params": {
        "min": 121
      }
    },
    {
      "edge_id": 301,
      "rule": "session_age",
      "params": {
        "max": 120
      }
    },
    {
      "edge_id": 301,
      "rule": "context_value",
      "params": {
        "key": "slot_id",
        "operator": "!=",
        "value": ""
      }
    },
    {
      "edge_id": 301,
      "rule": "context_value",
      "params": {
        "key": "slot_start_epoch",
        "operator": ">",
        "value": 0
      }
    },
    {
      "edge_id": 301,
      "rule": "context_value",
      "params": {
        "key": "slot_service_available",
        "operator": "==",
        "value": true
      }
    },
    {
      "edge_id": 301,
      "rule": "context_value",
      "params": {
        "key": "lead_seconds",
        "operator": ">=",
        "value": 86400
      }
    },
    {
      "edge_id": 301,
      "rule": "context_value",
      "params": {
        "key": "slot_reselected",
        "operator": "==",
        "value": true
      }
    },
    {
      "edge_id": 303,
      "rule": "session_age",
      "params": {
        "min": 121
      }
    },
    {
      "edge_id": 401,
      "rule": "session_age",
      "params": {
        "max": 120
      }
    },
    {
      "edge_id": 401,
      "rule": "context_value",
      "params": {
        "key": "slot_id",
        "operator": "!=",
        "value": ""
      }
    },
    {
      "edge_id": 401,
      "rule": "context_value",
      "params": {
        "key": "slot_start_epoch",
        "operator": ">",
        "value": 0
      }
    },
    {
      "edge_id": 401,
      "rule": "context_value",
      "params": {
        "key": "slot_service_available",
        "operator": "==",
        "value": true
      }
    },
    {
      "edge_id": 401,
      "rule": "context_value",
      "params": {
        "key": "lead_seconds",
        "operator": ">=",
        "value": 86400
      }
    },
    {
      "edge_id": 401,
      "rule": "context_value",
      "params": {
        "key": "slot_reselected",
        "operator": "==",
        "value": true
      }
    },
    {
      "edge_id": 403,
      "rule": "session_age",
      "params": {
        "min": 121
      }
    }
  ],
  "metadata": [
    {
      "id": 101,
      "node_id": 10,
      "lang": "en",
      "title": "Choose an appointment"
    },
    {
      "id": 102,
      "node_id": 10,
      "lang": "es",
      "title": "Elige una cita"
    },
    {
      "id": 201,
      "node_id": 20,
      "lang": "en",
      "title": "Review your appointment"
    },
    {
      "id": 202,
      "node_id": 20,
      "lang": "es",
      "title": "Revisa tu cita"
    },
    {
      "id": 301,
      "node_id": 30,
      "lang": "en",
      "title": "Choose another appointment"
    },
    {
      "id": 302,
      "node_id": 30,
      "lang": "es",
      "title": "Vuelve a elegir una cita"
    },
    {
      "id": 401,
      "node_id": 40,
      "lang": "en",
      "title": "Review your revised appointment"
    },
    {
      "id": 402,
      "node_id": 40,
      "lang": "es",
      "title": "Revisa tu cita modificada"
    },
    {
      "id": 901,
      "node_id": 90,
      "lang": "en",
      "title": "Appointment confirmed"
    },
    {
      "id": 902,
      "node_id": 90,
      "lang": "es",
      "title": "Cita confirmada"
    },
    {
      "id": 911,
      "node_id": 91,
      "lang": "en",
      "title": "Booking window expired"
    },
    {
      "id": 912,
      "node_id": 91,
      "lang": "es",
      "title": "Plazo de reserva agotado"
    },
    {
      "id": 921,
      "node_id": 92,
      "lang": "en",
      "title": "Booking cancelled"
    },
    {
      "id": 922,
      "node_id": 92,
      "lang": "es",
      "title": "Reserva cancelada"
    }
  ],
  "outputs": [
    {
      "node_id": 90,
      "type": "content",
      "lang": "en",
      "content": "Your simulated appointment is confirmed. No appointment was booked at a real workshop."
    },
    {
      "node_id": 90,
      "type": "content",
      "lang": "es",
      "content": "Tu cita simulada está confirmada. No se ha reservado una cita en un taller real."
    },
    {
      "node_id": 91,
      "type": "content",
      "lang": "en",
      "content": "The simulated booking window has expired. Start a new example to try again."
    },
    {
      "node_id": 91,
      "type": "content",
      "lang": "es",
      "content": "El plazo de reserva simulada ha caducado. Inicia un nuevo ejemplo para volver a intentarlo."
    },
    {
      "node_id": 92,
      "type": "content",
      "lang": "en",
      "content": "The simulated booking was cancelled before confirmation."
    },
    {
      "node_id": 92,
      "type": "content",
      "lang": "es",
      "content": "La reserva simulada se ha cancelado antes de confirmarla."
    }
  ]
}
