8
n8n 中文网amn8n.com

使用 Telegram 和 OpenAI 模型获取 DONKI NASA 数据库

高级

这是一个AI, Marketing领域的自动化工作流,包含 19 个节点。主要使用 NasaTool, Telegram, Agent, TelegramTrigger, LmChatOpenAi 等节点,结合人工智能技术实现智能自动化。 使用GPT-4o-mini和Telegram获取NASA空间天气与小行星数据

前置要求
  • Telegram Bot Token
  • OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "ajhY7gYXVvl9lpY1",
  "meta": {
    "instanceId": "49e4b42f048a0ef659724de20d93b17de3cd3dd1523977e02ce8e4422a5a6aaf",
    "templateCredsSetupCompleted": true
  },
  "name": "使用 Telegram 和 OpenAI 模型获取 DONKI NASA 数据库",
  "tags": [],
  "nodes": [
    {
      "id": "481f7766-d9d2-47ff-a9dd-5079b013e13a",
      "name": "小行星近地天体浏览",
      "type": "n8n-nodes-base.nasaTool",
      "position": [
        -100,
        600
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "863f3fb6-9d84-43b8-aca3-e0ed5921f997",
      "name": "小行星近地天体动态",
      "type": "n8n-nodes-base.nasaTool",
      "position": [
        -300,
        800
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "b009714b-814d-4451-a5da-a78d65631586",
      "name": "DONKI 高速流",
      "type": "n8n-nodes-base.nasaTool",
      "position": [
        -100,
        780
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "c9a84d18-da90-4bb6-b577-02a0aed1258f",
      "name": "DONKI 行星际激波",
      "type": "n8n-nodes-base.nasaTool",
      "position": [
        80,
        400
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "712cac73-8183-4bb4-907b-a55b53a39e21",
      "name": "DONKI 磁层顶穿越",
      "type": "n8n-nodes-base.nasaTool",
      "position": [
        100,
        780
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "4d18d59d-6b78-454f-8b82-4098b19ffa1d",
      "name": "DONKI 通知",
      "type": "n8n-nodes-base.nasaTool",
      "position": [
        -280,
        400
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "d304256e-c488-493e-a2a7-1a20f87232bc",
      "name": "DONKI 辐射带增强",
      "type": "n8n-nodes-base.nasaTool",
      "position": [
        -100,
        400
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "333630c7-ba60-4758-80c8-3ff19068014a",
      "name": "DONKI 太阳高能粒子",
      "type": "n8n-nodes-base.nasaTool",
      "position": [
        -300,
        600
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "895f15fd-b514-466a-b101-7f0b221eb54a",
      "name": "DONKI 太阳耀斑",
      "type": "n8n-nodes-base.nasaTool",
      "position": [
        100,
        600
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "c273fac8-68a8-43de-9a82-6a18b24824bb",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -260,
        60
      ],
      "parameters": {},
      "typeVersion": 1.9
    },
    {
      "id": "da0ae3ee-c0b2-497c-b518-ed566b109350",
      "name": "OpenAI 聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -580,
        500
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "0d876102-a228-44aa-8998-e25951b9f8ea",
      "name": "开始",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        -540,
        60
      ],
      "webhookId": "bef0fd79-eefe-4c9f-b3dd-9657b7fa6ef7",
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "1e7dcb3c-7b39-48b2-b900-25f2902e3abf",
      "name": "已完成",
      "type": "n8n-nodes-base.telegram",
      "position": [
        120,
        60
      ],
      "webhookId": "64e2667e-b1c4-4a45-a205-6d261d9e7cf7",
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "18ac50c6-175e-4368-b5fb-27c70e5bbda4",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -400,
        240
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "9ad7b05f-d642-402b-8f2e-48edbc8e5ae4",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -640,
        240
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "a183bbec-5e8b-4428-be09-4bce03479fc6",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -640,
        -120
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "6d225cce-a372-4154-95f8-f74bc55079c1",
      "name": "便签4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        60,
        -120
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "b60eba29-48ec-4cc1-af90-68442c1d569d",
      "name": "便利贴5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -320,
        -120
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "8d1fe154-22a5-4378-a459-9b3bd696826e",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -960,
        -120
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "2df33674-9184-45f0-9d23-d6d857cd22bc",
  "connections": {
    "Start": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "Finished",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Finished": {
      "main": [
        []
      ]
    },
    "Asteroid Neo-Feed": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "DONKI Solar Flare": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "DONKI Notification": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Asteroid Neo-Browse": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "DONKI High Speed Stream": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "DONKI Interplanetary Shock": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "DONKI Magnetopause Crossing": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "DONKI Solar Energetic Particle": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "DONKI Radiation Belt Enhancement": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

高级 - 人工智能, 营销

需要付费吗?

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

工作流信息
难度等级
高级
节点数量19
分类2
节点类型6
难度说明

适合高级用户,包含 16+ 个节点的复杂工作流

外部链接
在 n8n.io 查看

分享此工作流