I don't know why it's not possible to switch between intents easily.
I want to integrate Amazon Pay in my Alexa Skill with the ASK SDK v2
So I have this check for the final setup of finished connection setup.
request.type === 'Connections.Response' && request.name === 'Setup'
But how to get back to my original intent?
So imagine I have a intent where the user want to buy something. "OrderIntent".
I return the payment setup "Connections.SendRequest" directive.
Then I get back the "Connections.Response" but how to go back to my "OrderIntent"?
I mean the request is closed and the session is done. So I can't work with SessionAttributes and must use PersistentAttributes. - ok thats not a problem.
But now I stuck on how to get back to my intent. Without that the user says again "Yes please order now".
In the examples https://developer.amazon.com/de/docs/custom-skills/dialog-interface-reference.html#confirmslot they wrote:
Note that you cannot change intents when returning a
Dialogdirective, so the intent name and set of slots must match the intent sent to your skill.
So this is another topic. Why I can send an updated intent with different name as (Dialog) directive when I'm not allowed to change the intent name!?
Thanks in Advance for answers. I am desperate.