{
  "name": "Generate visual diagrams and content assets from ideas with Claude and NapkinAI",
  "nodes": [
    {
      "id": "23c25b65-5d99-4ebd-9948-771109ec0ce4",
      "name": "Sticky Note - Overview",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -32,
        352
      ],
      "parameters": {
        "width": 760,
        "height": 1100,
        "content": "# 🎨 NapkinAI Visual Idea Processor\n\nAutomates the transformation of raw text ideas into structured visual diagrams and content assets using NapkinAI.\n\n## 🔄 Workflow Stages\n\n### 1. **Input Collection**"
      }
    },
    {
      "id": "949207a4-d9ae-4c69-bf43-0dac877f44ca",
      "name": "Sticky Note - Input",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        800,
        432
      ],
      "parameters": {
        "width": 644,
        "height": 832,
        "content": "## 📥 INPUT TRIGGERS\nWebhook or manual trigger to start idea processing pipeline"
      }
    },
    {
      "id": "1b07ce2e-9cca-405d-a78d-d036ba43bb99",
      "name": "Sticky Note - Enrichment",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1472,
        432
      ],
      "parameters": {
        "width": 680,
        "height": 816,
        "content": "## 🤖 AI ENRICHMENT (CLAUDE)\nExpand idea, extract structure, suggest diagram types, generate prompts for NapkinAI"
      }
    },
    {
      "id": "ddeb75dd-ea3e-4bca-b235-6e935a049824",
      "name": "Sticky Note - NapkinAI",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2192,
        432
      ],
      "parameters": {
        "width": 800,
        "height": 816,
        "content": "## 🖼️ NAPKINAI VISUAL GENERATION\nAuthenticate → Submit text → Poll status → Retrieve visual assets"
      }
    },
    {
      "id": "d85ea2bb-1656-4a12-aeb9-89f42988b013",
      "name": "Sticky Note - Delivery",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3024,
        432
      ],
      "parameters": {
        "width": 1196,
        "height": 816,
        "content": "## 📨 ASSET DELIVERY & LOGGING\nProcess assets, send notifications, log to database, deliver to team"
      }
    },
    {
      "id": "cf63e6ba-91f7-45d5-b125-2ab24a2ee5ec",
      "name": "Webhook - Receive Idea",
      "type": "n8n-nodes-base.webhook",
      "position": [
        1088,
        1056
      ]
    },
    {
      "id": "d20aa7b4-b4b7-4368-ab47-1d81dbe69d92",
      "name": "Manual Trigger - Test",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        864,
        864
      ]
    },
    {
      "id": "d9105729-f9f4-4d80-89a1-fa10a94e6c3b",
      "name": "Set Test Idea Data",
      "type": "n8n-nodes-base.set",
      "position": [
        1088,
        864
      ]
    },
    {
      "id": "6e98c0a0-c3e7-416a-baed-e0b5b57b9410",
      "name": "Merge Input Sources",
      "type": "n8n-nodes-base.merge",
      "position": [
        1312,
        960
      ]
    },
    {
      "id": "c089a60b-3499-412b-ad9b-9602f7a0fa38",
      "name": "Validate & Normalize Input",
      "type": "n8n-nodes-base.code",
      "position": [
        1536,
        960
      ]
    },
    {
      "id": "2e37c716-8657-4dd7-ba39-091fab3dff5d",
      "name": "AI - Enrich & Structure Idea",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1760,
        960
      ]
    },
    {
      "id": "f1bc0f02-b9d1-497c-823e-79b5d0ace99a",
      "name": "Parse Claude Enrichment",
      "type": "n8n-nodes-base.code",
      "position": [
        2224,
        960
      ]
    },
    {
      "id": "5a4ff79a-de79-452c-9188-b7e94c9e5c1c",
      "name": "NapkinAI - Authenticate",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2416,
        960
      ]
    },
    {
      "id": "5a733d85-d7c2-4c77-91f9-e9eeb4cc34f9",
      "name": "NapkinAI - Submit Idea for Visual",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2640,
        960
      ]
    },
    {
      "id": "b058695b-9eae-4c06-a0ab-83f4d6ea83f7",
      "name": "NapkinAI - Poll Generation Status",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2864,
        960
      ]
    },
    {
      "id": "33ad463b-ea93-43c7-9800-4f894ae4ab09",
      "name": "Check Job Completion",
      "type": "n8n-nodes-base.if",
      "position": [
        3088,
        880
      ]
    },
    {
      "id": "1e21e958-c193-44cf-9207-5de63b19018f",
      "name": "Wait 5s - Retry Poll",
      "type": "n8n-nodes-base.wait",
      "position": [
        3312,
        1056
      ]
    },
    {
      "id": "ff5ad3ed-f1be-4a94-8be7-b376b53d3180",
      "name": "NapkinAI - Retrieve Generated Assets",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        3312,
        816
      ]
    },
    {
      "id": "53fee705-076d-4a61-8622-53809ba0ce62",
      "name": "Assemble Full Output Package",
      "type": "n8n-nodes-base.code",
      "position": [
        3536,
        816
      ]
    },
    {
      "id": "cdaa0017-bd85-471b-ac56-4c84ecc79d45",
      "name": "Send Email - Visual Assets Delivery",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        3760,
        640
      ]
    },
    {
      "id": "c38f5e85-08c6-4d01-a0a3-95fb53e6fae6",
      "name": "Send Slack - Quick Notification",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        3760,
        832
      ]
    },
    {
      "id": "dbf5b473-12a9-435b-a74f-5bbdbec99981",
      "name": "Log to Database",
      "type": "n8n-nodes-base.postgres",
      "position": [
        3760,
        1024
      ]
    },
    {
      "id": "ac3e98e1-9562-4637-9eac-fca383fdae42",
      "name": "Mark Idea as Processed",
      "type": "n8n-nodes-base.code",
      "position": [
        3984,
        768
      ]
    },
    {
      "id": "898d005b-06e9-4509-8d40-7378283ef587",
      "name": "Wait For Data",
      "type": "n8n-nodes-base.wait",
      "position": [
        1968,
        960
      ]
    }
  ],
  "connections": {
    "Wait For Data": {
      "main": [
        [
          {
            "node": "Parse Claude Enrichment",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Log to Database": {
      "main": [
        [
          {
            "node": "Mark Idea as Processed",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Test Idea Data": {
      "main": [
        [
          {
            "node": "Merge Input Sources",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Merge Input Sources": {
      "main": [
        [
          {
            "node": "Validate & Normalize Input",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Job Completion": {
      "main": [
        [
          {
            "node": "NapkinAI - Retrieve Generated Assets",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait 5s - Retry Poll",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait 5s - Retry Poll": {
      "main": [
        [
          {
            "node": "NapkinAI - Poll Generation Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Manual Trigger - Test": {
      "main": [
        [
          {
            "node": "Set Test Idea Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Webhook - Receive Idea": {
      "main": [
        [
          {
            "node": "Merge Input Sources",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "NapkinAI - Authenticate": {
      "main": [
        [
          {
            "node": "NapkinAI - Submit Idea for Visual",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse Claude Enrichment": {
      "main": [
        [
          {
            "node": "NapkinAI - Authenticate",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Validate & Normalize Input": {
      "main": [
        [
          {
            "node": "AI - Enrich & Structure Idea",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI - Enrich & Structure Idea": {
      "main": [
        [
          {
            "node": "Wait For Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Assemble Full Output Package": {
      "main": [
        [
          {
            "node": "Send Email - Visual Assets Delivery",
            "type": "main",
            "index": 0
          },
          {
            "node": "Send Slack - Quick Notification",
            "type": "main",
            "index": 0
          },
          {
            "node": "Log to Database",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Slack - Quick Notification": {
      "main": [
        [
          {
            "node": "Mark Idea as Processed",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "NapkinAI - Poll Generation Status": {
      "main": [
        [
          {
            "node": "Check Job Completion",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "NapkinAI - Submit Idea for Visual": {
      "main": [
        [
          {
            "node": "NapkinAI - Poll Generation Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Email - Visual Assets Delivery": {
      "main": [
        [
          {
            "node": "Mark Idea as Processed",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "NapkinAI - Retrieve Generated Assets": {
      "main": [
        [
          {
            "node": "Assemble Full Output Package",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}