tufu
Start free
Docs menu

Start here

How tufu works: how the AI answers from your docs

How tufu's AI support bot answers: it searches your docs, writes a short answer that links its sources, and brings in a person when it can't help.

On this page

tufu answers your visitors' questions from your own docs.

Bots and knowledge#

tufu has two building blocks.

Knowledge is what you want tufu to know. Each knowledge source is one of:

  • a website, read from its pages or its sitemap;
  • uploaded files: PDFs, Word documents, slides and text files;
  • text and questions and answers you write in tufu;
  • a GitHub repo or a zip file of Markdown docs;
  • a Confluence space, or your team's Slack history.

Bots are what your visitors talk to. Each bot answers from the knowledge you give it, wherever you put it: the support chat or Ask console on your site, a direct link you can share, and by email if you forward your support address to it. On the plans that include them, it answers in Slack, Discord and Telegram too.

A bot can use several knowledge sources, and one source can serve several bots. A shop with a public help center and an internal wiki could have:

Bot Knowledge Why
Public support bot The help center Private information never reaches visitors.
Internal team bot The help center and the wiki Your team gets answers from both.

Nothing is copied twice: both bots read the same help center.

How an answer is written#

  1. A visitor asks a question, say "How long does shipping to Canada take?"
  2. tufu searches your knowledge for the passages most likely to answer it, like a search engine over your own docs. The search runs on tufu's own search model, whichever AI model your bot answers with.
  3. The AI model reads those passages with the question and writes a short answer.
  4. The answer links its sources, the pages it came from, so the visitor can read more and you can check its work.
  5. If it can't help, a person can. In a support chat, the visitor presses Talk to a human, or the bot offers it, and the conversation lands in your inbox. See Human handoff and the inbox.

What the AI sees#

Only the passages that matched the question are sent to the AI model, never your whole knowledge base. By default the model is tufu's AI, included in your plan. On every plan you can use your own AI key and pick the model yourself: see Bring your own model.

When your docs don't have the answer#

The bot's Use general knowledge setting decides what happens:

  • On (the default): the bot can also answer from what the AI model knows in general.
  • Off: it answers only from your knowledge, and says when it can't help.

Either way, the questions it couldn't answer show up under Knowledge gaps, so you know what to write next.

Questions about the visitor themselves#

Some questions aren't in any doc: "Where's my order?", "What plan am I on?". With Look it up, on the Team and Scale plans, the bot can ask your own system about a signed-in visitor and answer from what it says. It's read-only: it can look things up, never change them. A WooCommerce store needs no code: see WooCommerce orders.

What tufu is good at, and what it isn't#

tufu shines when the answer is somewhere in your docs and the visitor doesn't know where. Because the bot reads only the passages that matched, questions about your docs as a whole work less well.

Works well Works less well
Product questions: shipping, sizing, returns, custom orders, pricing "Summarize everything you know"
How-to questions about your software or service "What topics do you cover?"
Finding the right page in a large help center Calculations across a spreadsheet
A link the visitor pastes ("what does this page mean?") Anything that isn't written down anywhere

A pasted link works when the page is on the public web: the bot reads the start of it. It only opens addresses the visitor wrote, never one it picked itself.

Getting better answers#

  • Write it down. Most wrong answers mean the answer isn't in your knowledge yet, or it's buried. A short, clearly titled page per common question works best. Knowledge gaps shows you which ones.
  • Keep knowledge fresh. After you change your docs, open the source and press Re-read, or let website, GitHub and Confluence sources refresh on their own on a paid plan (see Adding knowledge).
  • Use extra instructions for tone, not facts. "Keep answers short" or "Always reply in Spanish" belong in the bot's Extra instructions. Facts belong in your docs, where every bot can use them.
  • Be your customer first. Ask the questions your customers ask before they do, and ask for a person to see the notification you'll get.

Next steps#