{
  "name": "Daily AI Agent Workflow",
  "nodes": [
    {
      "parameters": {
        "triggerTimes": [
          {
            "mode": "everyDay",
            "hour": 7,
            "minute": 0
          }
        ]
      },
      "id": "1",
      "name": "Cron Trigger",
      "type": "n8n-nodes-base.cron",
      "typeVersion": 1,
      "position": [
        250,
        300
      ]
    },
    {
      "parameters": {
        "model": "gpt-4o-mini",
        "prompt": "Write a short and engaging English story script (30 seconds) for my AI character. Keep it cinematic and entertaining."
      },
      "id": "2",
      "name": "OpenAI Story Writer",
      "type": "n8n-nodes-base.openAi",
      "typeVersion": 2,
      "credentials": {
        "openAiApi": {
          "name": "<your credential>"
        }
      },
      "position": [
        500,
        300
      ]
    },
    {
      "parameters": {
        "url": "https://api-inference.huggingface.co/models/facebook/mms-tts-eng",
        "method": "POST",
        "responseFormat": "file",
        "jsonParameters": true,
        "options": {},
        "bodyParametersJson": "={\"inputs\": $json[\"data\"]}"
      },
      "id": "3",
      "name": "HuggingFace TTS",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 1,
      "credentials": {
        "httpHeaderAuth": {
          "name": "<your credential>"
        }
      },
      "position": [
        750,
        300
      ]
    },
    {
      "parameters": {
        "url": "https://api.runwayml.com/v1/generate/video",
        "method": "POST",
        "responseFormat": "file",
        "jsonParameters": true,
        "bodyParametersJson": "={\"image\": \"https://drive.google.com/uc?export=download&id=1K11cd17ILueFGJxOF9L8VwXzcsiCU5wb\", \"audio\": $binary.data.data}"
      },
      "id": "4",
      "name": "Runway Video Generator",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 1,
      "credentials": {
        "httpHeaderAuth": {
          "name": "<your credential>"
        }
      },
      "position": [
        1000,
        300
      ]
    },
    {
      "parameters": {
        "title": "Daily AI Story",
        "description": "A short AI-generated cinematic story with my virtual character.",
        "tags": "AI, Storytelling, Virtual Character, Short Film",
        "privacyStatus": "public"
      },
      "id": "5",
      "name": "YouTube Upload",
      "type": "n8n-nodes-base.youtube",
      "typeVersion": 1,
      "credentials": {
        "youtubeOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "position": [
        1250,
        300
      ]
    },
    {
      "parameters": {
        "mode": "passThrough"
      },
      "id": "6",
      "name": "Mock Video Splitter",
      "type": "n8n-nodes-base.noOp",
      "typeVersion": 1,
      "position": [
        1500,
        300
      ]
    },
    {
      "parameters": {
        "model": "gpt-4o-mini",
        "prompt": "Write a catchy English caption and 5 trending hashtags for TikTok/Instagram based on this story."
      },
      "id": "7",
      "name": "OpenAI Caption Generator",
      "type": "n8n-nodes-base.openAi",
      "typeVersion": 2,
      "credentials": {
        "openAiApi": {
          "name": "<your credential>"
        }
      },
      "position": [
        1750,
        300
      ]
    },
    {
      "parameters": {
        "chatId": "YOUR_TELEGRAM_CHAT_ID",
        "text": "={{$json[\"data\"]}}",
        "additionalFields": {
          "caption": "={{$json[\"caption\"]}}"
        }
      },
      "id": "8",
      "name": "Telegram Send",
      "type": "n8n-nodes-base.telegram",
      "typeVersion": 1,
      "credentials": {
        "telegramApi": {
          "name": "<your credential>"
        }
      },
      "position": [
        2000,
        300
      ]
    }
  ],
  "connections": {
    "Cron Trigger": {
      "main": [
        [
          {
            "node": "OpenAI Story Writer",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Story Writer": {
      "main": [
        [
          {
            "node": "HuggingFace TTS",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HuggingFace TTS": {
      "main": [
        [
          {
            "node": "Runway Video Generator",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Runway Video Generator": {
      "main": [
        [
          {
            "node": "YouTube Upload",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "YouTube Upload": {
      "main": [
        [
          {
            "node": "Mock Video Splitter",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Mock Video Splitter": {
      "main": [
        [
          {
            "node": "OpenAI Caption Generator",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Caption Generator": {
      "main": [
        [
          {
            "node": "Telegram Send",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}