{
  "template_id": "TPL-03",
  "filename": "tpl_03_merchandising_quote_followup_24h_72h.json",
  "name": "Plantilla 03 — Merchandising y Ventas: Seguimiento Automático de Cotizaciones a las 24h",
  "category": "Merchandising / CRM",
  "tutorial_code": "FA-15",
  "trigger_type": "kanban_item_updated",
  "description": "Se dispara cuando una oportunidad Kanban pasa a la etapa de presupuesto enviado, espera 24 horas y consulta al cliente con botones interactivos si desea avanzar o ajustar la propuesta.",
  "definition": {
    "nodes": [
      {
        "id": "trig_kanban",
        "type": "trigger",
        "position": {
          "x": 100,
          "y": 200
        },
        "data": {
          "mode": "event",
          "event": "kanban_item_updated",
          "kanban_changes": [
            "stage"
          ]
        }
      },
      {
        "id": "wait_24h",
        "type": "wait",
        "position": {
          "x": 380,
          "y": 200
        },
        "data": {
          "mode": "after_interval",
          "amount": 24,
          "unit": "hours"
        }
      },
      {
        "id": "msg_seguimiento",
        "type": "message",
        "position": {
          "x": 660,
          "y": 200
        },
        "data": {
          "body": "¡Hola {{ contact.first_name }}! Te escribimos para saber si pudiste revisar el presupuesto enviado y si necesitas alguna muestra o ajuste en cantidades.",
          "buttons": [
            {
              "id": "avanzar",
              "title": "Quiero avanzar"
            },
            {
              "id": "ajustar",
              "title": "Necesito ajustes"
            },
            {
              "id": "evaluando",
              "title": "Sigo evaluando"
            }
          ]
        }
      },
      {
        "id": "act_priorizar",
        "type": "action",
        "position": {
          "x": 940,
          "y": 120
        },
        "data": {
          "actions": [
            {
              "action": "add_label",
              "action_params": [
                "cotizacion_caliente"
              ]
            },
            {
              "action": "change_priority",
              "action_params": [
                "urgent"
              ]
            }
          ]
        }
      },
      {
        "id": "handoff_vendedor",
        "type": "handoff",
        "position": {
          "x": 1220,
          "y": 200
        },
        "data": {
          "to": "inbox",
          "end_flow": true
        }
      }
    ],
    "edges": [
      {
        "id": "e1",
        "source": "trig_kanban",
        "target": "wait_24h",
        "sourceHandle": "right"
      },
      {
        "id": "e2",
        "source": "wait_24h",
        "target": "msg_seguimiento",
        "sourceHandle": "right"
      },
      {
        "id": "e3",
        "source": "msg_seguimiento",
        "target": "act_priorizar",
        "sourceHandle": "avanzar"
      },
      {
        "id": "e4",
        "source": "msg_seguimiento",
        "target": "act_priorizar",
        "sourceHandle": "ajustar"
      },
      {
        "id": "e5",
        "source": "msg_seguimiento",
        "target": "handoff_vendedor",
        "sourceHandle": "evaluando"
      },
      {
        "id": "e6",
        "source": "act_priorizar",
        "target": "handoff_vendedor",
        "sourceHandle": "right"
      }
    ],
    "metadata": {
      "schema_version": 1
    }
  }
}