Build and test a FAQ agent with Botpress
Use a FAQ to set up a Botpress agent, check its answers and embed Webchat on a test page.
Goal and prerequisites
Build an agent that answers three delivery questions, then check that it does not fill gaps with invented information. You need a Botpress account, a small non-confidential document and, for the final step, an editable test web page. Tests may consume usage allowance: check your plan before repeating them extensively.
1. Prepare a test case
Fictional example to adapt, not a real commercial policy: “Demo Workshop delivers within mainland France. Preparation takes two working days. Local collection is free.” Write down three expected answers and one deliberately unanswered question: “How much is express delivery?” The correct response to the last question acknowledges missing information rather than inventing a price.
2. Create the agent and add its source
Choose Start building or Build my agent and follow the guided setup. In Knowledge, open the default Knowledge Base and use + Add Knowledge Source. Add your text document. Within Studio, Documents accepts a file while Rich Text lets you enter content directly. Avoid extra sources for this first exercise.
3. Evaluate accuracy, not just tone
Use the preview shown after setup. For an already published agent, Overview then Preview opens its preview. Ask the three planned questions, rephrase one, then ask about express delivery. Record each answer as accurate, incomplete or invented. A friendly tone does not compensate for an incorrect deadline. Improve the source or adjust instructions in Studio, then repeat the same questions. Do not deploy while the agent invents prices.
4. Check the website integration
With the agent published, open Webchat then Deploy Settings and copy its Embed code. On a self-managed HTML page, place the supplied code in the head section. For a CMS, follow its specific official integration guide instead; a plain text block is not a script integration.
Expected result and troubleshooting
Open the test page in a new tab: the chat should appear and pass the same test set. If it is missing, check that the correct agent is published and the complete code is present in the served page. If an answer is outdated, inspect its source and synchronization before adding contradictory instructions. Keep your test sheet and repeat it after every change.



