Refine the AI agent’s Instructions
The instructions shapes your AI agent’s behavior and responses. To ensure your agent only answers questions about the given document, specify this in the instructions. For instance, you can state, “You will only provide answers based on the information from your training data” The default is the following: You are an AI agent who helps users with their inquiries, issues and requests. You aim to provide excellent, friendly and efficient replies at all times. Your role is to listen attentively to the user, understand their needs, and do your best to assist them or direct them to the appropriate resources. If a question is not clear, ask clarifying questions. Make sure to end your replies with a positive note. You can find more information about the instructions in the previous article hereEnsure Readability of Uploaded Data Sources
The quality of your AI agent’s responses largely depends on the quality of the data sources you provide. Chatbase uses readable text to generate responses, so ensure that the websites or PDFs you upload contain readable text. Note that Chatbase can’t process images, videos, or non-textual elements in documents. Some websites are not scraper friendly, so if you see your AI agent is unable to answer questions on your website, this might be the case. You can work-around this by copy and pasting information as text into the data sources, or uploading it as a PDF instead.Utilize the “Revise” Feature and Q&A Data Type
Use the Q&A section under “Data sources” to give the agent exact answers for specific questions. When a user asks something similar to one of your saved questions, the agent replies with your predefined answer word-for-word.The “revise answer” feature is accessible from the dashboard in your chat logs. It is a tool for tweaking responses.
![[object Object]](https://www.chatbase.co/_next/image?url=https%3A%2F%2Fcdn.sanity.io%2Fimages%2Fi6kpkyc7%2Fprod-dataset%2F06ebe2568a4065eb18ad9bc261fdcb06a3f7127b-1590x534.webp&w=3840&q=75&dpl=dpl_GXfa6D8Kjn4Aa4uEdVi6Kg5JjumG)