mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-10-30 04:15:45 +08:00
docs:add n8n streaming connect (#69)
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 151 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 179 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 126 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 115 KiB |
@@ -15,10 +15,19 @@ Then configure and fill in the other settings according to the content below.
|
||||
## Configuring n8n Workflow Connection
|
||||
|
||||

|
||||
or
|
||||

|
||||
|
||||
You need to select `Webhook` as the trigger and configure it according to the image below:
|
||||
Select `Webhook` or `On chat message` as the trigger and configure as follows:
|
||||
- Webhook:
|
||||

|
||||
- On chat message:
|
||||

|
||||
|
||||

|
||||
:::info
|
||||
If you need streaming responses, set `Response Mode` to `Streaming`.
|
||||

|
||||
:::
|
||||
|
||||
:::info
|
||||
Authentication corresponds to the authentication methods in LangBot's pipeline configuration, which you can modify as needed.
|
||||
@@ -26,7 +35,12 @@ Authentication corresponds to the authentication methods in LangBot's pipeline c
|
||||

|
||||
:::
|
||||
|
||||
For the workflow response content in n8n, please use the `Respond to Webhook` node and configure it according to the image below:
|
||||
Configure the node that calls the AI model as `AI Agent`, following the setup below:
|
||||
> For streaming responses, add the items highlighted in the red box. If you don't need streaming, you can skip this.
|
||||
|
||||

|
||||
|
||||
For the workflow response content in n8n, please use the `Respond to Webhook` node and configure it according to the image below (if you choose streaming responses with the `AI Agent` node, you do not need this step):
|
||||
|
||||

|
||||
|
||||
|
||||
@@ -10,15 +10,26 @@ LangBot 目前支持通过 n8n 工作流的 `Webhook` 节点,来触发工作
|
||||
|
||||

|
||||
|
||||
|
||||
并根据下方内容设置并填写其他配置。
|
||||
|
||||
## 配置 n8n 工作流连接
|
||||
|
||||

|
||||
or
|
||||

|
||||
|
||||
需要选择`Webhook`触发,并参考下图配置:
|
||||
需要选择`Webhook`或者`On chat message`触发,并参考下图配置:
|
||||
* webhook
|
||||

|
||||
* on chat message
|
||||

|
||||
|
||||
:::info
|
||||
如果要需要流式,其中的`Response Mode`都需要选择为`Streaming`。
|
||||

|
||||
:::
|
||||
|
||||

|
||||
|
||||
:::info
|
||||
Authentication 对应 LangBot 流水线配置中的几种鉴权方式,可自行更改。
|
||||
@@ -26,7 +37,14 @@ Authentication 对应 LangBot 流水线配置中的几种鉴权方式,可自
|
||||

|
||||
:::
|
||||
|
||||
n8n 的工作流响应内容请使用`Respond to Webhook`节点,并参考下图配置:
|
||||
|
||||
调用ai模型的节点可配置为`AI Agent`,并参考下图配置:
|
||||
> 需要流式则将图片中红框内容添加,不需要则不管
|
||||
|
||||

|
||||
|
||||
|
||||
n8n 的工作流响应内容请使用`Respond to Webhook`节点,并参考下图配置(如果你选择的是流式响应和`AI Agent`节点,则不需要操作此步骤):
|
||||
|
||||

|
||||
|
||||
|
||||
Reference in New Issue
Block a user