Hi, why this.ask is not working? Here is my request and my state
This.ask is not working
rubenaeg
#3
Hi @florijan.allaraj, since the response is logged before your intent is called, I assume this is an asynchronous problem. I’m not sure if this solves it, but could you try to put an await
before this.toStateIntent()
?
AlexSwe
#4
Yes! Ruben’s solution should solve the problem. toStateIntent
returns a promise.
Another solution would be to return this.toStateIntent(...)
. The framework resolves the promise automatically.
return this.toStateIntent(...)