{
    "generated_at": "2026-05-19T12:06:04-06:00",
    "nodes": [
        {
            "id": 1,
            "flow_id": 1,
            "type": "start",
            "label": "Inicio",
            "payload": null,
            "position_x": 421,
            "position_y": -235,
            "media_url": null,
            "created_at": "2026-05-16T14:16:16.000000Z",
            "updated_at": "2026-05-19T17:55:27.000000Z"
        },
        {
            "id": 8,
            "flow_id": 1,
            "type": "message",
            "label": "Saludo",
            "payload": {
                "text": "¡Hola! Bienvenido, ¿en qué puedo ayudarte?"
            },
            "position_x": 155,
            "position_y": -23,
            "media_url": null,
            "created_at": "2026-05-18T15:17:48.000000Z",
            "updated_at": "2026-05-19T17:55:27.000000Z"
        },
        {
            "id": 9,
            "flow_id": 1,
            "type": "microsip_buscar_articulo",
            "label": "Buscar artículo",
            "payload": {
                "placeholder": "Escribe el nombre del artículo",
                "sucursal_id": 4967,
                "existencia_modo": "no_calcular"
            },
            "position_x": 154,
            "position_y": 183,
            "media_url": null,
            "created_at": "2026-05-18T15:17:48.000000Z",
            "updated_at": "2026-05-19T17:55:27.000000Z"
        },
        {
            "id": 10,
            "flow_id": 1,
            "type": "microsip_crear_pedido",
            "label": "Crear pedido",
            "payload": {
                "almacen_id": 19,
                "folio_serie": "Z",
                "sucursal_id": 4967,
                "vendedor_id": 528
            },
            "position_x": 400,
            "position_y": 590,
            "media_url": null,
            "created_at": "2026-05-18T15:17:48.000000Z",
            "updated_at": "2026-05-19T17:55:27.000000Z"
        },
        {
            "id": 12,
            "flow_id": 1,
            "type": "end",
            "label": "Fin",
            "payload": {
                "text": "Gracias por tu compra"
            },
            "position_x": 405,
            "position_y": 702,
            "media_url": null,
            "created_at": "2026-05-18T15:17:48.000000Z",
            "updated_at": "2026-05-19T17:55:27.000000Z"
        },
        {
            "id": 13,
            "flow_id": 1,
            "type": "microsip_identificar_cliente",
            "label": "Identificar cliente",
            "payload": {
                "cliente_default_id": 331,
                "cliente_default_vendedor_id": 0
            },
            "position_x": 396,
            "position_y": -99,
            "media_url": null,
            "created_at": "2026-05-18T15:30:34.000000Z",
            "updated_at": "2026-05-19T17:55:27.000000Z"
        },
        {
            "id": 14,
            "flow_id": 1,
            "type": "microsip_agregar_carrito",
            "label": "Agregar al carrito",
            "payload": [],
            "position_x": 404,
            "position_y": 388,
            "media_url": null,
            "created_at": "2026-05-18T15:52:46.000000Z",
            "updated_at": "2026-05-19T17:55:27.000000Z"
        },
        {
            "id": 15,
            "flow_id": 1,
            "type": "microsip_show_cart",
            "label": "Ver carrito",
            "payload": [],
            "position_x": 401,
            "position_y": 484,
            "media_url": null,
            "created_at": "2026-05-18T15:52:46.000000Z",
            "updated_at": "2026-05-19T17:55:27.000000Z"
        },
        {
            "id": 18,
            "flow_id": 1,
            "type": "ai_collect",
            "label": "Recolectar con IA",
            "payload": {
                "prompt": "¿Qué producto buscas? Si quieres, dime también cuántas piezas.",
                "fallback_text": "No te entendí bien. ¿Me dices el nombre del producto?",
                "variable_name": "producto_deseado",
                "extract_fields": [
                    "producto",
                    "cantidad"
                ]
            },
            "position_x": 596,
            "position_y": 103,
            "media_url": null,
            "created_at": "2026-05-18T15:55:06.000000Z",
            "updated_at": "2026-05-19T17:55:27.000000Z"
        },
        {
            "id": 20,
            "flow_id": 1,
            "type": "microsip_mostrar_articulo",
            "label": "Mostrar articulo",
            "payload": {
                "articulo_id_from": "context.articulo_id"
            },
            "position_x": 457,
            "position_y": 293,
            "media_url": null,
            "created_at": "2026-05-19T17:55:27.000000Z",
            "updated_at": "2026-05-19T17:55:27.000000Z"
        }
    ],
    "edges": [
        {
            "id": 197,
            "flow_id": 1,
            "source_node_id": 1,
            "target_node_id": 13,
            "source_handle": null,
            "condition_label": null,
            "order": 0,
            "created_at": "2026-05-19T17:55:27.000000Z",
            "updated_at": "2026-05-19T17:55:27.000000Z"
        },
        {
            "id": 198,
            "flow_id": 1,
            "source_node_id": 8,
            "target_node_id": 18,
            "source_handle": null,
            "condition_label": null,
            "order": 0,
            "created_at": "2026-05-19T17:55:27.000000Z",
            "updated_at": "2026-05-19T17:55:27.000000Z"
        },
        {
            "id": 199,
            "flow_id": 1,
            "source_node_id": 10,
            "target_node_id": 12,
            "source_handle": null,
            "condition_label": null,
            "order": 0,
            "created_at": "2026-05-19T17:55:27.000000Z",
            "updated_at": "2026-05-19T17:55:27.000000Z"
        },
        {
            "id": 200,
            "flow_id": 1,
            "source_node_id": 13,
            "target_node_id": 8,
            "source_handle": null,
            "condition_label": null,
            "order": 0,
            "created_at": "2026-05-19T17:55:27.000000Z",
            "updated_at": "2026-05-19T17:55:27.000000Z"
        },
        {
            "id": 201,
            "flow_id": 1,
            "source_node_id": 14,
            "target_node_id": 15,
            "source_handle": null,
            "condition_label": null,
            "order": 0,
            "created_at": "2026-05-19T17:55:27.000000Z",
            "updated_at": "2026-05-19T17:55:27.000000Z"
        },
        {
            "id": 202,
            "flow_id": 1,
            "source_node_id": 15,
            "target_node_id": 10,
            "source_handle": null,
            "condition_label": null,
            "order": 0,
            "created_at": "2026-05-19T17:55:27.000000Z",
            "updated_at": "2026-05-19T17:55:27.000000Z"
        },
        {
            "id": 203,
            "flow_id": 1,
            "source_node_id": 18,
            "target_node_id": 9,
            "source_handle": null,
            "condition_label": null,
            "order": 7,
            "created_at": "2026-05-19T17:55:27.000000Z",
            "updated_at": "2026-05-19T17:55:27.000000Z"
        },
        {
            "id": 204,
            "flow_id": 1,
            "source_node_id": 9,
            "target_node_id": 20,
            "source_handle": null,
            "condition_label": null,
            "order": 7,
            "created_at": "2026-05-19T17:55:27.000000Z",
            "updated_at": "2026-05-19T17:55:27.000000Z"
        },
        {
            "id": 205,
            "flow_id": 1,
            "source_node_id": 20,
            "target_node_id": 14,
            "source_handle": null,
            "condition_label": null,
            "order": 8,
            "created_at": "2026-05-19T17:55:27.000000Z",
            "updated_at": "2026-05-19T17:55:27.000000Z"
        }
    ]
}