{
  "name": "RE/UGC reaction clip finder (AI agent + MCP)",
  "nodes": [
    {
      "parameters": {
        "public": false,
        "options": { "title": "RE/UGC clip finder", "subtitle": "Describe your ad and get matching reaction clips" }
      },
      "id": "5c1f6d0e-1a2b-4c3d-8e9f-000000000001",
      "name": "When chat message received",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "typeVersion": 1.1,
      "position": [0, 0],
      "webhookId": "5c1f6d0e-1a2b-4c3d-8e9f-0000000000aa"
    },
    {
      "parameters": {
        "options": {
          "systemMessage": "You help marketers pick RE/UGC AI reaction clips for short vertical video hooks. Use the RE/UGC tools: list_categories, then search_clips with a category and duration that fit the brief. Reply with 3-5 options (title, creator, duration, preview link). Only call unlock_clip after the user explicitly confirms spending 1 credit. Use get_download_link for clips the account owns and say the link expires in 5 minutes."
        }
      },
      "id": "5c1f6d0e-1a2b-4c3d-8e9f-000000000002",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "typeVersion": 2,
      "position": [260, 0]
    },
    {
      "parameters": {
        "model": { "__rl": true, "mode": "id", "value": "claude-sonnet-5-5" },
        "options": {}
      },
      "id": "5c1f6d0e-1a2b-4c3d-8e9f-000000000003",
      "name": "Anthropic Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
      "typeVersion": 1.3,
      "position": [120, 220]
    },
    {
      "parameters": { "contextWindowLength": 10 },
      "id": "5c1f6d0e-1a2b-4c3d-8e9f-000000000004",
      "name": "Simple Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "typeVersion": 1.3,
      "position": [280, 220]
    },
    {
      "parameters": {
        "endpointUrl": "https://reugc.com/mcp",
        "serverTransport": "httpStreamable",
        "authentication": "bearerAuth",
        "include": "all",
        "options": { "timeout": 60000 }
      },
      "id": "5c1f6d0e-1a2b-4c3d-8e9f-000000000005",
      "name": "RE/UGC MCP",
      "type": "@n8n/n8n-nodes-langchain.mcpClientTool",
      "typeVersion": 1.2,
      "position": [440, 220]
    },
    {
      "parameters": {
        "content": "## RE/UGC reaction clip finder\n\nChat with an AI agent that searches your RE/UGC reaction library, shows previews and fetches download links for clips you own.\n\n### Setup\n1. In RE/UGC, open **Dashboard → AI agents** and create an API key.\n2. Open **RE/UGC MCP** and create a **Bearer Auth** credential with that key (or switch Authentication to **MCP OAuth2** and sign in).\n3. Add your Anthropic (or any chat model) credential.\n4. Open the chat and describe your ad, for example: *\"Shocked reaction under 4 seconds for a budgeting app\"*.\n\nDocs: https://reugc.com/agents",
        "height": 380,
        "width": 420
      },
      "id": "5c1f6d0e-1a2b-4c3d-8e9f-000000000006",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [-480, -80]
    }
  ],
  "connections": {
    "When chat message received": { "main": [[{ "node": "AI Agent", "type": "main", "index": 0 }]] },
    "Anthropic Chat Model": { "ai_languageModel": [[{ "node": "AI Agent", "type": "ai_languageModel", "index": 0 }]] },
    "Simple Memory": { "ai_memory": [[{ "node": "AI Agent", "type": "ai_memory", "index": 0 }]] },
    "RE/UGC MCP": { "ai_tool": [[{ "node": "AI Agent", "type": "ai_tool", "index": 0 }]] }
  },
  "settings": { "executionOrder": "v1" },
  "meta": { "templateCredsSetupCompleted": false },
  "pinData": {}
}
