8
n8n 中文网amn8n.com

通过Telegram的OpenSea AI驱动洞察

中级

这是一个自动化工作流,包含 13 个节点。主要使用 Set, Telegram, Agent, TelegramTrigger, ChatTrigger 等节点。 通过Telegram使用OpenSea和AI获取实时NFT洞察(主界面)

前置要求
  • Telegram Bot Token
  • OpenAI API Key

分类

-
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "wi2ZWKN9XPR0jkvn",
  "meta": {
    "instanceId": "a5283507e1917a33cc3ae615b2e7d5ad2c1e50955e6f831272ddd5ab816f3fb6",
    "templateCredsSetupCompleted": true
  },
  "name": "通过 Telegram 的 OpenSea AI 驱动洞察",
  "tags": [],
  "nodes": [
    {
      "id": "0b6ec133-7023-4c6a-ae53-78168211545c",
      "name": "当收到聊天消息时",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        840,
        140
      ],
      "webhookId": "befa3e52-7b57-4832-9f88-b2c430244595",
      "parameters": {
        "options": {}
      },
      "typeVersion": 1.1
    },
    {
      "id": "787a9e8d-e67d-4947-90d1-8e3284de7b39",
      "name": "Telegram 触发器",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        840,
        -160
      ],
      "webhookId": "f9267d32-3860-4f02-99b3-493c4cac36ed",
      "parameters": {
        "updates": [
          "message"
        ],
        "additionalFields": {}
      },
      "credentials": {
        "telegramApi": {
          "id": "R3vpGq0SURbvEw2Z",
          "name": "Telegram account"
        }
      },
      "typeVersion": 1.1
    },
    {
      "id": "2e10802a-48d7-4b82-afe0-b9e5f93498bf",
      "name": "添加 SessionId",
      "type": "n8n-nodes-base.set",
      "position": [
        1160,
        -160
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "b5c25cd4-226b-4778-863f-79b13b4a5202",
              "name": "sessionId",
              "type": "string",
              "value": "={{ $json.message.chat.id }}"
            }
          ]
        },
        "includeOtherFields": true
      },
      "typeVersion": 3.4
    },
    {
      "id": "8dd2dcdd-7cd5-4381-b1a5-66a2b6a69111",
      "name": "OpenSea 监督大脑",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1380,
        160
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4o-mini"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "yUizd8t0sD5wMYVG",
          "name": "OpenAi account"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "b2b59481-afbb-4cb6-98b7-c26bf51ead76",
      "name": "OpenSea 监督内存",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        1580,
        160
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "52dde53b-cb42-4ae2-b573-d9356d7ec3f3",
      "name": "OpenSea 分析代理工具",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        1760,
        160
      ],
      "parameters": {
        "name": "OpenSea_Analytics_Agent_Tool",
        "workflowId": {
          "__rl": true,
          "mode": "list",
          "value": "yRMCUm6oJEMknhbw",
          "cachedResultName": "JayaFamily Assistant — OpenSea Analytics Agent Tool"
        },
        "workflowInputs": {
          "value": {
            "message": "={{ $fromAI(\"message\",\"Populate this with a relevant message to this subagent\")}}",
            "sessionId": "={{ $json.sessionId }}"
          },
          "schema": [
            {
              "id": "message",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "message",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "sessionId",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "sessionId",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            }
          ],
          "mappingMode": "defineBelow",
          "matchingColumns": [],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        }
      },
      "typeVersion": 2
    },
    {
      "id": "596517b1-4f1e-4285-b8ee-cdf8108c4138",
      "name": "OpenSea NFT 代理工具",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        1940,
        160
      ],
      "parameters": {
        "name": "OpenSea_NFT_Agent_Tool",
        "workflowId": {
          "__rl": true,
          "mode": "list",
          "value": "ZBH1ExE58wsoodkZ",
          "cachedResultName": "JayaFamily Assistant — OpenSea NFT Agent Tool"
        },
        "workflowInputs": {
          "value": {
            "message": "={{ $fromAI(\"message\",\"Populate this with a relevant message to this subagent\")}}",
            "sessionId": "={{ $json.sessionId }}"
          },
          "schema": [
            {
              "id": "message",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "message",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "sessionId",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "sessionId",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            }
          ],
          "mappingMode": "defineBelow",
          "matchingColumns": [],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        }
      },
      "typeVersion": 2
    },
    {
      "id": "643c5c81-ba21-4afa-9c78-70cd6cde08f7",
      "name": "OpenSea 市场代理工具",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        2120,
        160
      ],
      "parameters": {
        "name": "OpenSea_Marketplace_Agent_Tool",
        "workflowId": {
          "__rl": true,
          "mode": "list",
          "value": "brRSLvIkYp3mLq0K",
          "cachedResultName": "JayaFamily Assistant — OpenSea Marketplace Agent Tool"
        },
        "workflowInputs": {
          "value": {
            "message": "={{ $fromAI(\"message\",\"Populate this with a relevant message to this subagent\")}}",
            "sessionId": "={{ $json.sessionId }}"
          },
          "schema": [
            {
              "id": "message",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "message",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "sessionId",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "sessionId",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            }
          ],
          "mappingMode": "defineBelow",
          "matchingColumns": [],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        }
      },
      "typeVersion": 2
    },
    {
      "id": "069cb9bc-96a4-4539-b7c5-b06d29968ec6",
      "name": "Telegram",
      "type": "n8n-nodes-base.telegram",
      "position": [
        2080,
        -120
      ],
      "webhookId": "9841771a-821a-4a40-a9e8-fb8a29eaa9f3",
      "parameters": {
        "text": "={{ $json.output }}",
        "chatId": "={{ $('Telegram Trigger').item.json.message.chat.id }}",
        "additionalFields": {
          "appendAttribution": false
        }
      },
      "credentials": {
        "telegramApi": {
          "id": "R3vpGq0SURbvEw2Z",
          "name": "Telegram account"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "cc852b55-0214-4276-9c2f-755d9cb3fc28",
      "name": "OpenSea AI 驱动洞察代理",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1600,
        -120
      ],
      "parameters": {
        "text": "={{ $json.message.text }}",
        "options": {
          "systemMessage": "**🌍 Role & Capabilities**  \nThe **OpenSea AI-Powered Insights Agent** is an advanced **AI data analyst** with **full access to OpenSea’s API**, capable of executing **multi-step queries, data aggregation, and deep research** into NFT market trends, asset tracking, and real-time trading insights.  \n\nIt leverages **three powerful agent tools** to provide **actionable insights and decision-making intelligence**:  \n1. **Marketplace Agent** – Fetches **listings, orders, offers, and trait-based pricing data**.  \n2. **Analytics Agent** – Retrieves **NFT collection statistics, transaction histories, and market analytics**.  \n3. **NFT Agent** – Gathers **detailed metadata, ownership details, and payment token data**.  \n\n🧠 **This AI system can process multiple tools together, conduct research between datasets, and synthesize powerful responses to user queries.**  \n\n---\n\n## **🛠 Actionable Insights & Multi-Step Queries**\nThe agent can **combine** multiple tools, process collected data, and execute deep research for **smarter responses**.  \n\n🔹 **How this works**:\n- 🏛 **Compare multiple collections** _(e.g., floor price, sales volume)_  \n- 🎯 **Track NFT flipping trends** _(e.g., which wallets buy/sell the most)_  \n- 🔥 **Identify undervalued NFTs** _(e.g., listings below average trait value)_  \n- 📊 **Aggregate sales data over time** _(e.g., 7-day vs. 30-day collection trends)_  \n- 👥 **Analyze whale movements** _(e.g., track large NFT purchases)_  \n- 💡 **Predict market shifts** _(e.g., sudden spikes in buy offers)_  \n\n📢 **Example Action Queries:**  \n- _“Find me the top 5 most undervalued Azuki NFTs based on recent sales.”_  \n- _“Compare the last 3 months of trading volume between Moonbirds and CloneX.”_  \n- _“Track all wallets that recently sold a Bored Ape Yacht Club NFT.”_  \n- _“List the top 10 wallets making the most NFT purchases this week.”_  \n\n---\n\n## **🚀 Available Tools & Proper Usage**  \n\n### **1️⃣ Marketplace Agent Tools (Orders, Listings, and Offers)**\nProvides **real-time marketplace data** for **NFTs, collections, and traits**.  \n\n🔹 **How to use these tools correctly**:\n- Always input **a valid OpenSea collection slug** (found in OpenSea URLs).  \n- Ensure **blockchain names** match OpenSea’s supported chains.  \n- Use **pagination (`next` cursor)** for large datasets.  \n\n| **Tool**                        | **Description** |\n|----------------------------------|----------------|\n| 🛒 **Get All Listings (by Collection)**  | Fetches all active listings for a collection. |\n| 💰 **Get All Offers (by Collection)**  | Retrieves all valid offers for a collection. |\n| 🔎 **Get Best Listing (by NFT)**  | Finds the **cheapest** active listing for a specific NFT. |\n| 🏆 **Get Best Listings (by Collection)** | Retrieves the **cheapest** active listings for an entire collection. |\n| 💲 **Get Best Offer (by NFT)** | Finds the **highest** offer for a specific NFT. |\n| 🏷 **Get Collection Offers** | Retrieves all active **collection-wide** offers. |\n| 🎯 **Get Item Offers** | Fetches **individual** offers, excluding criteria-based offers. |\n| 📋 **Get Listings (by Chain & Protocol)** | Lists all active orders filtered by blockchain and protocol. |\n| 🔗 **Get Order (by Hash)** | Retrieves details for a **specific order** using its hash. |\n| 🎨 **Get Trait Offers** | Retrieves **all trait-based offers** in a collection. |\n\n✅ **Critical Notes for Marketplace Queries**:\n1. **Only use OpenSea’s supported chains** _(see the full list below)_.  \n2. `\"polygon\"` is **not allowed** – use `\"matic\"` instead.  \n3. **Seaport is the only supported protocol** for order-related queries.  \n4. **Fixed protocol address** for Get Order:  \n   - `0x0000000000000068f116a894984e2db1123eb395`  \n5. **Pagination**: Use `next` parameter for large datasets.  \n\n---\n\n### **2️⃣ Analytics Agent Tools (Market Insights & Transactions)**\nDelivers **historical and real-time analysis** on NFT collections, user transactions, and blockchain events.  \n\n🔹 **How to use these tools correctly**:\n- Always specify **a valid collection slug** or **wallet address**.  \n- Filter transactions by **blockchain, event type, and timeframe**.  \n- Use **pagination** when fetching large datasets.  \n\n| **Tool**                          | **Description** |\n|------------------------------------|----------------|\n| 📊 **Get Collection Stats** | Fetches **market cap, floor price, total volume, and sales** of an NFT collection. |\n| 🏷 **Get Events (All Market Activity)** | Retrieves **all NFT events** including sales, transfers, listings, bids, and redemptions. |\n| 👤 **Get Events (by Account)** | Lists **all NFT-related transactions** for a specific **wallet address**. |\n| 🏛 **Get Events (by Collection)** | Fetches all transactions for **an entire NFT collection**. |\n| 🎟 **Get Events (by NFT)** | Retrieves the **full transaction history** of a single NFT. |\n\n✅ **Critical Notes for Analytics Queries**:\n1. Use **valid blockchain names** _(see list below)_ to filter results.  \n2. Set **event types**: _sale, transfer, listing, bid, redemption_.  \n3. Use `before` and `after` timestamps _(Unix format)_ to filter historical data.  \n4. **Pagination**: Use `next` for large datasets.  \n\n---\n\n### **3️⃣ NFT Agent Tools (Metadata, Ownership, and Smart Contracts)**\nProvides **in-depth details** about individual NFTs, collections, and payment tokens.  \n\n🔹 **How to use these tools correctly**:\n- Ensure **wallet addresses and contract addresses** are **valid**.  \n- For **NFT metadata**, provide **blockchain name + contract address + token ID**.  \n\n| **Tool**                        | **Description** |\n|----------------------------------|----------------|\n| 🔍 **Get Account** | Fetches **profile details** of an OpenSea user. |\n| 🏛 **Get Collection** | Retrieves **metadata, fees, and social links** of an NFT collection. |\n| 📜 **Get Collections** | Lists **all NFT collections** with optional filters (creator, blockchain, etc.). |\n| 🏗 **Get Contract** | Retrieves **smart contract details** for an NFT collection. |\n| 🎭 **Get NFT** | Fetches **metadata, traits, rarity, and ownership** of a single NFT. |\n| 👥 **Get NFTs (by Account)** | Lists **all NFTs owned** by a given wallet address. |\n| 📦 **Get NFTs (by Collection)** | Retrieves **multiple NFTs** from a specific collection. |\n| 🔗 **Get NFTs (by Contract)** | Lists all NFTs for a **given smart contract**. |\n| 💵 **Get Payment Token** | Retrieves **details about an ERC-20 payment token**. |\n| 🎨 **Get Traits** | Lists **all available traits** in a collection. |\n\n✅ **Critical Notes for NFT Queries**:\n1. **Use correct blockchain names** _(see full list below)_.  \n2. **Contract addresses** must be **valid** and exist on OpenSea.  \n3. **NFT Token ID is required** for fetching metadata.  \n4. **For payment tokens, ensure the correct blockchain name is used.**  \n\n---\n\n## **🚀 Supported Blockchains**\nTo avoid errors, **only use the following blockchain names**:\n\n✅ **Valid Chains for OpenSea Queries**:\n- `amoy`\n- `ape_chain`\n- `ape_curtis`\n- `arbitrum`\n- `arbitrum_nova`\n- `arbitrum_sepolia`\n- `avalanche`\n- `avalanche_fuji`\n- `b3`\n- `b3_sepolia`\n- `baobab`\n- `base`\n- `base_sepolia`\n- `bera_chain`\n- `blast`\n- `blast_sepolia`\n- `ethereum`\n- `flow`\n- `flow_testnet`\n- `klaytn`\n- `matic` _(use instead of \"polygon\")_\n- `monad_testnet`\n- `mumbai`\n- `optimism`\n- `optimism_sepolia`\n- `sei_testnet`\n- `sepolia`\n- `shape`\n- `solana`\n- `soldev`\n- `soneium`\n- `soneium_minato`\n- `unichain`\n- `zora`\n- `zora_sepolia`\n\n❌ **Do NOT use unsupported chain names!**  \n\n---\n\n## **🛠 How the AI Agent Works**\n1. **Understands your query** and determines the correct API tool.  \n2. **Executes the API request** with valid parameters.  \n3. **Processes and structures results** into **readable insights**.  \n4. **Combines multiple data sources** for research-driven responses.  \n5. **Allows follow-up questions** for deeper market insights.  \n\n🎯 **Use this AI for market intelligence, trend analysis, and NFT investment strategies!** 🚀"
        },
        "promptType": "define"
      },
      "typeVersion": 1.8
    },
    {
      "id": "087fad83-0a96-42f6-92b1-06685bfc13f4",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -940,
        -1380
      ],
      "parameters": {
        "color": 2,
        "width": 1320,
        "height": 1780,
        "content": "# OpenSea AI 驱动洞察系统 (n8n) - 完整集成指南"
      },
      "typeVersion": 1
    },
    {
      "id": "c9dd93eb-44bc-4825-a092-8a8b8e3b07bb",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        660,
        -1380
      ],
      "parameters": {
        "color": 5,
        "width": 840,
        "height": 1060,
        "content": "## 🔄 **数据流与执行过程**"
      },
      "typeVersion": 1
    },
    {
      "id": "5f8504a0-283a-408e-9768-b4b90088e687",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1800,
        -1380
      ],
      "parameters": {
        "color": 3,
        "width": 800,
        "height": 720,
        "content": "## ⚠️ **关键设置说明与故障排除**"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "184b0a31-6aee-4b9b-adc5-ef06e6a3f3f0",
  "connections": {
    "Adds SessionId": {
      "main": [
        [
          {
            "node": "OpenSea AI-Powered Insights Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Telegram Trigger": {
      "main": [
        [
          {
            "node": "Adds SessionId",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenSea NFT Agent Tool": {
      "ai_tool": [
        [
          {
            "node": "OpenSea AI-Powered Insights Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Opensea Supervisor Brain": {
      "ai_languageModel": [
        [
          {
            "node": "OpenSea AI-Powered Insights Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Opensea Supervisor Memory": {
      "ai_memory": [
        [
          {
            "node": "OpenSea AI-Powered Insights Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "When chat message received": {
      "main": [
        [
          {
            "node": "OpenSea AI-Powered Insights Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenSea Analytics Agent Tool": {
      "ai_tool": [
        [
          {
            "node": "OpenSea AI-Powered Insights Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "OpenSea Marketplace Agent Tool": {
      "ai_tool": [
        [
          {
            "node": "OpenSea AI-Powered Insights Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "OpenSea AI-Powered Insights Agent": {
      "main": [
        [
          {
            "node": "Telegram",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。

这个工作流适合什么场景?

中级

需要付费吗?

本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。

工作流信息
难度等级
中级
节点数量13
分类-
节点类型9
难度说明

适合有一定经验的用户,包含 6-15 个节点的中等复杂度工作流

作者
Don Jayamaha Jr

Don Jayamaha Jr

@don-the-gem-dealer

With 12 years of experience as a Blockchain Strategist and Web3 Architect, I specialize in bridging the gap between traditional industries and decentralized technologies. My expertise spans tokenized assets, crypto payment integrations, and blockchain-driven market solutions.

外部链接
在 n8n.io 查看

分享此工作流