{
  "name": "flujo_pov_videos_gratis",
  "nodes": [
    {
      "parameters": {},
      "name": "Disparador Manual",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        200,
        200
      ]
    },
    {
      "parameters": {
        "authentication": "serviceAccount",
        "sheetId": "1a51BQUCMXsoRog4f1wQfLmQ6L7eMriXCd1lIhrkamPI",
        "range": "Ideas!A2:A"
      },
      "name": "Leer Temas desde Google Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 1,
      "position": [
        400,
        200
      ],
      "credentials": {
        "googleSheetsServiceAccount": "<your credential>"
      }
    },
    {
      "parameters": {
        "url": "https://api-inference.huggingface.co/models/bigscience/bloomz-560m",
        "method": "POST",
        "sendHeaders": true,
        "headerParametersUi": {
          "parameter": [
            {
              "name": "Authorization",
              "value": "Bearer TU_TOKEN_DE_HUGGINGFACE"
            }
          ]
        },
        "jsonParameters": true,
        "options": {},
        "bodyParametersJson": "{\"inputs\": \"Redacta un gui\u00f3n viral estilo POV (en primera persona) de m\u00e1ximo 150 palabras sobre: {{$json[\\\"values\\\"][0]}}\"}"
      },
      "name": "Generar Gui\u00f3n con IA",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 1,
      "position": [
        600,
        200
      ]
    },
    {
      "parameters": {
        "values": {
          "string": [
            {
              "name": "audioUrl",
              "value": "https://fake-audio-host.com/audio.mp3"
            }
          ]
        }
      },
      "name": "Simular Audio",
      "type": "n8n-nodes-base.set",
      "typeVersion": 1,
      "position": [
        800,
        200
      ]
    },
    {
      "parameters": {
        "values": {
          "string": [
            {
              "name": "imagenUrl",
              "value": "https://fake-image.com/imagen.png"
            }
          ]
        }
      },
      "name": "Simular Imagen",
      "type": "n8n-nodes-base.set",
      "typeVersion": 1,
      "position": [
        1000,
        200
      ]
    },
    {
      "parameters": {
        "values": {
          "string": [
            {
              "name": "videoUrl",
              "value": "https://fake-video.com/video.mp4"
            }
          ]
        }
      },
      "name": "Simular Video",
      "type": "n8n-nodes-base.set",
      "typeVersion": 1,
      "position": [
        1200,
        200
      ]
    },
    {
      "parameters": {
        "values": {
          "string": [
            {
              "name": "estadoPublicacion",
              "value": "Publicado en YouTube (simulado)"
            }
          ]
        }
      },
      "name": "Simular Publicaci\u00f3n",
      "type": "n8n-nodes-base.set",
      "typeVersion": 1,
      "position": [
        1400,
        200
      ]
    },
    {
      "parameters": {
        "authentication": "serviceAccount",
        "sheetId": "1a51BQUCMXsoRog4f1wQfLmQ6L7eMriXCd1lIhrkamPI",
        "range": "Ideas!G2:G",
        "valueInputMode": "USER_ENTERED",
        "options": {},
        "data": {
          "values": [
            [
              "Publicado"
            ]
          ]
        }
      },
      "name": "Actualizar Google Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 1,
      "position": [
        1600,
        200
      ],
      "credentials": {
        "googleSheetsServiceAccount": "<your credential>"
      }
    }
  ],
  "connections": {
    "Disparador Manual": {
      "main": [
        [
          {
            "node": "Leer Temas desde Google Sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Leer Temas desde Google Sheets": {
      "main": [
        [
          {
            "node": "Generar Gui\u00f3n con IA",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generar Gui\u00f3n con IA": {
      "main": [
        [
          {
            "node": "Simular Audio",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Simular Audio": {
      "main": [
        [
          {
            "node": "Simular Imagen",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Simular Imagen": {
      "main": [
        [
          {
            "node": "Simular Video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Simular Video": {
      "main": [
        [
          {
            "node": "Simular Publicaci\u00f3n",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Simular Publicaci\u00f3n": {
      "main": [
        [
          {
            "node": "Actualizar Google Sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}