跳到主要內容

AI 驅動文件

您想了解什麼?

Auto-Integration Builder

它解決的問題: 設定工廠整合(PLC 通訊、郵件警報、資料記錄)需要 Node-RED 專業知識,而您可能不具備。

它的功能: 根據簡單的英文描述生成完整、可投入生產的 Node-RED 流程。無需瞭解 Node-RED。只需描述您想要的內容,AI 就會為您編寫所有邏輯。

The Auto-Integration Builder interface showing the AI Flow Generator prompt, Test Data Editor on the left, Node-RED canvas in the center, and status panels at the bottom

入門指南

  1. 開啟 tools.overview.ai 並選擇 Auto-Integration Builder
  2. 匯入您的相機資料。 點選左側面板中的 Import All Block Outputs 載入相機的實際檢查資料(JSON)。這會告知 AI 哪些資料欄位可用(blob、分類、測量、置信度分數)。如果您尚未連線相機,請點選 Load Example Data 以使用示例資料開始。
  3. 在 AI Flow Generator 文字框中描述您的流程。例如:"Check if gaps are detected, if yes then fail, otherwise pass""Send an email when 3 failures happen in a row"
  4. 點選 Generate Flow,AI 會構建完整的 Node-RED 流程
  5. 使用匯入的資料進行測試。結果會實時顯示在底部:Inspection Result、Digital I/O Status、Save to Library、Onboard Status LED、Capture Metadata 和 Dashboard 面板。

介面介紹

Integration Builder 包含四個主要區域:

  • 頂部工具欄: Tutorial 按鈕、My Flows 下拉選單(儲存/載入流程)、Import Flow、Export Flow、Explain Flow(AI 解釋當前流程的功能)和 Analyze Flow(AI 檢查問題)。
  • 左側面板(Test Data Editor): 載入相機的檢查資料,以便針對真實值測試流程。
  • 中心區域(Node-RED canvas): 視覺化流程編輯器,您可以在此檢視和手動調整生成的流程。
  • 底部狀態列: 實時測試結果,顯示 Inspection Result(透過/失敗)、Digital I/O 輸出、Save to Library 狀態、LED 狀態、Capture Metadata 以及 Dashboard 預覽。

編寫有效的提示詞

細節越多,效果越好。包括閾值、透過/失敗條件以及要觸發的輸出。模糊的提示詞只會產生模糊的結果。

質量示例提示詞
"Pass if blob count is 5 AND average confidence is above 0.85"
"Turn on Output 1 when it fails, send email after 3 consecutive failures"
"Check for defects"(過於模糊)

Modify Mode

已經有一個流程?使用 Modify Mode 描述您想要更改的內容。AI 會在保留現有邏輯的同時更新流程。例如:"Change the threshold to 0.9" 或 "Add an email notification on failure."

匯出到您的相機

工具欄包含 Import FlowExport Flow 按鈕,用於在構建器和相機之間移動流程:

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

將流程匯出到相機:

  1. 點選工具欄中的 Export Flow 將流程下載為 JSON 檔案
  2. 在您的相機上,進入 IO模組 並點選 Advanced Mode 開啟 Node-RED
  3. 點選 Node-RED 右上角的漢堡選單(三條水平線)
  4. 選擇 Import,貼上 JSON 或選擇下載的檔案,然後點選 Import

將相機中的流程匯入到構建器:

  1. 在相機的 Node-RED 編輯器上,點選漢堡選單並選擇 Export
  2. 點選 Copy to clipboardDownload JSON
  3. 在 Integration Builder 中,點選 Import Flow 並將 JSON 貼上或拖放到編輯器中
無需瞭解 Node-RED

您無需瞭解 Node-RED 即可使用 Integration Builder。用簡單的英文描述您想要的內容,AI 會處理其餘事項。生成的流程使用與您相機原生使用相同的 Node-RED 格式。

實際演示

它在工作流程中的位置: 您將在 第 5 步:設定輸出 期間使用 Integration Builder 配置工廠通訊。