Stack Overflow: A New Way for Developers to Get Support for Alexa

Now you can find Alexa-specific tags and topics in the AWS Collective on Stack Overflow. Ask questions and get help from badged experts and the Alexa developer community!


Spaceboard avatar image
Spaceboard Suspended asked

Guy's can I create a code where I can grab an object which is inside a multiple

Basically I want to create a skill where when I ask Alexa,

"Alexa what are my positivity" //solution "Alexa what are my rejections"//solution "positivity":[ "string" //randomize ]; "rejections": {

"rejection 1":"got turn down in working as a pizza hut delivery " " rejection 2":" got turn down for proposing a marketing campaign for a massage therapist" etc.... }

Now my question I'm just starting out in alexa Do I need to create a new session for rejections? example: (OnsessionStarted) Alexa open tailia... Give me One randomize positivity today(still going to work on my deliver on this.. anyway ) dot dot dot..

what are my rejection's "Ok here are your rejection's .......// the code will randomize 3 string's and tell it.... "What do you want to do now ? (help intent) "you could say Tailia get me my rejection 1 or what is my rejection 1"

My question is should it be a new session ? or maybe I'm thinking about it really complicatedly because I think I could use

response.tell(threestrings)// if threestrings= Threestrings;
 function Threestrings(....){var ran= Math...... then;for(.....){}}return ran; 

That's basically the concept now just scratching my own itch for now

alexa skills kitalexa voice servicealexa smart homeservice simulatorsession
10 |5000

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

1 Answer

Jamie Grossman avatar image
Jamie Grossman answered

You could either end the session after responding to the user, or keep it open and ask them if there is anything else that they wanted like you have done above. Your choice!

10 |5000

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