Skip to content

为 AI 工作流提供人工回退(Have a human fallback for AI workflows)#

这是一个使用标准 GPT-4 模型尝试回答用户查询的工作流程。如果无法回答,它会向 Slack 发送消息寻求人类帮助。它会提示用户提供电子邮件地址。

🌐 This is a workflow that tries to answer user queries using the standard GPT-4 model. If it can't answer, it sends a message to Slack to ask for human help. It prompts the user to supply an email address.

该工作流使用 Chat Trigger 提供聊天界面,并使用 Call n8n Workflow Tool 调用第二个工作流来处理检查电子邮件地址和发送 Slack 消息。

🌐 This workflow uses the Chat Trigger to provide the chat interface, and the Call n8n Workflow Tool to call a second workflow that handles checking for email addresses and sending the Slack message.

Workflow preview placeholder.

主要功能(Key features)#

此工作流程使用:

🌐 This workflow uses:

  • 聊天触发器:启动您的工作流程并回应用户的聊天互动。该节点提供了一个可自定义的聊天界面。
  • 代理:AI 工作流程的关键部分。代理与工作流程中的其他组件进行交互,并决定使用哪些工具。
  • 调用 n8n 工作流工具:将 n8n 工作流作为自定义工具接入。在 AI 中,工具是 AI 用来与外部世界交互的接口(在此情况下,即由你的工作流提供的数据)。它允许 AI 模型访问其内置数据集之外的信息。

使用示例(Using the example)#

To load the template into your n8n instance:

  1. Download the workflow JSON file.
  2. Open a new workflow in your n8n instance.
  3. Copy in the JSON, or select Workflow menu Workflow menu icon > Import from file....

The example workflows use Sticky Notes to guide you:

  • Yellow: notes and information.
  • Green: instructions to run the workflow.
  • Orange: you need to change something to make the workflow work.
  • Blue: draws attention to a key feature of the example.