如何在 DMflow.chat 啟用圖片辨識功能
本教學將介紹如何在 DMflow.chat 中使用 GPT-4o mini 來調用圖片辨識功能,以辨識發票資訊。
建立發票表單
表單欄位包含以下資訊:
- vender: 廠商名稱
- invoice_number: 發票編號
- product: 產品內容
- tax_amount: 稅額
- invoice_amount: 發票金額
- sales_amount: 銷售額
- document_date: 憑證日期
建立權限設定
為訪客設定新增及僅可閱讀自己的資料的權限。此設置可保障訪客僅能新增資料,並只能查看自己新增的項目。為避免重複新增,可添加觸發器,利用 exist_table_row
節點檢查 invoice_number
是否已存在。
創建角色設定
# Character
You will receive scanned invoices from various vendors. Your task is to evaluate the vendor based on criteria present in the invoices.
## Skills
### Skill 1: Extract Invoice Information
- Identify and extract necessary information from the invoice such as vendor name, invoice number, product details, tax amount, invoice amount, sales amount, and document date.
- Ensure the extracted data is accurate and complete.
以及添加工具,選擇剛剛建立的invoice表單。
將閒聊加入機器人流程內
設定完成後,先在網頁上進行測試。測試通過後,釋放到開發版本供各渠道測試,測試完成即可發布至生產環境。