Intent wont work
# 🤝help
b
Hello, I have not been able to make the Intent work, in this case I show a general menu, however I wish that if the person at once asks for "Pregrado" I send him directly to the Pregrado workflow, however he always enters the menu where I ask if he wants to know about Pregrado or Postgrado.

https://cdn.discordapp.com/attachments/1136786579600457870/1136786580103766016/pregrado.jpg

f
Can you show us also the start node location vs the intent, and an exemple of the emulator?
b

https://cdn.discordapp.com/attachments/1136786579600457870/1136787427940368414/image.png

in the emulator I put the word Pregrado and it does not go to the Pregrado node at the top.
f
did you check the debugger
b

https://cdn.discordapp.com/attachments/1136786579600457870/1136788180255916083/image.png

mmm i think i get it
f
seems like its catching it
if you go the NLU section in the raw JSON tab it should double confirm it
b
in my first node, when I greet to activate the chat there it goes directly if I put the keyword "pregrado".
f
it will execute everything in sequence as long as conditions are met
b
but I want him to be aware of that intention in the second one.
maybe the order is wrong in the second one?
f
can you click the first message on the emulator
and share the json payload
hola message
b

https://cdn.discordapp.com/attachments/1136786579600457870/1136790663908835418/image.png

f
not that one
b

https://cdn.discordapp.com/attachments/1136786579600457870/1136790801335205988/image.png

f
the Hola
yes
b
sorry
f
can you scroll down to the NLU section
open up the menus like this

https://cdn.discordapp.com/attachments/1136786579600457870/1136790965143740426/Screenshot_2023-08-03_at_6.41.16_PM.png

b
ok what value specific

https://cdn.discordapp.com/attachments/1136786579600457870/1136791160225026088/image.png

f

https://cdn.discordapp.com/attachments/1136786579600457870/1136791170824024074/Screenshot_2023-08-03_at_6.42.10_PM.png

ok thanks
seems like the message does not match with you first node message?

https://cdn.discordapp.com/attachments/1136786579600457870/1136791859180613683/Screenshot_2023-08-03_at_6.44.42_PM.png

you are using a personality rewrite i imagine?
b
yes
f
ah
what's inside the pregrado workflow?
b

https://cdn.discordapp.com/attachments/1136786579600457870/1136793012266094652/image.png

only KB check with some prepared answers
ofcourse a select list at frist
f
what's the pregradochoice
(can you click it for me and show me the left pannel)
b

https://cdn.discordapp.com/attachments/1136786579600457870/1136793489368154243/image.png

then I have a code that simply depending on the selection shows a specific image with a preset short description and a paraphrase of the KB made by the AI.

https://cdn.discordapp.com/attachments/1136786579600457870/1136794153506844702/image.png

f
ok seems like what im missing was the NLU payload as you shared for the hola message but for the pregrado message
(like my screenshot) with everything expended
b
if instead of starting the conversation I say "pregrado" at the beginning then the intent works.
but there I am supposed to just respond to the greeting in the first node and go to the second node and skip the intent.
f
yeah i see the issue now
let me make it work on my side
b
I have problems with the order in that node where I place the intent?
that input there with 3 choices, if i text "Pregrado" there intent should work no??

https://cdn.discordapp.com/attachments/1136786579600457870/1136795416483086356/image.png

f
put an empty capture card
set it to raw input and put nothing in it
before your intents
it will create an "await"
just tested it it works like a charm
e
Otherwise move the intents to the end of the node
b
ok let me test
f
yeah you could just move it below your capture card
b
still skipping, always goes through that single choice
f
here is a screenshot of how i set it up

https://cdn.discordapp.com/attachments/1136786579600457870/1136802826903900160/Screenshot_2023-08-03_at_7.28.17_PM.png

b
placing the empty card before the intents works but does not show the menu afterwards
f
did you try putting you current menu before the intents?
b
yes
f
is that a single choice ?
b
yes is a single choice i dont know is calling Raw Input
f
what happens then?
b
i fixed
f
perfect
capture empty plus menus should halt your bot from executing logic
b
I think the intent with single choices in the nodes are confused.
with raw input no problem
I think I better handle the single choice without the direct connections, save the value in a variable and then decide where to send it at the end if it is not intended in the input.

https://cdn.discordapp.com/attachments/1136786579600457870/1136811068522508348/image.png

This is the only way I could handle it. With intent then expressions
🤓
thank you for your support
Hi again just wanted to come by to recommend that you don't mix the intents with the personality agent, when I removed it everything started to work, so I guess it's better to wait for a future update of the personality agent, intents now work as expected and everything is faster without the agent active.
I also think it fails when you combine intent, personality agent and a language other than English.
f
hey @billowy-morning-42410
let me try to replicate i don't have an open issue for that
b
ok, try to communicate in a language other than English, set user translate to that language, and activate the personality agent. Then start placing intent in the nodes, try in the same foreign language. In my case after all day trying to sort the inputs at the end of the day I removed the personality agent and all the intents started to work.
f
ok i'm going to open up a ticket with engineering and follow up here. Thanks for providing extra steps
b
but I think that something happens between the translation and the personality agent when they are together, somehow affecting the intents
f
I have gone ahead and opened a ticket, they might ask more details, i'll let you know what they need.
5 Views