Global Intents
# 🤝help
i
Is there a way to create a global intent? For example, if I have a node with a single choice and the user types something in the message box instead of making a choice, global intents would be listening for this and could direct the user accordingly rather than simply crashing. Alternatively, is there a way to have intents and choice cards work together within a node. If these are combined in one node, my testing has always resulted in only the one listed first working. I’m searching for some way for intents and Choice cards to work together.
b
global intents already exist in your library, but your bot won't do anything unless you tell it to
i.e. using an intent flow logic card

https://www.youtube.com/watch?v=t5jALY0RlDA&t=1s

in this video I use intents and capture cards together
i
Thanks for the response Robert! Yes, understood. I'm looking for a way to use intents with Choice cards rather than capture cards. A capture card will capture the info requested and then move on to the next card. On the other hand, if I put intents and a choice card in the same node, as in the attached pics, only what is on top will work. If intents are on top, it will never move on to the choice card as the bot will be waiting for a user intent response. If the choice card is on top, it will never move on to the intents because the bot is waiting for a choice to be made. If a choice card is on top and a user enters something in the message box, the bot will repeat the choice card. I can't find a way to combine the two functionalities.

https://cdn.discordapp.com/attachments/1138926700885966950/1138931013972668536/intent.png

https://cdn.discordapp.com/attachments/1138926700885966950/1138931014291443712/Single_Choice.png

b
oh boy do I have great news for you

https://cdn.discordapp.com/attachments/1138926700885966950/1138931509877821563/Screenshot_2023-08-09_at_4.27.05_PM.png

you can enable choices on a raw input card by using advanced configuration > choice
the bot will still show buttons to your users, but if they type in something that matches an intent, it's listening for that too
i
Wow! Did not now that. I think this will solve my issue well. I'll definitely give it a go. Thanks for the assistance Robert! Much appreciated!
b
\o/
happy bot building!
r
@bumpy-butcher-41910 Thank you, this solved the issue I had today (which was the same as @incalculable-beach-90044 ). I have a related question: Let's say, we have a large bot with over 50 intents. And every time you give the user a choice, you also want to check if they typed in something that matches an intent: how do we handle this? Do we need to add 50 transitions to every choice a user makes to handle all the possible intents?
b
glad to hear that!
this is a great question... I suppose you'd handle this by placing a card for each individual intent, since the idea is that they would all lead to different places
b
This is Gold!
r
Okay, so that would mean 50 transitions for each question?
b
yes, because in theory each intent would lead to a different path, right?
r
Yes, that is correct
b
because I'm thinking about ways around this - i.e. maybe we build an intent logic card that allows you to batch select intents - but if multiple intents have the same outcome, then they should probably just be the same intent
r
Yes, I agree
In my eyes, it's seems a bit odd that we do have a "Enable Knowledge Answering" option inside Botpress, but there is no "Enable Intent Matching" on a node
Because I think that would solve the complete problem
b
hmm
that's a good idea
can you pop it in #1111026806254993459?
r
Letsgooo 🔥
Here is the feature request: https://discord.com/channels/1108396290624213082/1138936675494527037. Please upvote it or give feedback if you want any changes to make it more clear!
i
Right @rough-nest-97014 . This is kind of what I was thinking when I said global intent. Rather than adding intent cards to each node, seems like we should be able to toggle on and off intents from the library in each node for the node to be listening for. Similar to the way we can toggle on and off variables in each node.
r
Yes that would be perfect
i
Upvoted!
r
But I am quite new to the new interface of Botpress. So this means that every time we want to match an intent, we always need to add the transition?
What if the first message of the user is a question that matches with an intent?
i
I think this would be the challenge. Currently, if an intent matches with what the user entered you have to draw a line to the next node to continue the convo. If there were a way to toggle on an intent form the library for a node to be listening for, botpress would need to code a way to get to the next intended node without a line. Not sure how they would do that.
r
Yes I think they would need to change their platform a bit. With other platforms (I reviewed over 50 of them --> https://chatimize.com/chatbot-platform-comparison/) it is quite common that you have a trigger for a flow. And then the intent can be the trigger of a flow
f
haha wow, that's alot of platform for 1 man
Welcome to the community Joren!
Or should i say good to see you back 🙂
f
You made a mistake

https://cdn.discordapp.com/attachments/1138926700885966950/1139046248381427763/Screenshot_2023-08-10-06-02-45-29_40deb401b9ffe8e1df2f1cc5ba480b12.jpg

You can easily Translate
r
Yes this review was still based on the previous Botpress version (not the cloud-based one). Still need to update it
100 Views