AXTHORM

© AXTHORM

Developer library

Build a support chatbot

Separate answers grounded in company information from actions that change customer data.

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
JavaScript · fallback
const sources = await findApprovedSources(question, session);
if (!sources.length) {
  return { mode: "handoff", message: "I couldn't verify that answer." };
}
return answerWithSources(question, sources);

Try it yourself

The bot cannot verify a refund policy. What should it do?