8
n8n 中文网amn8n.com

使用Bitly与Ollama聊天模型和Open Chat

中级

这是一个AI, Marketing领域的自动化工作流,包含 9 个节点。主要使用 BitlyTool, Agent, ChatTrigger, LmChatOllama 等节点,结合人工智能技术实现智能自动化。 使用Llama3聊天界面自动化Bitly网址缩短

前置要求
  • AI 服务 API Key(如 OpenAI、Anthropic 等)
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "djEQhBoL2sh0ojdA",
  "meta": {
    "instanceId": "54985dca90e764ba04ed8f61efe057163f128af85943567c62c5761f48d1c878",
    "templateCredsSetupCompleted": true
  },
  "name": "使用 Bitly 与 Ollama 聊天模型和 Open Chat",
  "tags": [],
  "nodes": [
    {
      "id": "9376c577-706a-4e37-808a-30c800120f1a",
      "name": "创建链接",
      "type": "n8n-nodes-base.bitlyTool",
      "position": [
        360,
        380
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "550c40ae-6638-41b1-ab72-e007e490904f",
      "name": "Ollama 聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatOllama",
      "position": [
        60,
        380
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "64ceba81-c42a-41b3-b5af-84cf3d1bf3da",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        180,
        20
      ],
      "parameters": {},
      "typeVersion": 1.9
    },
    {
      "id": "c6b0a8c8-7d45-409d-a1a0-953eeddbf5a5",
      "name": "便签6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -540,
        -100
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "3a2bab82-1c1f-4ab7-b5e7-a242910dec00",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -140,
        -100
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "665b7e23-c3aa-40c1-9556-6ebd7dbbcc41",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        140,
        -100
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "7a6d0601-5d5e-47bb-bd96-d2fe81d77e91",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -140,
        220
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "fdc20ba4-6181-4163-88e8-768bb713ad80",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        280,
        220
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "15df35ea-63dc-4cc7-9f5f-d84f4944c807",
      "name": "Open Chat",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        -60,
        20
      ],
      "webhookId": "447cba79-509e-4bd9-aaa9-5ee8c182fb21",
      "parameters": {},
      "typeVersion": 1.1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "848186e0-bd85-4fcb-aa35-5fde47943340",
  "connections": {
    "AI Agent": {
      "main": [
        []
      ]
    },
    "Open Chat": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Link": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Ollama Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

中级 - 人工智能, 营销

需要付费吗?

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

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

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

外部链接
在 n8n.io 查看

分享此工作流