AI prompts in Botpress not working as anticipated
# šŸ¤help
b
Hi, I just built a massive new bot that I’m pretty excited about. But I’m finding that the prompts I write within the AI agent aren’t working as I would expect them to. I recognize part of this is that I’m using the GPT-3.5 model (is there a way to change this?) but prompt language that I have tested outside of BotPress using the OpenAI playground aren’t behaving the way that I’d expect them to either. Are there any tutorials on how the AI agent behaves when compared to the OpenAi playground that can help me to diagnose what’s going wrong? Thanks!
r
@brainy-judge-73567 can you share your prompt here? My biggest advice is to make use of variable descriptions, they really help.
b
There’s about 20 different prompts in the bot, so I’m not sure that’s feasible. What do you mean by variable descriptions? It seems like basically I should be able to put a prompt with the variable inserting the string directly into the prompt. Am I missing something on how this works?
r
well i'm trying to help, without having an actual example of where it fails or doesn't work like anticipated it will be hard to help you
a
these are the variable descriptions
b
Oh, thanks, I didn’t notice that
a
also you can see here the ai task first time it not works another two times how can i prevent these
b
You need to enable your knowledge base on the node I believe
a
how can i enable it
a
You click on a node with a capture card and then head over to the inspector window to toggle "Enable Knowledge Answering"
a
now its working on the test but published is not working properly take look at this Link : https://mediafiles.botpress.cloud/e722a77d-d475-410b-a197-93bd4d898f6d/webchat/bot.html you can test the bot here
can anyone check this
a
i was able to interact with your bot and indeed i got the same behavior. perhaps dumb question, but did you re-publish your bot after you got it working in test? by the way, what change did you do to fix it in the emulator?
a
yes it upto dated ( published ) this issue comes some times in the emulator but in the published it coming again and again
a
hmm. will tag some other members of my team to see if they see something i missed @acceptable-kangaroo-64719 @acceptable-gold-88171
a
What does your flow look like?
a
a
I would export this bot, (botpress icon on top left), then remove every part that's working and figure out where the issue is from the broken part. I think you'll be able to solve your issue this way
a
Adding this video mohamed shared from another thread here to keep things consolidated: https://discord.com/channels/1108396290624213082/1130861347849109656/1131100784273141791
a
hi @acoustic-hair-60678 @acceptable-gold-88171 @acceptable-kangaroo-64719 @rich-battery-69172 im always facing issue on the published bot can i know are you guys working on these issue beacuse why im asking this am creating this bot for my client then i can tell him an date or something to fix these issues recent issues : 1 . you can see in the screenshot last message from the bot "Are you sure you want to cancel?" it asking for yes or no but in my scenario there is no nodes i have created and i have double checked it 2 . same question repeating again and again you can see that on screenshot no 2 also i have attached an video video
r
Click on the ā€œAdvanced Settingsā€ on your capture card that is problematic
The. Click Cancellation
Turn it off
a
are saying this ?
r
No sorry I meant click on Advanced Clnfoguration
You’ll see cancellation
a
i have turned off both is it right
r
Btw the type of variable is wrong: should be single choice not Boolean?
Yes
a
ok
r
Works ?
a
nope its coming again
r
@alert-refrigerator-3619 did you publish.. ?
8 Views