question

John Iwasz avatar image
John Iwasz asked

CanFulfillIntentRequest implemented but is ignored

fulfillintenttest.pngI have deployed the Clinical Trial Finder skill into production. The skill id is:

amzn1.ask.skill.3ec17474-1c7f-4625-92ee-fb8b5505bc48

I have followed the instructions at:

https://developer.amazon.com/docs/custom-skills/implement-canfulfillintentrequest-for-name-free-interaction.html

I should be able to say "Alexa, find epilepsy clinical trials in New York" and get a valid response. Alexa thinks I have requested a book and informs me that it cannot find "clinical trials in New York" in my library. I have also tried "Alexa, find epilepsy trials in New York" and it responds with "hmm... I don't know that."

I have tested the skill with the following JSON to invoke a CanFillfillIntentRequest and I get a valid response in the test harness. I have CloudWatch logging set up against the lambda function that the skill uses and have never seen Alexa invoke a CanFullfillIntentRequest against the Clinical Trial Finder Skill.

As far I can tell (and I've reread the documentation several times and tested) I cannot determine what I'm doing wrong. I expect a response to "Alexa, find epilepsy trials in New York."

{ "session":{ "new": true, "sessionId":"amzn1.ask.account.AHFCMHMLDLYOWUSFGZISBIEFY67AEXMXKC2WYDAJ6D3VZADVIHPNXEXPRG6JMMLF3YWWIN7Z5YZDZVKFPTP3XSGIDDSFTYPZ5QYZU4N7XFBKACWSQIRXIPRE2YYZNV2YRPKHSY5MCE5VNCPYZMTSYASF6DFN4OMHTBVE3GC5LHISZ7GZR5Q3F4YGZIO47F7C35QV4FNVVIV4HUQ", "application":{ "applicationId":"amzn1.ask.skill.3ec17474-1c7f-4625-92ee-fb8b5505bc48" }, "attributes":{ "key": null }, "user":{ "userId":"amzn1.ask.account.AHFCMHMLDLYOWUSFGZISBIEFY67AEXMXKC2WYDAJ6D3VZADVIHPNXEXPRG6JMMLF3YWWIN7Z5YZDZVKFPTP3XSGIDDSFTYPZ5QYZU4N7XFBKACWSQIRXIPRE2YYZNV2YRPKHSY5MCE5VNCPYZMTSYASF6DFN4OMHTBVE3GC5LHISZ7GZR5Q3F4YGZIO47F7C35QV4FNVVIV4HUQ" } }, "request":{ "type":"CanFulfillIntentRequest", "requestId":"EdwRequestId.8fc18c1f-d903-41a0-a3b0-a6f8b03eddf6", "intent":{ "name":"FindTrialByCityAndConditionIntent", "slots": { "city": { "name": "city", "value": "New York" }, "condition": { "name": "condition", "value": "epilepsy" } } }, "locale":"en-US", "timestamp":"2017-10-03T22:02:29Z" }, "context":{ "AudioPlayer":{ "playerActivity":"IDLE" }, "System":{ "application":{ "applicationId":"amzn1.ask.skill.3ec17474-1c7f-4625-92ee-fb8b5505bc48" }, "user":{ "userId":"amzn1.ask.account.AHFCMHMLDLYOWUSFGZISBIEFY67AEXMXKC2WYDAJ6D3VZADVIHPNXEXPRG6JMMLF3YWWIN7Z5YZDZVKFPTP3XSGIDDSFTYPZ5QYZU4N7XFBKACWSQIRXIPRE2YYZNV2YRPKHSY5MCE5VNCPYZMTSYASF6DFN4OMHTBVE3GC5LHISZ7GZR5Q3F4YGZIO47F7C35QV4FNVVIV4HUQ" }, "device":{ "supportedInterfaces":{ } } } }, "version":"1.0" }

alexa skills kitcanfulfillintentrequest
fulfillintenttest.png (482.2 KiB)
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

KAIYIN@AMAZON.COM avatar image
KAIYIN@AMAZON.COM answered

The CanFulfillIntentRequest interface is currently in public beta so you may not see CanFulfillIntentRequest calls even after onboarding for several weeks. If your skill is eligible for name free interactions, you may observe a ramp up in the number of CanFulfillIntentRequest calls, as well as follow-up IntentRequest calls, over the next few weeks in public beta.

10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.