This.ask is not working


Hi, why this.ask is not working? Here is my request and my state


and here is create spot intent


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()?


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(...)