question

newuser-47e0f667-7e34-4d12-9487-e38286d9a845 avatar image

How to close the session after fulfilling the request?

  1. After the skill completes a task, the session remains open with no prompt to the user. The skill must close the session after fulfilling requests if it does not prompt the user for any input.

    Issue 1:

    Steps To Reproduce:

    User: "Alexa open visit india"
    Skill: "Welcome to visit india .. where you want to visit in india."
    User: "jaipur"
    Skill: "here my suggetion of place to visit in Jaipur ... Jawahar Circle ...do you want me to tell a fact about this place"
    User: "yes"
    Skill: "here the fact ... Jawahar Circle is situated in Malviya Nagar in Jaipur and boasts of being the largest circular park in Asia. The park has a peculiar jogging track and is encircled by a rose garden. Besides, it has play area for kids and kiosks. The main highlight of the park is the dance of the musical fountains wh...", and the session remains open.

    Issue 2:

    Steps To Reproduce:

    User: "Alexa open visit india"
    Skill: "Welcome to visit india .. where you want to visit in india."
    User: "jaipur"
    Skill: "here my suggetion of place to visit in Jaipur ... Ram Niwas Garden ...do you want me to tell a fact about this place"
    User: "no"
    SKill: "Okay have a nice trip", and the session remains open.

    Please refer to test case 4.1 from the Submission Checklist.
alexa skills kitskillskills
1 comment
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.

Maybe you added a reprompt by accident? Maybe you haven't set shouldEndSession to true in response? Even though it should stop without it, if you haven't added reprompt. To help further, please post some code, at least that part that is causing this issue.

0 Likes 0 ·

1 Answer

Alohakrisi avatar image
Alohakrisi answered

Hi

Do a search in your code for this:

response.askWithCard --> this will leave the session open

response.tellWithCard --> this will close the session

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.