https://discord.gg/botpress logo
#🤝help
A very basic question about node displaying text
# 🤝help
c

calm-napkin-89762

07/13/2023, 6:36 PM
I am sure this is a silly question - I am just trying to understand the logic of how exactly it works. I have an empty node - it has nothing in it, except for transferring to the end of the conversation. The start of the conversation is preceding it. The node is not taking any data from the user, and doesn't print anything out. Literally empty. Yet, when I type something in, it sends the query to the Knowledge Base and prints out the result. How does it work so without an excpliti info intake and explicit printing anything out?

https://cdn.discordapp.com/attachments/1129119228029571083/1129119228386099250/image.png

f

full-helmet-73535

07/14/2023, 12:12 AM
Hello! There are no dumb questions! The knowledge agent is set by default to answer automatically on the first node. You have to go to the knowledge agent settings in the agent tab on the left side of the studio, deselect answer on first node, and then select manual answer only if that is what you want. This will also require you to pass the knowledge agents answer in a variable in a text card next in the workflow. On the window with these settings, it will give you the variable that you need to pass to the text card
c

calm-napkin-89762

07/14/2023, 3:15 AM
I think I understand it now, but the following still doesn't work, though if I understand it correctly, it should. With these settings, seems to me that the Knowledge Base should be activated and answer the question entered by the user which activated the conversation. But it doesn't - the conversation begins and ends, without looking up KB. What am I missing?

https://cdn.discordapp.com/attachments/1129119228029571083/1129249834617028628/image.png

https://cdn.discordapp.com/attachments/1129119228029571083/1129249834906439712/image.png

https://cdn.discordapp.com/attachments/1129119228029571083/1129249835174866985/image.png

f

full-helmet-73535

07/14/2023, 4:27 AM
You’re close! I don’t remember if it tells you in the chat that it found the answer if it looks it up and you don’t use the answer
But right now you just need to add a text card that says {{turn.KnowledgeAgent.answer}} and it will say the answer where you want it to
And it should work
I am free later tomorrow I can jump on a call to troubleshoot if you need
b

bitter-flag-31138

07/14/2023, 4:31 AM
HI can I ask for assistance I am following along with the recipe botpress tutorial and trying to call the spoonacular api and not getting a response some please help

https://cdn.discordapp.com/attachments/1129119228029571083/1129268816057221140/image.png

f

full-helmet-73535

07/14/2023, 4:33 AM
Please make a new help question so we can dive into there. I don’t see anything wrong with it right now though so I would just give the code to chat gpt and tell it that you got an error, and send it the error message from the logs
If that doesn’t work I’m happy to help further
b

bitter-flag-31138

07/14/2023, 4:35 AM
I tried that an it to said there was no error and I just post it in the help thread.
Thanks
c

calm-napkin-89762

07/14/2023, 10:41 AM
I've tried - it's again not even trying to look it up!

https://cdn.discordapp.com/attachments/1129119228029571083/1129361932168736819/image.png

https://cdn.discordapp.com/attachments/1129119228029571083/1129361932437159986/image.png

I mean, when it goes to KB - it shows that it tried, even when it didn't come up with an answer. But in this case it's not even trying...
When I have "on start" on - it works fine. It's only when "on start" is off - then it doesn't look up KB.

https://cdn.discordapp.com/attachments/1129119228029571083/1129363133799075900/image.png

https://cdn.discordapp.com/attachments/1129119228029571083/1129363134143016980/image.png