AI助理:置入聊天機器人中

歡迎使用本指南來設定、訓練及優化您的 iSlash AI 智能助理。iSlash AI 助理由 ChatGPT-4o 和 Google Gemini 驅動。

本手冊涵蓋準備步驟、知識庫訓練、提示語設計,以及如何最大化發揮 AI 助理的效能。


開始之前

請務必先完成「準備清單」與「知識庫訓練」的步驟。

若尚未完成,請前往 第一章節 AI 助理 —知識庫訓練

設定需求

  1. 已啟用 AI 助理模組(請聯絡 iSlash AI 支援團隊

  2. 已完成知識庫訓練(請參閱相關教學文章

步驟指南
  1. 登入 iSlash AI 平台 https://app.islash.io/,前往「聊天機器人」頁面:

  1. 點擊「建立」建立新的聊天機器人。

  1. 在上方功能列中尋找 AI 助理,拖曳並釋放以建立(請參考上方圖片),即可開始編輯您的 AI 助理:

首先,請選擇一個 AI 模型

  • 若您選擇的是 Text Embedding ADA 002 作為嵌入模型,請使用 ChatGPT 3.5 / 4o

  • 若您選擇的是 Embedding 001(Gemini),請使用 Gemini 1.5 Flash


接著,在下拉選單中選擇您已訓練完成的知識庫。

  1. 與使用 ChatGPT 類似,您可以在「系統提示語(System Prompt)」中定義 AI 助理的身份與行為設定。

    例如:
    「你是 iSlash AI 的品牌大使,負責協助處理客戶詢問。」
    您也可以進一步限制 AI 的回應範圍、忽略哪些問題、指定回覆語言等等。

系統提示語將引導 AI 助理的回應方式與風格。


🧩 System Prompt Components

There are five main parts in a System Prompt, which are Priming, Style & tone instructions, Handling errors & edge cases, Dynamic content and Output formatting.

Components

Example

Template : Prompt with Retrieved Knowledge

PRIMING

You are a plumbing Q&A bot that answers questions about plumbing in a helpful way.

You are a [function] Q&A bot that answers questions about [function] in a helpful way.

STYLE & TONE INSTRUCTIONS

Use 10th grade language and explain things in a simple way that anyone can understand.

Use simple language and explain things with layman terms, so that anyone can understand.

HANDLING ERRORS & EDGE CASES

If a question is irrelevant to plumbing, gently decline to offer because it’s not your area of expertise.

If a question is irrelevant to [function], gently decline to offer because it’s not your area of expertise.

DYNAMIC CONTENT

User inquiry: “How do I fix a leaky faucet?”

User inquiry: {a common question about said function}.


Use this to help if relevant: “Plumbers Handbook, Chapter 1: Fixing Common Leaks - Every plumber needs to know how to fix common household leaks, including leaky faucets. The three most common reasons for a leaky faucet are…”

Use this to help if relevant: {knowledge}

OUTPUT FORMATTING

Example format: “Acknowledge > Answer > Optional Link to Resource”

Respond in sentences like a friendly customer service representative would do, follow this pattern: [acknowledge the question], [provide answer], [provide reference link if available in knowledge base].

💡 These components don’t have to appear in fixed order. Customize for your brand voice.


當您輸入完 系統提示語 後,接下來請考慮當使用者提出與您或您的業務無關的問題時,AI 助理應如何回應。

此外,AI 助理無法正確處理僅有單一詞語的查詢,例如:「早餐」、「推薦」等。
為確保回覆準確,建議使用者以較完整的句子進行提問,例如:
-「你們的招牌餐點是什麼?」
-「有什麼飲品推薦嗎?」

請於系統提示語中加入這些行為準則,以便 AI 助理能提供更準確且有價值的回應。

  1. 在設定 錯誤訊息(Error Message) 時,我們提供以下幾個範例供您參考:

錯誤訊息(Error Message)範例

Please try to rephrase your question, or provide more details and try again. 😃 Otherwise, please click [Customer Support], and our team will assist you soon.

「我係學習中的AI,我未能明白你的問題,請你更加詳細地敘述,多謝😃 如果你想即時聯絡我們的團隊,請按 [Customer Support].」


「我目前僅支援與本店相關的查詢,請問有什麼我們可以幫忙的嗎?」


  1. 您也可以選擇啟用以下 AI 助理設定選項:

  • 必須根據知識庫回答 Must Answer Based on Knowledge Base :

    啟用後,AI 助理將嚴格根據知識庫中索引到的資訊進行回應,不會憑空猜測。

  • 包含聊天記錄 With Chat History :

    啟用後,AI 助理將參考使用者的對話歷史,提供更有脈絡的回覆。

  • 在回覆訊息中加入資料來源 Include sources in the reply :

    啟用後,AI 助理在回答後會列出所參考的資料來源,提升資訊透明度與可信度。

  1. 完成所有設定後,請點擊 「更新」 以儲存設定。

  2. 接著,將 AI 助理連接至您的聊天機器人以完成整體設定。

  3. 現在,您可以進入聊天機器人介面,實際測試由 Google Gemini 或 ChatGPT 驅動的 AI 助理效果。



🛠️ 進階優化技巧
  • 避免上傳原始或未經整理的文件

  • 將資訊依主題分類整理,保持內容簡潔有條理

  • 使用自然、具說明性的語句(如撰寫說明文章般),讓 AI 更易理解與回應

  • 若使用嵌入模型,請確認資料已適當分段(chunking)並正確建立索引,以提升檢索與回答的準確性



Learn more:

常見問題(FAQs)

常見問題(FAQs)

常見問題(FAQs)

  1. 為什麼我的 AI 助理無法正確回答某些問題?
    請確認您是否已完成以下幾項設定:

    1. 已上傳結構清晰、內容完整的知識庫資料(避免表格與零散段落)

    2. 在 System Prompt 中設定了 AI 的角色與回答範圍

    3. 若啟用了「必須根據知識庫回答」選項,請確保資訊已正確被索引
      建議您也測試是否使用了過於模糊或單字式的提問,例如「food」、「promotion」等,這類查詢建議轉為完整句子。