Spaces:
Runtime error

File size: 3,565 Bytes
db13c61
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
{
  "name": "FREE-BLOTATO-v1",
  "nodes": [
    {
      "parameters": {
        "triggerTimes": {
          "item": [
            {
              "mode": "everyDay",
              "hour": 9,
              "minute": 0
            }
          ]
        }
      },
      "name": "Daily Trigger",
      "type": "n8n-nodes-base.cron",
      "typeVersion": 1,
      "position": [200, 300]
    },
    {
      "parameters": {
        "url": "http://localhost:11434/api/generate",
        "method": "POST",
        "jsonParameters": true,
        "options": {},
        "bodyParametersJson": "{\n  \"model\": \"llama3\",\n  \"prompt\": \"Find 5 viral content ideas in NICHE: AI tools for PLATFORM: Instagram. Give hook + angle.\"\n}"
      },
      "name": "Research Agent",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 2,
      "position": [400, 300]
    },
    {
      "parameters": {
        "url": "http://localhost:11434/api/generate",
        "method": "POST",
        "jsonParameters": true,
        "bodyParametersJson": "{\n  \"model\": \"llama3\",\n  \"prompt\": \"Write Instagram caption + reel script from this idea: {{$json[\"response\"]}}. Tone: punchy, human, non-AI.\"\n}"
      },
      "name": "Writer Agent",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 2,
      "position": [600, 300]
    },
    {
      "parameters": {
        "url": "http://127.0.0.1:7860/sdapi/v1/txt2img",
        "method": "POST",
        "jsonParameters": true,
        "bodyParametersJson": "{\n  \"prompt\": \"Minimal futuristic AI background, cinematic lighting\",\n  \"steps\": 20\n}"
      },
      "name": "Visual Agent",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 2,
      "position": [800, 300]
    },
    {
      "parameters": {
        "command": "ffmpeg -loop 1 -i image.png -i voice.wav -c:v libx264 -t 30 -pix_fmt yuv420p output.mp4"
      },
      "name": "Video Agent",
      "type": "n8n-nodes-base.executeCommand",
      "typeVersion": 1,
      "position": [1000, 300]
    },
    {
      "parameters": {
        "url": "https://api.bufferapp.com/1/updates/create.json",
        "method": "POST",
        "jsonParameters": true,
        "bodyParametersJson": "{\n  \"text\": \"{{$node['Writer Agent'].json['response']}}\",\n  \"profile_ids\": [\"INSTAGRAM_PROFILE_ID\"]\n}"
      },
      "name": "Scheduler Agent",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 2,
      "position": [1200, 300]
    },
    {
      "parameters": {
        "url": "http://localhost:11434/api/generate",
        "method": "POST",
        "jsonParameters": true,
        "bodyParametersJson": "{\n  \"model\": \"llama3\",\n  \"prompt\": \"Analyze engagement data and suggest improvements for next post.\"\n}"
      },
      "name": "Feedback Agent",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 2,
      "position": [1400, 300]
    }
  ],
  "connections": {
    "Daily Trigger": {
      "main": [[{ "node": "Research Agent", "type": "main", "index": 0 }]]
    },
    "Research Agent": {
      "main": [[{ "node": "Writer Agent", "type": "main", "index": 0 }]]
    },
    "Writer Agent": {
      "main": [[{ "node": "Visual Agent", "type": "main", "index": 0 }]]
    },
    "Visual Agent": {
      "main": [[{ "node": "Video Agent", "type": "main", "index": 0 }]]
    },
    "Video Agent": {
      "main": [[{ "node": "Scheduler Agent", "type": "main", "index": 0 }]]
    },
    "Scheduler Agent": {
      "main": [[{ "node": "Feedback Agent", "type": "main", "index": 0 }]]
    }
  }
}