AI Assistant (II)- Deploy AI Assistant in Chatbot

Welcome to your guide for setting up, training, and optimizing your iSlash AI Assistant. iSlash AI Assistant is powered by ChatGPT-4o and Google Gemini. This manual covers preparation steps, knowledge base training, prompt design, and how to get the most out of your AI-powered assistant.


Before You Begin

Please make sure that you have gone through the Preparation Checklist and Knowledge Base Training. If you haven't, please visit AI Assistant (I) - Knowledge Base Training.


Step-by-Step Guide

  1. Logon to iSlash AI Platform at https://app.islash.io/, go to Chatbots:

  1. Click "Create" buttons to create a new chatbot.

  1. At top function bars, look for AI Assistant, drag and release to create (refer image above), and start editing your AI Assistant:

First, choose an AI Model:

  • Please use ChatGPT 3.5/4o, if you have chosen Text Embedding ADA 002 as embedding model.

  • Please use Gemini 1.5 Flash, if you have chosen Embedding 001 (Gemini).


Next, at the drop down list, choose the Knowledge Base that you have trained.

  1. Then, just like when prompting ChatGPT, under "System Prompt", you can define the identity and adjust the behaviour of your AI Assistant.

    For example, "You are Ambassador of iSlash AI. You will assist in customer enquiries." You can also limit what the AI can answer, what should be ignored, what language should the AI reply in, etc.

System Prompt guides how AI Assistant responds.


🧩 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.


Once you have input the System Prompt, let's consider when user came in and ask questions that are irrelevant to you and your establishment.

On top of that, AI Assistant is unable to answer to single word enquiry, such as "food", "best recommendations"; instead, user will need to enquire in relatively complete sentence, such as "what is your best selling menu?", "your best recommendations for drinks are?".

  1. When setting Error Message, we have a few examples for your reference:

Error Messages for reference

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. Other AI Assistant settings you may tick to enable:

  • Must Answer Based on Knowledge Base :

    When enable, AI Assistant will answer strictly based on information found and indexed from Knowledge Base.

  • With Chat History :

    When enable, AI Assistant will refer to chat history when responding.

  • Include sources in the reply :

    When enable, AI Assistant will list down reference used after answer, when responding.

  1. Once you have completed the setting, click "Update" to save.

  2. Connect AI Assistant to your chatbot to complete setup.



🛠️ Tips for Optimization (for Power Users)
  • Avoid uploading raw or unstructured documents.

  • Keep information concise and organized by topic.

  • Use natural, explanatory text (as if you’re writing a help article).

  • When using embedding models, validate that the data is chunked appropriately and indexed correctly.


Learn more: