https://discord.gg/botpress logo
#🤝help
Intent / AI Transition doesn't work
# 🤝help
s

stocky-lunch-87875

01/11/2024, 10:22 PM
My bot is triggered with a users message from Telegram and it should check if the message contains a request for a meeting. So, it doesn't work, it always act like there is a request even if there's none. Am I doing something wrong or it's just buggy?
f

fresh-fireman-491

01/11/2024, 10:49 PM
Does it work fine in the emulator?
s

stocky-lunch-87875

01/11/2024, 10:53 PM
sometimes yes, mostly no
and I have to input twice. how to correctly capture the first message? I'm extracting from history but it's still waiting for the input
I'm now capturing the first input like this:
Copy code
const input = conversation.SummaryAgent.transcript
workflow.question = input
it solved the first message problem. But the transition is still giving the right direction in 20% of the situations
r

rich-battery-69172

01/12/2024, 4:57 AM
what is inside your AI Transition card? (Text to categorize)
f

fresh-fireman-491

01/12/2024, 5:43 AM
I am not sure if it's the same on telegram but in the Webchat you can't have an empty raw input card. You can use the, wait for input card instead. To capture the first update from the user you can use the event.preview. That variable stores the users latest message
s

stocky-lunch-87875

01/12/2024, 5:50 AM
so like this:
Copy code
const input = event.preview
workflow.question = input
f

fresh-fireman-491

01/12/2024, 9:28 AM
variableName = event.preview
Like workflow.variableName = event.preview
s

stocky-lunch-87875

01/12/2024, 11:56 AM
okay, thanks. Any suggestions about ai transition?
f

fresh-fireman-491

01/12/2024, 3:23 PM
Add more categories or add something to handle failure