https://discord.gg/botpress logo
Why the AI Transitions does not work?
# 🤝help
b
Objective: I'm trying to filter out type of answers people make after being asked "where are you from?". So in the case someone answers with some bs the bot detects that and re-routes conversation, else it has to be an specific city in Colombia for the bot to continue. If for some reason they ay they can't read the bot can transition to other node Issue: It is not transitionning neither with AI Transition nor with Autonomus nodes. I thought it was the AI (I was using Google Flash version to GPT 4o mini) Solutions: I've tried re-prompting, using transitions, autnomus nodes, ai transitions but nothing works... https://cdn.discordapp.com/attachments/1422301351786057821/1422301352108888074/image.png?ex=68dc2cdb&is=68dadb5b&hm=56eb536a103ee338a3462b50c951a3f2f7cfbddda64620a31e7c14c67d0caf50& https://cdn.discordapp.com/attachments/1422301351786057821/1422301352893354087/image.png?ex=68dc2cdb&is=68dadb5b&hm=b411f4de1db6d766b39ab2bd3da6a0bb6f81b224ae5481001557ab99fe036e41&
w
do you have a preference between autonomous or standard notes for the solution?
the problem seems like a prompt and llm selection issue
gpt 4o mini is really bad
b
I rather AI nodes as code for identifying each city, and request seems an overwork.
w
try this prompt
Copy code
# Your mission
Your objective is to classify the user's response into one of three categories:

1. The user's response is an existing colombian city.
2. The user states they can't read.
3. The user's response is something else.

# Input Data
user response: {{event.preview}}

# Output
- If the message matches category 1, take path (TRANSITION NAME)
- If the message matches category 2, take path (TRANSITION NAME)
- If the message matches category 3, take path (TRANSITION NAME)
then rename the transitions to something a bit more clear
well that's another way to do it i suppose
b
this is a really powerful insight man. Thank you a lot
w
regex the answer into a huge list of colombian cities
but also doesn't seem very effective
try gemini 2.5 flash or flash lite instead of 4o mini
b
hahahaha you nailed it
w
it'll work
b
Thank you very much shen
w
no problem!!! just hit me up if you need more help
b
for cheap AI solution what do you recommend? plus what resource do you recommend for learning prompt engineering
w
gemini 2.5 flash lite is very fast, very cheap and pretty good
for learning i think you just gotta keep doing it, there's no one correct way
and i don't think there are any great resources out there yet
just keep your prompt organized, keep the instructions very clear and easy to understand, and give some examples to the LLM if it's having trouble understanding you
https://artificialanalysis.ai/ this website is pretty good for comparing LLMs too
l
Very good insight by @wide-umbrella-5226 As he said its mostly a prompt issue. You need to be clear and somewhat precise with your prompts! for example "if is another word" might be difficult for the AN to understand as there is a typo! Dont forget you can use chatGPT to polish up the wording! As you play around more with botpress youll get more used it and before you know it youll be a Bot Pro like @wide-umbrella-5226 😉
b
@loud-crowd-60573 @wide-umbrella-5226 Thank you very much for your powerful insights. I'm very motivated with your message ross, thank you
thank you both
w
you're welcome!! we're here if you need anything else
2 Views