https://discord.gg/botpress logo
#🤝help
how to stop saying references references
# 🤝help
f

full-ocean-42333

07/17/2023, 4:25 PM
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

acceptable-kangaroo-64719

07/17/2023, 5:22 PM
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

helpful-kilobyte-18816

07/18/2023, 4:11 AM
@acceptable-kangaroo-64719 An on/off button on the knowledge base record would probably be more user friendly.
f

full-ocean-42333

07/18/2023, 10:34 AM
@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

acceptable-kangaroo-64719

07/18/2023, 11:36 AM
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

flat-lion-15574

07/21/2023, 6:57 PM
Hey Gordy, I'm having some trouble to understand this 😅 could you explain with details?
a

acceptable-kangaroo-64719

07/24/2023, 10:07 AM
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