{
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "49d802f8-848d-4788-a7ad-3f16237d4a00",
      "name": "When chat message received",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        -1008,
        1360
      ],
      "parameters": {
        "public": true,
        "options": {
          "responseMode": "streaming",
          "allowedOrigins": "*"
        }
      },
      "typeVersion": 1.4
    },
    {
      "id": "a91583fc-397c-47f6-b8cb-e66ce475df45",
      "name": "Simple Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        -656,
        1584
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "9c931546-8c37-4f74-bd6c-1c223ad31e4c",
      "name": "CoinGecko Free MCP",
      "type": "@n8n/n8n-nodes-langchain.mcpClientTool",
      "position": [
        -528,
        1584
      ],
      "parameters": {
        "options": {},
        "endpointUrl": "https://mcp.api.coingecko.com/mcp"
      },
      "typeVersion": 1.2
    },
    {
      "id": "180d6130-17d4-48c3-bc88-5606ba862161",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1392,
        1536
      ],
      "parameters": {
        "width": 480,
        "height": 1040,
        "content": "### Step 1: Enable Chat\n\n1. In n8n, open the Chat node in your workflow.\n\n2. Make Chat Publicly available.\n\n3. Copy the Chat URL. You will need it in the next step.\n\n\n### Step 2: Setup Thesys\n\n![](https://www.thesys.dev/n8n/n8n-step-2.png)\n\n1. [Go to Thesys Console and log in](https://console.thesys.dev/keys)\n\n2. Generate a new API key and copy it somewhere safe.\n\n3. In n8n, open the Model node in your workflow.\n\n4. In the Credentials section, click Create New to add a new credential.\n\n5. Paste your Thesys API key into the API Key field.\n\n6. Update the Base URL to - https://api.thesys.dev/v1/embed and save the credential.\n\n7. Back in the Model section of the node, select the model you want to use\n(for example: c1/openai/gpt-5/v20251230) and save the node."
      },
      "typeVersion": 1
    },
    {
      "id": "d17a0b15-aaa0-4c2c-a723-f48818f1de8f",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -400,
        544
      ],
      "parameters": {
        "width": 1136,
        "height": 656,
        "content": "![](https://www.thesys.dev/n8n/n8n-compare.png)"
      },
      "typeVersion": 1
    },
    {
      "id": "d9c2ca8b-b489-40d0-a38e-582ac21e69ec",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1360,
        -384
      ],
      "parameters": {
        "width": 928,
        "height": 1584,
        "content": "## Analyze crypto markets with interactive graphs using CoinGecko and C1 by Thesys\n\nThis n8n template   can answer questions about **real-time prices, market moves, trending coins, and token details** with **interactive UI in real time** (cards, charts, buttons) instead of plain text using C1 by Thesys. Data is fetched through the **CoinGecko Free MCP tool**.\n\n### [Check out a working demo of this template here](https://www.thesys.dev/n8n?url=https://www.thesys.dev/n8n?url=https%3A%2F%2Fasd2224.app.n8n.cloud%2Fwebhook%2F51638b0c-7765-4fa8-9b95-a0422128e203%2Fchat).\n\n### What this workflow does\n1. A user sends a message in the **n8n Chat** UI (public chat trigger).\n2. The **AI Agent** interprets the request.\n3. The agent calls **CoinGecko Free MCP** to fetch market data (prices, coins, trending, etc.).\n4. The model responds through **C1 by Thesys** with a **streaming, UI** answer.\n\n### Example prompts you can try right away\nCopy/paste any of these into the chat:\n\n- \u201cWhat\u2019s the current price of Bitcoin and Ethereum?\u201d\n- \u201cGive me today\u2019s market summary: total market cap, BTC dominance, top gainers/losers.\u201d\n- \u201cCompare ETH vs SOL over 30 days with a chart.\u201d\n\n> Note: This template is for information and visualization, not financial advice.\n\n\n### How it works\n\n1. User sends a prompt\n2. C1 model based on prompt will use CoinGecko MCP to fetch live data\n3. C1 Model generates a UI Schema Response\n4. Schema is rendered as UI using Thesys GenUI SDK on the frontend\n\n\n### Setup \n\nMake sure you have the following:\n\n#### 1\ufe0f\u20e3  Thesys API Key\nYou\u2019ll need an API key to authenticate and use Thesys services.\n\n\ud83d\udc49 Get your key [here](https://console.thesys.dev/keys)  \n\n### What is C1 by Thesys?\nC1 by [Thesys](https://www.thesys.dev/)  is an API middleware that augments LLMs to respond with **interactive UI (charts, buttons, forms)** in real time instead of text.\n\n### Video Tutorial\n\n@[youtube](0rtdVfjKJ-M)\n\n### Facing setup issues?\n#### If you get stuck or have questions:\n\n- #### \ud83d\udcac Join the [Thesys Community](https://discord.com/invite/Pbv5PsqUSv)  \n- #### \ud83d\udce7 Email support:  support@thesys.dev\n"
      },
      "typeVersion": 1
    },
    {
      "id": "e57826e7-4cd0-481f-a13c-0067c0c0f55f",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -320,
        1264
      ],
      "parameters": {
        "color": 5,
        "width": 448,
        "height": 400,
        "content": "\n### Step 2: Activate the Workflow\n\n1. At the top of the n8n editor, click the Active / Inactive toggle.\n\n2. Confirm the workflow status is set to Active.\n\n\n### Step 3: Try It Out\n\n1. Open [Thesys N8N page](https://www.thesys.dev/n8n)\n\n2. Paste your Chat URL into the input box.\n\n3. Send a test message to confirm everything is working."
      },
      "typeVersion": 1
    },
    {
      "id": "8cb3d649-f60d-4e3d-8852-fc05ded19273",
      "name": "UI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -736,
        1360
      ],
      "parameters": {
        "options": {
          "systemMessage": "You are a crypto copilot",
          "enableStreaming": true
        }
      },
      "typeVersion": 3
    },
    {
      "id": "2bd8b38c-dff3-408c-ab02-92d8c7cea7e9",
      "name": "C1 Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "notes": "ZZZ",
      "position": [
        -832,
        1584
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "c1/openai/gpt-5/v-20250930",
          "cachedResultName": "c1/openai/gpt-5/v-20250930"
        },
        "options": {},
        "responsesApiEnabled": false
      },
      "credentials": {
        "openAiApi": {
          "name": "<your credential>"
        }
      },
      "notesInFlow": false,
      "typeVersion": 1.3
    },
    {
      "id": "3b21b5df-1510-4d7a-bcad-bb0c37270334",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -880,
        1264
      ],
      "parameters": {
        "color": 7,
        "width": 528,
        "height": 480,
        "content": "## UI Agent\nThis agent can reason, use tools and returns results as interactive UI"
      },
      "typeVersion": 1
    }
  ],
  "connections": {
    "C1 Model": {
      "ai_languageModel": [
        [
          {
            "node": "UI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "UI Agent": {
      "main": [
        []
      ]
    },
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "UI Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "CoinGecko Free MCP": {
      "ai_tool": [
        [
          {
            "node": "UI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "When chat message received": {
      "main": [
        [
          {
            "node": "UI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}