{
  "template_id": "TPL-10",
  "filename": "tpl_10_support_out_of_hours_and_csat.json",
  "name": "Plantilla 10 — Soporte: Clasificación de Incidencias, Atención Fuera de Horario y Valoración CSAT",
  "category": "Soporte",
  "tutorial_code": "FA-27",
  "trigger_type": "message_created",
  "description": "Clasifica consultas de soporte técnico por severidad, asigna prioridad urgente ante caídas o bloqueos y transfiere al equipo de soporte.",
  "definition": {
    "nodes": [
      {
        "id": "trig_sup",
        "type": "trigger",
        "position": {
          "x": 100,
          "y": 200
        },
        "data": {
          "mode": "event",
          "event": "message_created",
          "once_per_conversation": true,
          "ignore_groups": true
        }
      },
      {
        "id": "msg_sup",
        "type": "message",
        "position": {
          "x": 380,
          "y": 200
        },
        "data": {
          "body": "¡Hola {{ contact.first_name }}! Para ayudarte más rápido desde Soporte Técnico, indícanos el tipo de consulta:",
          "buttons": [
            {
              "id": "urgente",
              "title": "Urgencia operativa"
            },
            {
              "id": "config",
              "title": "Uso y configuración"
            },
            {
              "id": "facturacion",
              "title": "Facturación y pagos"
            }
          ]
        }
      },
      {
        "id": "act_urg",
        "type": "action",
        "position": {
          "x": 660,
          "y": 80
        },
        "data": {
          "actions": [
            {
              "action": "add_label",
              "action_params": [
                "soporte_urgente"
              ]
            },
            {
              "action": "change_priority",
              "action_params": [
                "urgent"
              ]
            }
          ]
        }
      },
      {
        "id": "captain_sup",
        "type": "captain",
        "position": {
          "x": 660,
          "y": 200
        },
        "data": {}
      },
      {
        "id": "handoff_sup",
        "type": "handoff",
        "position": {
          "x": 940,
          "y": 140
        },
        "data": {
          "to": "inbox",
          "end_flow": true
        }
      }
    ],
    "edges": [
      {
        "id": "e1",
        "source": "trig_sup",
        "target": "msg_sup",
        "sourceHandle": "right"
      },
      {
        "id": "e2",
        "source": "msg_sup",
        "target": "act_urg",
        "sourceHandle": "urgente"
      },
      {
        "id": "e3",
        "source": "msg_sup",
        "target": "captain_sup",
        "sourceHandle": "config"
      },
      {
        "id": "e4",
        "source": "msg_sup",
        "target": "handoff_sup",
        "sourceHandle": "facturacion"
      },
      {
        "id": "e5",
        "source": "act_urg",
        "target": "handoff_sup",
        "sourceHandle": "right"
      }
    ],
    "metadata": {
      "schema_version": 1
    }
  }
}