跳到主要内容

AI 驱动文档

您想了解什么?

自动化集成构建器

解决的问题: 设置工厂集成(PLC 通信、电子邮件警报、数据记录)需要你可能没有的 Node-RED 专业知识。

功能: 根据简单英文描述生成完整、生产就绪的 Node-RED flows。无需 Node-RED 知识。只需描述你想要的内容,AI 将为你编写全部逻辑。

Auto-Integration Builder 界面,显示 AI Flow Generator 提示、左侧的 Test Data Editor、居中的 Node-RED 画布,以及底部的状态面板

Getting started

  1. Open tools.overview.ai and select Auto-Integration Builder
  2. Import your camera's data. Click Import All Block Outputs in the left panel to load your camera's actual inspection data (JSON). This tells the AI what data fields are available (blobs, classifications, measurements, confidence scores). If you don't have a camera connected yet, click Load Example Data to start with sample data.
  3. Describe your flow in the AI Flow Generator text box. For example: "Check if gaps are detected, if yes then fail, otherwise pass" or "Send an email when 3 failures happen in a row"
  4. Click Generate Flow and the AI builds a complete Node-RED flow
  5. Test it with your imported data. Results appear in real-time at the bottom: Inspection Result, Digital I/O Status, Save to Library, Onboard Status LED, Capture Metadata, and Dashboard panels.

The interface

The Integration Builder has four main areas:

  • Top toolbar: Tutorial button, My Flows dropdown (save/load flows), Import Flow, Export Flow, Explain Flow (AI explains what the current flow does), and Analyze Flow (AI checks for issues).
  • Left panel (Test Data Editor): Load your camera's inspection data to test flows against real values.
  • Center (Node-RED canvas): The visual flow editor where you can see and manually adjust the generated flow.
  • Bottom status bar: Real-time test results showing Inspection Result (pass/fail), Digital I/O outputs, Save to Library status, LED state, Capture Metadata, and a Dashboard preview.

Writing effective prompts

The more detail, the better. Include thresholds, pass/fail conditions, and what outputs to trigger. Vague prompts produce vague results.

质量示例提示
"blobs 数量为 5 且平均置信度高于 0.85"
"当它失败时打开 Output 1,连续发生 3 次失败后发送电子邮件"
不佳"检查是否存在缺陷"(过于模糊)

修改模式

已经有一个流程?使用 Modify Mode(修改模式)来描述你想要修改的部分。AI 将在保留现有逻辑的前提下更新该流程。例如:“将阈值改为 0.9”或“在失败时添加邮件通知”。

导出到你的摄像头

工具栏包括用于在构建器与您的摄像头之间移动 flows 的 Import FlowExport Flow 按钮:

Auto-Integration Builder toolbar showing Import Flow, Export Flow, Explain Flow, and Analyze Flow buttons

将流程导出到您的摄像头:

  1. 点击工具栏中的 Export Flow 下载 JSON 文件
  2. 在您的摄像头上,进入 IO Block,点击 Advanced Mode 以打开 Node-RED
  3. 点击 Node-RED 右上角的 hamburger 菜单(三条水平线)
  4. 选择 Import,粘贴 JSON 或选择已下载的文件,然后点击 Import

要将您的摄像头中的流程导入到构建器:

  1. 在摄像头的 Node-RED 编辑器中,点击 hamburger 菜单并选择 Export
  2. 点击 Copy to clipboardDownload JSON
  3. 在 Integration Builder 中,点击 Import Flow,将 JSON 粘贴到编辑器中或拖放到编辑器
无需 Node-RED 知识

您无需了解 Node-RED 即可使用 Integration Builder。用简单英文描述您想要的内容,AI 将处理剩余工作。生成的 flows 使用您的摄像头原生使用的相同 Node-RED 格式。

See it in action

Where it fits in the workflow: You'll use the Integration Builder during Step 5: Setting Up Outputs to configure factory communication.