diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts index 4516bc84c..4264d9ccf 100644 --- a/docs/.vitepress/config.mts +++ b/docs/.vitepress/config.mts @@ -139,6 +139,7 @@ export default defineConfig({ items: [ { text: "Dify", link: "/zh/deploy/pipelines/dify" }, { text: "n8n", link: "/zh/deploy/pipelines/n8n" }, + { text: "Langflow", link: "/zh/deploy/pipelines/langflow" }, ], }, { @@ -356,6 +357,7 @@ export default defineConfig({ items: [ { text: "Dify", link: "/en/deploy/pipelines/dify" }, { text: "n8n", link: "/en/deploy/pipelines/n8n" }, + { text: "Langflow", link: "/en/deploy/pipelines/langflow" }, ], }, { diff --git a/docs/assets/image/zh/deploy/pipelines/langflow/create_flow.png b/docs/assets/image/zh/deploy/pipelines/langflow/create_flow.png new file mode 100644 index 000000000..5003def72 Binary files /dev/null and b/docs/assets/image/zh/deploy/pipelines/langflow/create_flow.png differ diff --git a/docs/assets/image/zh/deploy/pipelines/langflow/edit_flow.png b/docs/assets/image/zh/deploy/pipelines/langflow/edit_flow.png new file mode 100644 index 000000000..ba19df280 Binary files /dev/null and b/docs/assets/image/zh/deploy/pipelines/langflow/edit_flow.png differ diff --git a/docs/assets/image/zh/deploy/pipelines/langflow/get_api_key.png b/docs/assets/image/zh/deploy/pipelines/langflow/get_api_key.png new file mode 100644 index 000000000..46b533c7e Binary files /dev/null and b/docs/assets/image/zh/deploy/pipelines/langflow/get_api_key.png differ diff --git a/docs/assets/image/zh/deploy/pipelines/langflow/get_flow_id.png b/docs/assets/image/zh/deploy/pipelines/langflow/get_flow_id.png new file mode 100644 index 000000000..00294bfcf Binary files /dev/null and b/docs/assets/image/zh/deploy/pipelines/langflow/get_flow_id.png differ diff --git a/docs/assets/image/zh/deploy/pipelines/langflow/set_langflow_runner.png b/docs/assets/image/zh/deploy/pipelines/langflow/set_langflow_runner.png new file mode 100644 index 000000000..2c2f65ddd Binary files /dev/null and b/docs/assets/image/zh/deploy/pipelines/langflow/set_langflow_runner.png differ diff --git a/docs/en/deploy/pipelines/langflow.md b/docs/en/deploy/pipelines/langflow.md new file mode 100644 index 000000000..a687473fd --- /dev/null +++ b/docs/en/deploy/pipelines/langflow.md @@ -0,0 +1,31 @@ +# Using Langflow with LangBot + +[Langflow](https://langflow.com/) is an open-source project for building and deploying AI-based Agents and Workflows. It supports local and cloud deployment, and provides APIs for other applications to integrate. + +LangBot currently supports using Langflow as the runner. + +## Creating a Workflow in Langflow + +Please follow the [Langflow documentation](https://langflow.com/docs/introduction) to deploy Langflow instance. + +As an example of the default template's Simple Agent: + +![create_flow](/assets/image/zh/deploy/pipelines/langflow/create_flow.png) + +You can modify the workflow according to your needs: + +![edit_flow](/assets/image/zh/deploy/pipelines/langflow/edit_flow.png) + +## Configuring LangBot + +Open the LangBot WebUI page, add a new pipeline or switch to the AI capability configuration page in an existing pipeline, and select `Langflow API` as the runner. + +![set_langflow_runner](/assets/image/zh/deploy/pipelines/langflow/set_langflow_runner.png) + +Fill in the other settings according to the prompts, including `Base URL` (fill in according to actual network conditions), `API Key`, `Flow ID`, etc. The API Key can be obtained from Langflow's Settings: + +![get_api_key](/assets/image/zh/deploy/pipelines/langflow/get_api_key.png) + +Flow ID can be obtained by clicking the `Share` -> `API access` button in the top right corner of the edit page and obtaining it from the example code: + +![get_flow_id](/assets/image/zh/deploy/pipelines/langflow/get_flow_id.png) \ No newline at end of file diff --git a/docs/en/insight/features.md b/docs/en/insight/features.md index a36f2076b..147350e2b 100644 --- a/docs/en/insight/features.md +++ b/docs/en/insight/features.md @@ -32,6 +32,8 @@ LangBot is an open-source LLM native instant messaging robot development platfor | [Zhipu AI](https://open.bigmodel.cn/) | ✅ | | | [CompShare](https://www.compshare.cn/?ytag=GPU_YY-gh_langbot) | ✅ | LLM and GPU resource platform | | [Dify](https://dify.ai) | ✅ | LLMOps platform | +| [n8n](https://n8n.io/) | ✅ | LLMOps platform | +| [Langflow](https://langflow.org/) | ✅ | LLMOps platform | | [PPIO](https://ppio.com/user/register?invited_by=QJKFYD&utm_source=github_langbot) | ✅ | LLM and GPU resource platform | | [ShengSuanYun](https://www.shengsuanyun.com/login?code=7DS2QLH5) | ✅ | LLM and GPU resource platform | | [302.AI](https://share.302.ai/SuTG99) | ✅ | LLM gateway(MaaS) | diff --git a/docs/zh/deploy/pipelines/langflow.md b/docs/zh/deploy/pipelines/langflow.md new file mode 100644 index 000000000..2a247298b --- /dev/null +++ b/docs/zh/deploy/pipelines/langflow.md @@ -0,0 +1,31 @@ +# 在 LangBot 上使用 Langflow + +Langflow 是一个开源的用于构建和部署基于 AI 的 Agent 和工作流的项目。其支持本地和云端部署,并提供 API 供其他应用接入。 + +LangBot 目前支持使用 Langflow 作为运行器。 + +## 在 Langflow 上创建工作流 + +请根据 [Langflow 文档](https://langflow.com/docs/introduction) 部署 Langflow 实例。 + +以默认模板中的 Simple Agent 为例: + +![create_flow](/assets/image/zh/deploy/pipelines/langflow/create_flow.png) + +您可根据需求修改工作流: + +![edit_flow](/assets/image/zh/deploy/pipelines/langflow/edit_flow.png) + +## 配置 LangBot + +打开 LangBot WebUI 页面,添加一个新的流水线或在已有流水线中切换到 AI 能力配置页面,选择`Langflow API` 作为运行器。 + +![set_langflow_runner](/assets/image/zh/deploy/pipelines/langflow/set_langflow_runner.png) + +根据提示填入`Base URL`(根据实际网络情况填写) `API Key` `Flow ID` 等信息,API Key 可在 Langflow 的 Settings 中获取: + +![get_api_key](/assets/image/zh/deploy/pipelines/langflow/get_api_key.png) + +Flow ID 可点击编辑页右上角的`Share` -> `API access` 并示例代码中获取: + +![get_flow_id](/assets/image/zh/deploy/pipelines/langflow/get_flow_id.png) \ No newline at end of file diff --git a/docs/zh/insight/features.md b/docs/zh/insight/features.md index 3cd4e5395..9b8d80ffb 100644 --- a/docs/zh/insight/features.md +++ b/docs/zh/insight/features.md @@ -37,6 +37,8 @@ LangBot 是一个开源的大语言模型原生即时通信机器人开发平台 | [302.AI](https://share.302.ai/SuTG99) | ✅ | 大模型聚合平台 | | [Google Gemini](https://aistudio.google.com/prompts/new_chat) | ✅ | | | [Dify](https://dify.ai) | ✅ | LLMOps 平台 | +| [n8n](https://n8n.io/) | ✅ | LLMOps 平台 | +| [Langflow](https://langflow.org/) | ✅ | LLMOps 平台 | | [Ollama](https://ollama.com/) | ✅ | 本地大模型运行平台 | | [LMStudio](https://lmstudio.ai/) | ✅ | 本地大模型运行平台 | | [GiteeAI](https://ai.gitee.com/) | ✅ | 大模型接口聚合平台 |