Closed chandora closed 3 years ago
Hi @chandora ,
Thanks for using our SDK ! Could you please provide your skill ID ? Thus we could check the logs on service side
Thanks, Shen
@ShenChen-Amazon
Thank you for checking this. The skill ID is as follows:
amzn1.ask.skill.322a16f8-88ee-4e53-8e07-feec69668649
The last run was the error case.
Thank you, chandora
Hi @chandora ,
Confirmed with the service team. It turns out this is the expected behavior. With auto delegation Alexa will prompt for slot elicitation without invoking the skill.
I expected to receive a response with 'SUCCESSFUL' status and asking to fulfill the slot.
this does not happen, the service side do not return any responses where the skill was not involved, and the simulation api fail because of missing skill I/O.
Thanks, Shen
Hi @ShenChen-Amazon ,
Thank you for the quick response.
Is there any way to test a conversation with the auto delegation? I know that the Alexa Simulator in the Developer Console supports it. So I believe there might be an API to do it.
If no API is available for it, I will consider submitting a feature request.
I am developing an automated skill test driver, and need this capability for integration tests involving the auto delegation as a part of conversations.
By the way, I would suggest updating the message of the API. "Unexpected error occurred" is "expected behavior" sounds no good :-)
Thank you, chandora
Hi @chandora ,
Unfortunately, the auto delegation is managed by the Dialog Management service, currently the simulate api doesn't support simulate DM. This is a very good point for the simulate api. I've raised a feature request on the service team.
You could post this feature request at Alexa forums as well and vote for it, thus it may be prioritized by the service team if lot of people has the same request.
Thanks, Shen
Hi @ShenChen-Amazon ,
It's sad news but I understood. I will post my feature request once I release the test driver.
Thank you for your support!
Regards, chandora
I'm submitting a...
Expected Behavior
I invoked a skill via the SMAPI Simulation API on the following conditions:
I expected to receive a response with 'SUCCESSFUL' status and asking to fulfill the slot.
Current Behavior
The API returns the 'FAILED' status and "An unexpected error occurred." message in API response (response.result.error) as follows:
{ "message": "An unexpected error occurred." }
When I disabled the auto delegation for the slot and provided the following handler in the skill, the Simulation API returned a response with the 'SUCCESSFUL' status. I could fulfill the slot by invoking the API with a new phrase containing the slot value.
Possible Solution
Steps to Reproduce (for bugs)
The following test code was used to create the issue. "drink stand" is the name of skill.
Context
Your Environment
SMAPI SDK for Nodejs
Node.js and NPM Info