AI Task bugging amid conversation
# 🤝help
e
So the thing is, I've given my bot an AI Task, within which I also included info about a property it needs to answer qs about. I've set everything correctly, went through the structure a couple times and made sure it's fine. Now, when testing my chatbot, I'm asking it question based on the info I've given it in the AI Task, nothing outside of it, and after 2-3 correct answers, it just starts repeating the last answer disregarding any question I'm asking. What could this be and could this be related to the AI Task?
f
Do you have the summary agent on?
e
Nope
This is an extremely strange behavior
As I'm trying the chatbot rn it works fine
Once i hit that "new conversation" button and test it again, it begins to repeat the same answer I got for the first Q
Ignoring the Qs I know the chatbot defo has an answer for
g
Are you including the conversation?
f
Could you share the logs for when this happens or the chat bot so I can see for my self?
n
If you keep going back to the same AI task it can get very buggy and not work so if you want to ask more questions to the AI task you will need to make more nodes with different AI tasks giving each AI task context in the "AI Task Input" area. Thats why I personally use a mix between AI tasks and Stack AI but you will need to be able to code a little bit (I don't know your level). It isn't to difficult but Stack AI can take multiple inputs and have context of previous conversations and give much much better results than the AI task on botpress for now.
e
Used Stack AI a couple times for other chatbots, pretty effective and smooth but according to the Botpress devs, their "GPT Model" is not worse than Stack AI's one
It is tho
It is probably cuz i keep coming back to that same node with the AI Task, as I've created a conversation loop where the users can ask as many qs as they want

https://cdn.discordapp.com/attachments/1145068139541962882/1145301244756361327/Screenshot_2023-08-27_131750.png

This how the loop looks rn
Initially the aiQuestion card was the first card in the AIChatLoop_ro node, so I've moved it into a seperate node cuz I thought this could be the issue with repeating answers as the qs users are asking could converge with the qs they've previously asked the chatbot, so that the chatbot would would just interpret every new Q as the first Q, giving the answer for the 1st Q
After moving the aiQuestion card to another node, it appeared that the chatbot started answering a couple more Qs, but still it's just 4-5 Qs and after that, same issue
f
Could you share a larger picture to see where all of the nodes go?
e

https://cdn.discordapp.com/attachments/1145068139541962882/1145306872488931348/Screenshot_2023-08-27_134017.png

How's this one?
f
I can't see your start node
e

https://cdn.discordapp.com/attachments/1145068139541962882/1145308138950631434/Screenshot_2023-08-27_134518.png

Could it be because of the AI Task Input
f
Can you send the logs for the repeating messages
Also the event debugger
Actually
Not that
Add a text card
{{turn.KnowledgeAgent.citations}}
With that in it
It will show where it got the response from
Then when a repeating message happens
Send me a screenshot of the citations
e

https://cdn.discordapp.com/attachments/1145068139541962882/1145315864527241216/Screenshot_2023-08-27_141429.png

First q, the answer is perfect, exactly what i expected
Now a completely different q, same answer as for the previous q

https://cdn.discordapp.com/attachments/1145068139541962882/1145316165242064906/Screenshot_2023-08-27_141602.png

f

https://cdn.discordapp.com/attachments/1145068139541962882/1145341972459032657/image.png

Do you now have any Knowledge bases?
Add a text card {{turn.KnowledgeAgent.citations}} With that in it It will show where it got the response from Then when a repeating message happens Send me a screenshot of the citations
e
Alright
Nope
The KB Agent is on tho
What node do i add the text card in?
or should I just replace the nextAssistantMessage with the {{turn.KnowledgeAgent.citations}}?
f
No
It wont work
Since you dont have any knowledge bases
What is your bot for?
Since you dont have any
e
Should i just add one?
Well basically i can just copy + paste the info i've provied it in the AI Task and create a pdf or text doc with that and set the doc as the KB?
We could jump in DMs
f
Probs best.