{
  "template_id": "TPL-11",
  "filename": "tpl_11_real_estate_and_automotive_lead_qualifier.json",
  "name": "Plantilla 11 — Inmobiliarias y Concesionarias: Calificación de Interesados y Oportunidad Kanban",
  "category": "Inmobiliarias / Concesionarias",
  "tutorial_code": "FA-29",
  "trigger_type": "message_created",
  "description": "Califica el tipo de operación (Compra, Alquiler o Tasación / Permuta), etiqueta la conversación, crea la oportunidad en Kanban y transfiere a un asesor.",
  "definition": {
    "nodes": [
      {
        "id": "trig_re",
        "type": "trigger",
        "position": {
          "x": 100,
          "y": 200
        },
        "data": {
          "mode": "event",
          "event": "message_created",
          "once_per_conversation": true,
          "ignore_groups": true
        }
      },
      {
        "id": "msg_operacion",
        "type": "message",
        "position": {
          "x": 380,
          "y": 200
        },
        "data": {
          "body": "¡Hola {{ contact.first_name }}! Gracias por contactarnos. ¿Qué operación te interesa realizar?",
          "buttons": [
            {
              "id": "comprar",
              "title": "Comprar / Invertir"
            },
            {
              "id": "alquilar",
              "title": "Alquilar"
            },
            {
              "id": "tasar",
              "title": "Tasar o Permutar"
            }
          ]
        }
      },
      {
        "id": "kanban_re",
        "type": "kanban",
        "position": {
          "x": 660,
          "y": 200
        },
        "data": {
          "mode": "create",
          "funnel_id": 1,
          "funnel_stage": "stage_1",
          "result_name": "card_inmobiliaria"
        }
      },
      {
        "id": "handoff_re",
        "type": "handoff",
        "position": {
          "x": 940,
          "y": 200
        },
        "data": {
          "to": "inbox",
          "end_flow": true
        }
      }
    ],
    "edges": [
      {
        "id": "e1",
        "source": "trig_re",
        "target": "msg_operacion",
        "sourceHandle": "right"
      },
      {
        "id": "e2",
        "source": "msg_operacion",
        "target": "kanban_re",
        "sourceHandle": "comprar"
      },
      {
        "id": "e3",
        "source": "msg_operacion",
        "target": "kanban_re",
        "sourceHandle": "alquilar"
      },
      {
        "id": "e4",
        "source": "msg_operacion",
        "target": "kanban_re",
        "sourceHandle": "tasar"
      },
      {
        "id": "e5",
        "source": "kanban_re",
        "target": "handoff_re",
        "sourceHandle": "right"
      }
    ],
    "metadata": {
      "schema_version": 1
    }
  }
}