{
  "name": "FASE 2 - Publicador",
  "nodes": [
    {
      "parameters": {},
      "name": "Start",
      "type": "n8n-nodes-base.start",
      "position": [
        -400,
        0
      ]
    },
    {
      "parameters": {
        "conditions": {
          "conditions": [
            {
              "leftValue": "={{ $json.modo }}",
              "operator": {
                "type": "string",
                "operation": "equals"
              },
              "rightValue": "test"
            }
          ]
        }
      },
      "name": "IF Test Mode",
      "type": "n8n-nodes-base.if",
      "position": [
        -200,
        0
      ]
    },
    {
      "parameters": {
        "mode": "rules",
        "rules": {
          "values": [
            {
              "conditions": {
                "conditions": [
                  {
                    "leftValue": "={{ $json.tipo }}",
                    "operator": {
                      "type": "string",
                      "operation": "equals"
                    },
                    "rightValue": "imagen"
                  }
                ]
              },
              "outputKey": "imagen"
            },
            {
              "conditions": {
                "conditions": [
                  {
                    "leftValue": "={{ $json.tipo }}",
                    "operator": {
                      "type": "string",
                      "operation": "equals"
                    },
                    "rightValue": "reel"
                  }
                ]
              },
              "outputKey": "reel"
            }
          ]
        }
      },
      "name": "Switch Tipo",
      "type": "n8n-nodes-base.switch",
      "position": [
        0,
        0
      ]
    },
    {
      "parameters": {
        "values": {
          "string": [
            {
              "name": "post_id",
              "value": "MOCK_IMG_{{$now}}"
            },
            {
              "name": "estado",
              "value": "publicado"
            }
          ]
        }
      },
      "name": "Mock Imagen",
      "type": "n8n-nodes-base.set",
      "position": [
        200,
        -100
      ]
    },
    {
      "parameters": {
        "values": {
          "string": [
            {
              "name": "post_id",
              "value": "MOCK_REEL_{{$now}}"
            },
            {
              "name": "estado",
              "value": "publicado"
            }
          ]
        }
      },
      "name": "Mock Reel",
      "type": "n8n-nodes-base.set",
      "position": [
        200,
        100
      ]
    },
    {
      "parameters": {
        "values": {
          "string": [
            {
              "name": "post_id",
              "value": "MOCK_DEFAULT"
            },
            {
              "name": "estado",
              "value": "publicado"
            }
          ]
        }
      },
      "name": "Mock Default",
      "type": "n8n-nodes-base.set",
      "position": [
        200,
        250
      ]
    }
  ],
  "connections": {
    "Start": {
      "main": [
        [
          {
            "node": "IF Test Mode"
          }
        ]
      ]
    },
    "IF Test Mode": {
      "main": [
        [
          {
            "node": "Switch Tipo"
          }
        ],
        [
          {
            "node": "Switch Tipo"
          }
        ]
      ]
    },
    "Switch Tipo": {
      "main": [
        [
          {
            "node": "Mock Imagen"
          }
        ],
        [
          {
            "node": "Mock Reel"
          }
        ],
        [
          {
            "node": "Mock Default"
          }
        ]
      ]
    }
  }
}