{
  "name": "AI Agent-in-a-Box — Content Engine",
  "nodes": [
    {
      "parameters": {},
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [0, 0],
      "id": "trigger-1",
      "name": "When I click test"
    },
    {
      "parameters": {
        "values": {
          "string": [
            {"name": "topic", "value": "AI agents for solopreneurs"},
            {"name": "audience", "value": "one-person business owners"},
            {"name": "platforms", "value": "X, LinkedIn, email"}
          ]
        }
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3,
      "position": [220, 0],
      "id": "set-inputs-1",
      "name": "Set Content Inputs"
    },
    {
      "parameters": {
        "jsCode": "// Replace this Code node with your AI node (OpenAI, Anthropic, etc.)\n// Input: topic, audience, platforms\n// Output: 7-day calendar + drafts\nconst { topic, audience, platforms } = $input.first().json;\nreturn [{\n  json: {\n    topic,\n    audience,\n    platforms,\n    prompt: `Write a 7-day content calendar about ${topic} for ${audience}. Platforms: ${platforms}.`,\n    note: 'Connect your AI credentials here to generate real output.'\n  }\n}];"
      },
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [440, 0],
      "id": "ai-generator-1",
      "name": "AI Content Generator"
    },
    {
      "parameters": {
        "jsCode": "// Output the calendar to your dashboard, Sheets, or scheduler\nreturn $input.all();"
      },
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [660, 0],
      "id": "publish-1",
      "name": "Save / Schedule Output"
    }
  ],
  "connections": {
    "When I click test": {
      "main": [[{"node": "Set Content Inputs", "type": "main", "index": 0}]]
    },
    "Set Content Inputs": {
      "main": [[{"node": "AI Content Generator", "type": "main", "index": 0}]]
    },
    "AI Content Generator": {
      "main": [[{"node": "Save / Schedule Output", "type": "main", "index": 0}]]
    }
  },
  "settings": {"executionOrder": "v1"},
  "staticData": null,
  "tags": ["ai-agent-in-a-box", "content"]
}
