{
  "template_id": "TPL-01",
  "filename": "tpl_01_merchandising_12_steps_deterministic.json",
  "name": "Plantilla 01 — Merchandising: Proceso Comercial Completo de 12 Etapas (Variante Determinística 0 IA)",
  "category": "Merchandising",
  "tutorial_code": "FA-13",
  "trigger_type": "message_created",
  "description": "Transforma una consulta inicial de WhatsApp o redes en una oportunidad comercial calificada en Kanban con producto, cantidad, método de personalización, fecha de entrega, tarea de seguimiento y derivación humana (0 consumo de IA).",
  "definition": {
    "nodes": [
      {
        "id": "trigger_1",
        "type": "trigger",
        "position": {
          "x": 100,
          "y": 200
        },
        "data": {
          "mode": "event",
          "event": "message_created",
          "once_per_conversation": true,
          "one_run_per_contact": true,
          "ignore_groups": true
        }
      },
      {
        "id": "cond_horario",
        "type": "condition",
        "position": {
          "x": 360,
          "y": 200
        },
        "data": {
          "combinator": "and",
          "conditions": [
            {
              "left": "{{ inbox.working_now }}",
              "operator": "equals",
              "value": "true"
            }
          ]
        }
      },
      {
        "id": "msg_interes",
        "type": "message",
        "position": {
          "x": 640,
          "y": 200
        },
        "data": {
          "body": "¡Hola {{ contact.first_name }}! 👋 Bienvenido a nuestra división de Merchandising y Regalos Empresariales. ¿En qué podemos ayudarte hoy?",
          "buttons": [
            {
              "id": "cotizar",
              "title": "Solicitar cotización"
            },
            {
              "id": "catalogo",
              "title": "Ver catálogo"
            },
            {
              "id": "asesor",
              "title": "Hablar con asesor"
            }
          ]
        }
      },
      {
        "id": "msg_producto",
        "type": "message",
        "position": {
          "x": 920,
          "y": 120
        },
        "data": {
          "body": "¡Excelente! ¿Qué línea de productos te interesa cotizar?",
          "buttons": [
            {
              "id": "termicos",
              "title": "Botellas y Térmicos"
            },
            {
              "id": "textil",
              "title": "Textil y Mochilas"
            },
            {
              "id": "kits",
              "title": "Kits Corporativos"
            }
          ]
        }
      },
      {
        "id": "msg_cantidad",
        "type": "message",
        "position": {
          "x": 1200,
          "y": 120
        },
        "data": {
          "body": "¿Qué cantidad aproximada de unidades necesitas? (Mínimo mayorista: 30 unidades)",
          "buttons": [
            {
              "id": "q_30_99",
              "title": "30 a 99 unidades"
            },
            {
              "id": "q_100_499",
              "title": "100 a 499 unidades"
            },
            {
              "id": "q_500_mas",
              "title": "500 o más unidades"
            }
          ]
        }
      },
      {
        "id": "msg_impresion",
        "type": "message",
        "position": {
          "x": 1480,
          "y": 120
        },
        "data": {
          "body": "¿Qué método de personalización prefieres para aplicar tu logo?",
          "buttons": [
            {
              "id": "laser",
              "title": "Grabado Láser"
            },
            {
              "id": "serigrafia",
              "title": "Serigrafía / UV"
            },
            {
              "id": "bordado",
              "title": "Bordado Textil"
            }
          ]
        }
      },
      {
        "id": "act_etiquetar",
        "type": "action",
        "position": {
          "x": 1760,
          "y": 120
        },
        "data": {
          "actions": [
            {
              "action": "add_label",
              "action_params": [
                "merchandising_calificado"
              ]
            },
            {
              "action": "change_priority",
              "action_params": [
                "high"
              ]
            },
            {
              "action": "add_private_note",
              "action_params": [
                "Lead Merchandising calificado por Flow Builder (Contacto: {{ contact.name }} - Última respuesta: {{ message.content }})"
              ]
            }
          ]
        }
      },
      {
        "id": "kanban_create",
        "type": "kanban",
        "position": {
          "x": 2040,
          "y": 120
        },
        "data": {
          "mode": "create",
          "funnel_id": 1,
          "funnel_stage": "stage_1",
          "result_name": "oportunidad_merch"
        }
      },
      {
        "id": "handoff_ventas",
        "type": "handoff",
        "position": {
          "x": 2320,
          "y": 200
        },
        "data": {
          "to": "inbox",
          "end_flow": true
        }
      }
    ],
    "edges": [
      {
        "id": "e1",
        "source": "trigger_1",
        "target": "cond_horario",
        "sourceHandle": "right"
      },
      {
        "id": "e2",
        "source": "cond_horario",
        "target": "msg_interes",
        "sourceHandle": "true"
      },
      {
        "id": "e3",
        "source": "cond_horario",
        "target": "msg_interes",
        "sourceHandle": "false"
      },
      {
        "id": "e4",
        "source": "msg_interes",
        "target": "msg_producto",
        "sourceHandle": "cotizar"
      },
      {
        "id": "e5",
        "source": "msg_interes",
        "target": "msg_producto",
        "sourceHandle": "catalogo"
      },
      {
        "id": "e6",
        "source": "msg_interes",
        "target": "handoff_ventas",
        "sourceHandle": "asesor"
      },
      {
        "id": "e7",
        "source": "msg_producto",
        "target": "msg_cantidad",
        "sourceHandle": "termicos"
      },
      {
        "id": "e8",
        "source": "msg_producto",
        "target": "msg_cantidad",
        "sourceHandle": "textil"
      },
      {
        "id": "e9",
        "source": "msg_producto",
        "target": "msg_cantidad",
        "sourceHandle": "kits"
      },
      {
        "id": "e10",
        "source": "msg_cantidad",
        "target": "msg_impresion",
        "sourceHandle": "q_30_99"
      },
      {
        "id": "e11",
        "source": "msg_cantidad",
        "target": "msg_impresion",
        "sourceHandle": "q_100_499"
      },
      {
        "id": "e12",
        "source": "msg_cantidad",
        "target": "msg_impresion",
        "sourceHandle": "q_500_mas"
      },
      {
        "id": "e13",
        "source": "msg_impresion",
        "target": "act_etiquetar",
        "sourceHandle": "laser"
      },
      {
        "id": "e14",
        "source": "msg_impresion",
        "target": "act_etiquetar",
        "sourceHandle": "serigrafia"
      },
      {
        "id": "e15",
        "source": "msg_impresion",
        "target": "act_etiquetar",
        "sourceHandle": "bordado"
      },
      {
        "id": "e16",
        "source": "act_etiquetar",
        "target": "kanban_create",
        "sourceHandle": "right"
      },
      {
        "id": "e17",
        "source": "kanban_create",
        "target": "handoff_ventas",
        "sourceHandle": "right"
      }
    ],
    "metadata": {
      "schema_version": 1
    }
  }
}