https://discord.gg/botpress logo
#🤝help
Intent is not working.
# 🤝help
e

eager-australia-26534

07/24/2023, 10:01 PM
Hey, I have two nodes which are exactly the same, however, the intent in one of them does not work as shown in the picture.

https://cdn.discordapp.com/attachments/1133157080950394960/1133157081176883220/IMG_4080.jpg

???
@bright-magazine-792 @early-train-33247 @bumpy-butcher-41910 @crooked-van-25152 @User @User @User
The intent just won’t work in my chatbot, it only works on one node, the rest of them it works sometimes and other times it doesn’t, I can write the intent word for word and it still won’t process it.
r

rich-battery-69172

07/25/2023, 11:05 PM
@eager-australia-26534 are the two intents "inline", or are they "library" ? if they are the same intent, they must be in the library and not inline, because otherwise they will compete between each other in the same workflow
e

eager-australia-26534

07/25/2023, 11:11 PM
Neither of them are in the library, however, I have two other nodes which also both have a ‘human’ intent and neither of them work even though they are in the library. Even if I write the things word for word the intent still does not trigger.

https://cdn.discordapp.com/attachments/1133157080950394960/1133536909856092160/IMG_4088.jpg

https://cdn.discordapp.com/attachments/1133157080950394960/1133536910363594822/IMG_4089.jpg

r

rich-battery-69172

07/25/2023, 11:15 PM
@eager-australia-26534 can you check here and show me the content of intents and elected facts when the intent fails?

https://cdn.discordapp.com/attachments/1133157080950394960/1133537935573135380/image.png

e

eager-australia-26534

07/25/2023, 11:36 PM

https://cdn.discordapp.com/attachments/1133157080950394960/1133543250788098118/IMG_4090.jpg

https://cdn.discordapp.com/attachments/1133157080950394960/1133543251136233584/IMG_4091.jpg

r

rich-battery-69172

07/25/2023, 11:38 PM
@eager-australia-26534 need it expanded like in my screenshot
e

eager-australia-26534

07/25/2023, 11:56 PM
Apologies, here you go.

https://cdn.discordapp.com/attachments/1133157080950394960/1133548358800265326/IMG_4092.jpg

https://cdn.discordapp.com/attachments/1133157080950394960/1133548359131594823/IMG_4093.jpg

Also side note, I’ve now turned everything into a library intent, before I sent you these last 2 JSON log pics.
r

rich-battery-69172

07/26/2023, 12:02 AM
@eager-australia-26534 thanks, can you also expand the first 2-3 items inside "top facts" ?
e

eager-australia-26534

07/26/2023, 12:07 AM
There you go, appreciate the time you’re taking out to help me 🤟🏽

https://cdn.discordapp.com/attachments/1133157080950394960/1133551151653064764/IMG_4094.jpg

https://cdn.discordapp.com/attachments/1133157080950394960/1133551151988617246/IMG_4095.jpg

r

rich-battery-69172

07/26/2023, 12:08 AM
oh! it seems like you have two conflicting intents indeed. can you check and make sure that insaide your library you only have have one "Main Menu" intent and that both transition cards are pointing to the same one?
e

eager-australia-26534

07/26/2023, 12:19 AM
I only have one intent in the library for Main Menu. Every single ‘main menu’ intent function in my workflow is connected to exactly this library intent.

https://cdn.discordapp.com/attachments/1133157080950394960/1133554189960740864/IMG_4097.jpg

Yea and both are connected to the main menu node.
Any update? @rich-battery-69172
b

bright-magazine-792

07/26/2023, 4:46 PM
Hey @eager-australia-26534 Did you gave me access to your workspace on intercom? I can recall this issue
c

crooked-van-25152

07/26/2023, 5:06 PM
@eager-australia-26534 sorry I had to delete your message since you added Rohan's email.
@eager-australia-26534 : Sure Rohan, I’ve given you developer access on my bot, it’s called Original AirBnB Chatbot. Also I was experiencing another problem where AI Task is not returning the same answer in telegram as it is in the emulator.
e

eager-australia-26534

07/26/2023, 5:17 PM
Oh jeez I didn’t even clock that, that’s my bad.
As Sabrina mentioned above, I’ve shared the bot with you Rohan and given you developer access. (Original AirBnB Chatbot)
c

crooked-van-25152

07/26/2023, 5:24 PM
All good!
Rohan will probably get back to you later during the day. But he'll look into it, don't worry! We have busy schedules as you can imagine! Thanks for your patience @eager-australia-26534 🚀
b

bright-magazine-792

07/26/2023, 5:59 PM
hey
I did some fixes to your bot
can you test it now?
@eager-australia-26534
e

eager-australia-26534

07/26/2023, 5:59 PM
Will do.
Give me a couple minutes
b

bright-magazine-792

07/26/2023, 5:59 PM
sure
e

eager-australia-26534

07/26/2023, 6:07 PM
Hey Rohan, the main menu intent is only working on the nodes Question and MoreQuery, however it is not working on the nodes Activities and MoreActivity. Additionally the intent Human isn’t working either. If you could explain to me exactly why the intents are not working, maybe I could fix them myself.
b

bright-magazine-792

07/26/2023, 6:22 PM
we're fixing this issue. it is not able to display the detected intent. But the workaround I did is similar to it. an I'm using the detected intent's id from the JSON object for the transition expression
event.nlu.intents[0]?.id === 'ins-22db2f22c5'

https://cdn.discordapp.com/attachments/1133157080950394960/1133826754574819429/image.png

can you check now? I fixed the other nodes as well
human intent works
e

eager-australia-26534

07/26/2023, 6:27 PM
The main menu intent is now working on all nodes , however, the human intent isn’t working on Activities mode or MoreActivity node as shown in the picture.

https://cdn.discordapp.com/attachments/1133157080950394960/1133827919312076971/IMG_4099.jpg

b

bright-magazine-792

07/26/2023, 6:39 PM
add your utterances here

https://cdn.discordapp.com/attachments/1133157080950394960/1133830907254550598/image.png

it works if you just type
human

https://cdn.discordapp.com/attachments/1133157080950394960/1133831110703448145/image.png

so you need to add more utterances to the intent to work properly
just like
Copy code
Hand me over to a real person
take me to a human agent
Can I speak to human?
e

eager-australia-26534

07/26/2023, 6:45 PM
It still isn’t working properly. I’ve added up to 20 utterances. I’m saying the utterance word for word yet it still doesn’t trigger.

https://cdn.discordapp.com/attachments/1133157080950394960/1133832576637865984/IMG_4101.jpg

b

bright-magazine-792

07/26/2023, 6:49 PM
can you test it now?
e

eager-australia-26534

07/26/2023, 6:52 PM
Still not working.

https://cdn.discordapp.com/attachments/1133157080950394960/1133834212189929532/IMG_4102.jpg

b

bright-magazine-792

07/26/2023, 6:52 PM
try refreshing

https://cdn.discordapp.com/attachments/1133157080950394960/1133834451827306577/image.png

e

eager-australia-26534

07/26/2023, 6:56 PM
Started as new user, it is still not working.

https://cdn.discordapp.com/attachments/1133157080950394960/1133835366659530752/IMG_4103.jpg

It’s inconsistent even though I’m saying it word for word. It’s not case sensitive right with capital letters or anything?

https://cdn.discordapp.com/attachments/1133157080950394960/1133835663318462484/IMG_4104.jpg

b

bright-magazine-792

07/26/2023, 7:01 PM

https://cdn.discordapp.com/attachments/1133157080950394960/1133836594357473310/image.png

how does it do here?
can you share a screenshot like i did?
e

eager-australia-26534

07/26/2023, 7:15 PM

https://cdn.discordapp.com/attachments/1133157080950394960/1133840062673604750/IMG_4105.jpg

It’s still inconsistent
AI task is also considering something completely different as an intent to speak to a human. Nothing I said is even remotely related to the dictionary in the library for intern “human”

https://cdn.discordapp.com/attachments/1133157080950394960/1133959911563350036/IMG_4108.jpg

Hey @bright-magazine-792 if I want to add any other intents how do I go about doing that it they are not working in general. I have no clue how you made them work but I do not understand the code.
The intents are not working @bright-magazine-792

https://cdn.discordapp.com/attachments/1133157080950394960/1134555708571000842/IMG_4128.jpg

@rich-battery-69172
b

bumpy-butcher-41910

07/28/2023, 8:17 PM
hello hello!
excellent timing, I just uploaded this:

https://www.youtube.com/watch?v=t5jALY0RlDA

let me know if this helps?
e

eager-australia-26534

07/28/2023, 9:45 PM
Hey @bumpy-butcher-41910 , I know how intents work and Rohan does too, I think the intent function itself might have a bug because it is just not working here’s a pic of what Rohan did to my intent to try and make it work, however it still isn’t functioning properly, some of them work on and off while others don’t even work at all.

https://cdn.discordapp.com/attachments/1133157080950394960/1134602678022967487/IMG_4129.jpg

@bumpy-butcher-41910 If you go over my conversation with Rohan, you can see that my intents looked exactly as you want them to be before Rohan made the changes, they weren’t working before and they aren’t working now. I believe it might be a bug. I’m not coming at Rohan, he’s a great dude and has helped me in the past to fix other problems.
e

early-train-33247

07/28/2023, 10:29 PM
Hey @eager-australia-26534 you could try deleting all of your global intents and intent expressions. Then adding them over again, using only global (library) intents!
e

eager-australia-26534

07/28/2023, 10:49 PM
I could but i want Rohan to take a look first as I don’t want to ruin what he’s done so far.
Hey @early-train-33247, I did exactly that just now, made a copy of my bot and deleted all the intents from nodes and library. I then added them back, however the problem still persists, the bot is not catching the intents even when I say the intent word for word. It just doesn’t trigger. It HAS to be a bug. @bright-magazine-792
Would you be able to take a look into this matter further @bright-magazine-792
@early-train-33247 & @rich-battery-69172 any update?
e

early-train-33247

07/30/2023, 1:02 AM
Alright @eager-australia-26534, thanks for testing this. I'm gonna create an task in our system about this issue!
e

eager-australia-26534

07/30/2023, 5:01 AM
Thanks @early-train-33247 however, how do I find a solution as of right now?