Skip to content

Instantly share code, notes, and snippets.

View monoceros-tech's full-sized avatar
🗣️
Alexa, abre veo veo

Monoceros Labs monoceros-tech

🗣️
Alexa, abre veo veo
View GitHub Profile
@monoceros-tech
monoceros-tech / handlers.js
Last active August 24, 2019 21:49
Snippet de un handler de ejemplo de cómo dar al usuario tiempo a responder - juego (Veo Veo)
const LaunchRequest_Handler = {
canHandle(handlerInput) {
const request = handlerInput.requestEnvelope.request;
return request.type === 'LaunchRequest';
},
handle(handlerInput) {
let response = handlerInput.responseBuilder;
let say = `Estamos en salón. `;
say += `Veo veo, ¿qué ves? una cosita, ¿qué cosita es? Empieza por la letra A `;
requests = {
"LaunchRequest": {
"type": "LaunchRequest",
"requestId": "string",
"timestamp": "string",
"locale": "string"
},
"CanFulfillIntentRequest":{
},
"SessionEndedRequest":{
@monoceros-tech
monoceros-tech / LaunchRequest.json
Created April 13, 2020 09:34
Alexa Request: Launch example
{
"version": "1.0",
"session": {
"new": true,
"sessionId": "amzn1.echo-api.session.0000000-0000-0000-0000-00000000000",
"application": {
"applicationId": "amzn1.echo-sdk-ams.app.000000-d0ed-0000-ad00-000000d00ebe"
},
"attributes": {},
"user": {
{
"version": "1.0",
"session": {
"new": false,
"sessionId": "amzn1.echo-api.session.0000000-0000-0000-0000-00000000000",
"application": {
"applicationId": "amzn1.echo-sdk-ams.app.000000-d0ed-0000-ad00-000000d00ebe"
},
"attributes": {
"supportedHoroscopePeriods": {
@monoceros-tech
monoceros-tech / SessionEndedRequest-A.json
Last active May 21, 2020 09:13
CASES: A) The user says "exit" or "quit". B) The user does not respond or says something that does not match an intent defined in your voice interface while the device is listening for the user's response. C) An error occurs.
{
"version": "1.0",
"session": {
"new": false,
"sessionId": "amzn1.echo-api.session.0000000-0000-0000-0000-00000000000",
"application": {
"applicationId": "amzn1.echo-sdk-ams.app.000000-d0ed-0000-ad00-000000d00ebe"
},
"attributes": {
"supportedHoroscopePeriods": {
{
"version": "1.0",
"context": {
"AudioPlayer": {
"offsetInMilliseconds": 1664,
"token": "4",
"playerActivity": "PLAYING"
},
"System": {
"application": {
{
"version": "1.0",
"session": {
"new": true,
"sessionId": "amzn1.echo-api.session.bf483080-d2d8-4a8c-83e9-aa6619522763",
"application": {
"applicationId": "amzn1.ask.skill.e08b758f-07cd-4995-bba4-c52b9abd212b"
},
"user": {
"userId": "amzn1.ask.account.AGBY4Z6GMAWZ3PUYRY4PWYZP73O2HU6EEMV5JOX7YPL7WT6USSGTLFNALBRVWSDITXSDFZA5CYA64O23VL5SCEQTVLGHODMX2QCOCNUWP4PSBOT5US3V4MJIFZEVUOEHRWADX7VK2OR3DK74UFQLMFVQSELPAF53K53B2SG32ZKSZORWUOL5JLGVHBB66MVJEXN5OVMCES3CPYY"