This page was translated from Dutch with AI.

Your chatbot gets smarter from a narrower document

You have built a chatbot for your website or for your colleagues. It answers, which is something. But sometimes it answers just beside the question. Or it tells a whole story that nobody asked for. A participant put it this way in an automation workshop: 'It does look at my document, but it keeps answering a bit in the wild west. How do I make it smarter?'

You might recognise that. And the first reflex is then to add even more information. I would try the opposite first. In this workshop we built a chatbot together in n8n, and there you could see beautifully where things go wrong.

At the bottom of this article you will find two prompts: one to make your knowledge document narrower and one for the instructions of your chatbot. Feel free to copy them.

Cartoon
Je chatbot wordt slimmer van een smaller document: wat hij moet weten en wat hij moet doen

What your chatbot needs to know, and what it needs to do

A chatbot actually needs two things. There is the context, which is what it needs to know. For us that was a standard Google document with information about who I am and what I do. And there are the instructions, which is what it needs to do. How briefly it answers, when it refers people on, what it does not talk about.

Many people mix those two up. They put all the information in the instruction, or they write rules of behaviour in the knowledge document. Then the model has to figure out for itself what is a fact and what is a command. And a small model does not always manage that.

Ironically, things went wrong in the demo with the chatbot on my own site. I asked it what it knew about Steff. It answered that the name Steff can refer to different people. The document about me was simply attached to it, but it had not looked in it. Only when I literally wrote in the instruction that it answers from its knowledge source, the linked Google Docs tool, did it go and look. So linking a document is not enough. You also have to tell your chatbot to use it.

Frequently asked questions

Why does my chatbot answer vaguely, when everything is in the document?

Often there is too much in the document, or the same thing in different ways. A small model then does not choose well. Make the document narrower and say explicitly in the instructions that it only answers from there.

What is the difference between the knowledge document and the instructions?

The document is what your chatbot needs to know. The instructions are what it needs to do, like how briefly it answers and when it refers people on. Keep those two apart.

Why not choose a more powerful model?

A public chatbot has many conversations at the same time, and every conversation costs tokens. A small model is sufficient if the document is good. You gain more with a better document than with a larger model.

Where do I learn to build a chatbot myself?

In the AI automation with n8n and MCP training you build a chatbot and your own workflows. You can find the dates at Workshops & Events.

Keep reading for free

Register free with your e-mail address and read on. Your account opens the free articles in the learning space; the rest is for subscribers, from Learn Plus up.

Already registered? No account yet?

No comments yetRead the comments

Comments

Members comment here and read each other's comments. Register for free or sign in to join the conversation.

Register for free or sign in

No comments yet. What do you take away?

    QR code of this page

    coachsteff.live/en/een-smal-document-voor-je-chatbot

    Scan with your phone to open the page.