Walkthrough
1. Choose approved sources
Index a versioned set of help content with relevant permissions.
2. Design a fallback
When evidence is missing, acknowledge uncertainty and offer a human handoff.
3. Measure usefulness
Review answer accuracy, successful handoffs and repeated questions without collecting unnecessary personal data.
Worked example
A support bot receives a question that is absent from approved policy documents. Route it to staff instead of guessing.
Open the example
const sources = await findApprovedSources(question, session);
if (!sources.length) {
return { mode: "handoff", message: "I couldn't verify that answer." };
}
return answerWithSources(question, sources);