Intent / AI Transition doesn't work
# 🤝help
s
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
Does it work fine in the emulator?
s
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
what is inside your AI Transition card? (Text to categorize)
f
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
so like this:
Copy code
const input = event.preview
workflow.question = input
f
variableName = event.preview
Like workflow.variableName = event.preview
s
okay, thanks. Any suggestions about ai transition?
f
Add more categories or add something to handle failure