{
  "id": "a45d1jkHh90Cr2bF",
  "name": "'Generate News Videos from RSS Feeds with HeyGen Avatar",
  "tags": [],
  "nodes": [
    {
      "id": "79c28020-8eea-45b9-a813-1b59f180c249",
      "name": "When clicking \u2018Execute workflow\u2019",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        760,
        740
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "3e79a46a-2dee-4b0d-8ed7-7e9e68037448",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        600,
        360
      ],
      "parameters": {
        "width": 900,
        "height": 700,
        "content": "## Generate News Videos from RSS Feeds with HeyGen Avatar\n\n**Steps:**  \n- Triggered manually via the \"Execute workflow\" button.  \n- Reads RSS feed from Prothom Alo Bangla news XML.  \n- Uses news summary from the feed as input text for video generation.  \n- Sends a POST request to HeyGen API to create videos with specified avatar and voice settings.  \n- API key is included in the HTTP request headers (ensure it is kept secure).  \n- Video dimension is set to 1280x720 pixels."
      },
      "typeVersion": 1
    },
    {
      "id": "988d45e8-db19-42a6-9608-1bf811dc30f3",
      "name": "Generate Video News",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1200,
        740
      ],
      "parameters": {
        "url": "https://api.heygen.com/v2/video/generate",
        "method": "POST",
        "options": {},
        "jsonBody": "={\n  \"video_inputs\": [\n    {\n      \"character\": {\n        \"type\": \"avatar\",\n        \"avatar_id\": \"Lina_Dress_Sitting_Side_public\",\n        \"avatar_style\": \"normal\"\n      },\n      \"voice\": {\n        \"type\": \"text\",\n        \"input_text\": \"{{ $json.summary }}\",\n        \"voice_id\": \"119caed25533477ba63822d5d1552d25\",\n        \"speed\": 1.1\n      }\n    }\n  ],\n  \"dimension\": {\n    \"width\": 1280,\n    \"height\": 720\n  }\n}\n",
        "sendBody": true,
        "sendHeaders": true,
        "specifyBody": "json",
        "headerParameters": {
          "parameters": [
            {
              "name": "X-Api-Key"
            },
            {
              "name": "Content-Type",
              "value": " application/json"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "a8a7c8fc-e8d3-4977-823f-f44601d3e3a0",
      "name": "Read RSS Feed from Prothom Alo",
      "type": "n8n-nodes-base.rssFeedRead",
      "position": [
        980,
        740
      ],
      "parameters": {
        "url": "https://prod-qt-images.s3.amazonaws.com/production/prothomalo-bangla/feed.xml",
        "options": {}
      },
      "typeVersion": 1.2
    }
  ],
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "faaf54e4-6ad2-4749-9a08-82c9606263c6",
  "connections": {
    "Read RSS Feed from Prothom Alo": {
      "main": [
        [
          {
            "node": "Generate Video News",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking \u2018Execute workflow\u2019": {
      "main": [
        [
          {
            "node": "Read RSS Feed from Prothom Alo",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}