Alexa's default responses interfering with custom skill when asking for AMAZON.DATE -
i'm working on custom alexa skill. part of 1 intent, user needs provide both event name (like "my birthday") , date ("september 1"). conversation should go this:
user: "alexa, start app"
alexa: "sure, what's name of event?"
user: "my birthday"
alexa: "okay, , when take place?"
user: "september 1"
i'm implementing conversation above using dialog interface.
the problem having when users says "september 1", alexa doesn't interpret date filling skill's slot value (which of type amazon.date). instead, seems interpret date outside context of skill. alexa responds date "i don’t see calendar set creating events."
this doesn't happen - alexa interpret date slot correctly , finish dialog. more not, interprets date incorrectly. seems default response spoken date interfering skill's dialog, though skill running , in middle of conversation.
how can make alexa interpret date fulfilling slot instead of triggering generic response date?
one detail may or may not relevant: i'm not testing actual echo device. instead, i'm using echosim.io.
here's entire interaction model definition:
{ "intents": [ { "name": "amazon.cancelintent", "samples": [] }, { "name": "amazon.helpintent", "samples": [] }, { "name": "amazon.stopintent", "samples": [] }, { "name": "startcountdownintent", "samples": [ "start new countdown", "start countdown", "create new countdown", "create countdown" ], "slots": [ { "name": "countdownevent", "type": "amazon.eventtype", "samples": [ "{eventdate}" ] }, { "name": "eventdate", "type": "amazon.date", "samples": [ "{countdownevent}" ] } ] } ], "prompts": [ { "id": "confirm.intent-startcountdownintent", "promptversion": "1.0", "definitionversion": "1.0", "variations": [ { "type": "plaintext", "value": "sounds good, i'll create new countdown {countdownevent} on {eventdate}. sound right?" }, { "type": "plaintext", "value": "okay, i'll start countdown {countdownevent} on {eventdate}. did right?" }, { "type": "plaintext", "value": "i'll create countdown {countdownevent} on {eventdate}. right?" } ] }, { "id": "elicit.intent-startcountdownintent.intentslot-countdownevent", "promptversion": "1.0", "definitionversion": "1.0", "variations": [ { "type": "plaintext", "value": "great, what's event?" }, { "type": "plaintext", "value": "okay, what's event?" }, { "type": "plaintext", "value": "sure. event track?" } ] }, { "id": "elicit.intent-startcountdownintent.intentslot-eventdate", "promptversion": "1.0", "definitionversion": "1.0", "variations": [ { "type": "plaintext", "value": "when event take place?" }, { "type": "plaintext", "value": "ok, when event?" }, { "type": "plaintext", "value": "sure, when take place?" } ] } ], "dialog": { "version": "1.0", "intents": [ { "name": "startcountdownintent", "confirmationrequired": true, "prompts": { "confirm": "confirm.intent-startcountdownintent" }, "slots": [ { "name": "countdownevent", "type": "amazon.eventtype", "elicitationrequired": true, "confirmationrequired": false, "prompts": { "elicit": "elicit.intent-startcountdownintent.intentslot-countdownevent" } }, { "name": "eventdate", "type": "amazon.date", "elicitationrequired": true, "confirmationrequired": false, "prompts": { "elicit": "elicit.intent-startcountdownintent.intentslot-eventdate" } } ] } ] } }
Comments
Post a Comment