Build a document-backed FAQ agent with Flowise
Index a short FAQ in Flowise, connect it to an Agentflow and test which questions the agent can answer from the source.
What you will create
A FAQ agent that retrieves passages from a small document before answering. You will check three things separately: correct indexing, retrieval of the relevant passage and answer fidelity. This approach is called retrieval-augmented generation, or RAG.
Before you start
This guide assumes an authorized Flowise instance with Agentflow V2 and compatible, already configured chat model, embedding model and vector database. Their installation is not covered here. Check indexing and query costs before running anything. Documents may be sent to configured providers: use only the fictional FAQ below. Keep keys in dedicated credential fields, never in the FAQ or prompt. Do not add sending, booking or code-execution tools.
Step-by-step
- Prepare a small file with a question and answer in each paragraph. Give it a recognizable name and version to avoid mixing experiments.
- In Document Stores, create a test source and choose a loader that matches the file format. Configure splitting and inspect chunks before indexing: an answer must not lose its question or negation.
- Select the already configured embeddings and vector database, then upsert only when that operation is authorized. Verify success. An uploaded file is not necessarily available for retrieval yet.
- In a test Agentflow V2, connect the start node to an Agent node and select the chat model. Under Knowledge, choose the indexed Document Store and describe its contents precisely.
- Set this instruction: “Answer about this FAQ after consulting the source. If information is absent, say so. Do not fill gaps with guesses and never claim a registration was completed.” Save the flow.
- Try the questions below. Inspect retrieved passages when your interface exposes them. Distinguish retrieval without a relevant passage from an answer that distorts a correct passage.
Example to adapt
Original fictional FAQ: “How long is the workshop? 45 minutes. Should participants bring paper? Yes, three sheets per person. Are materials provided? No, participants must bring their paper. What is the price? It has not been set.”
- “How much time should I allow?” 45 minutes, despite the paraphrase.
- “So I can come without paper?” No, three sheets are needed.
- “Is it free?” The price is not set; do not infer free admission.
- “When is the next session?” Information absent; no invented date.
Also test in a fresh conversation: an earlier answer in chat history must not conceal a retrieval failure.
Check your result
- Is the intended FAQ version indexed?
- Does each factual answer match the original passage?
- Are negation and quantities preserved?
- Does the agent distinguish unknown information from a negative answer?
- Do tests remain private, without public exposure or external actions?
Common problems
If the source cannot be selected, check upsert and configuration first, not just the uploaded file. If retrieval returns an incomplete passage, inspect splitting. If a correct passage is present but poorly summarized, refine instructions and repeat the same tests. After editing the file, verify that the index represents the new version; do not assume automatic synchronization. A few correct answers do not guarantee all future ones.
Next steps
Visit the Flowise overview. Add one new FAQ question, update the index and rerun all four tests before considering access for real users.



