how to stop saying references references
# 🤝help
f
Does anyone know how to make the bot stop saying the references. I have seen what is on botpress page but that doesn't work because my AI task inside the check-knowledge immediatly outputs the answer
a
Hey @full-ocean-42333, we recently updated the docs to include this https://botpress.com/docs/cloud/studio/knowledge-base/#removing-the-references TL;DR
Copy code
js
workflow.kbAnswerWithoutRef = event.preview.split("References:")[0].
h
@acceptable-kangaroo-64719 An on/off button on the knowledge base record would probably be more user friendly.
f
@acceptable-kangaroo-64719 but where am I supposed to insert that code? when my bot does the AI task it immediatly outputs the answer
a
You would need to turn on manual answering and put the code in an execute code card before you tell the answer to the end user.

https://cdn.discordapp.com/attachments/1130535655869526057/1130825413514514503/image.png

f
Hey Gordy, I'm having some trouble to understand this 😅 could you explain with details?
a
Manual answering is a setting for the knowledge agent. Go to agents > Knowledge Agent and tick this box.

https://cdn.discordapp.com/attachments/1130535655869526057/1132977253983199252/image.png

and output the result in its own text card

https://cdn.discordapp.com/attachments/1130535655869526057/1132977419205226559/image.png

2 Views