pirixtech / techie-buddy Goto Github PK
View Code? Open in Web Editor NEWTechie buddy helps software developers and all desk workers to exercise in a busy day to maintain good posture and health
Techie buddy helps software developers and all desk workers to exercise in a busy day to maintain good posture and health
For Response Welcome to the Techie Buddy, I'm your best buddy during busy StackOverflow copying day. Just say "My neck hurts" to start.
JSON input 1:
{
"version": "1.0",
"session": {
"new": false,
"sessionId": "amzn1.echo-api.session.77c4206d-a4b0-4d66-ae25-b47204e38573",
"application": {
"applicationId": "amzn1.ask.skill.c3772f7a-4aa5-407b-8623-6a9dd104f3e8"
},
"user": {
"userId": "amzn1.ask.account.AGBUSYXGJ54EGUUOFKONBE575WDW7BSX4GQR377DBQRXTHQHYK6HAXCTLSFNNO65EXCFSROCKJGXSXQYDVMHJE4DP6TVKFZTWAZMUS4HCJEKKJCURWXUBE76NQOVHHTOMQFJDHXTIKGTK6PEXWDU6XC6UQPYIYW64H2XC7B3BYCM3HO3W3RXAN6ZIXDX2OTBFJDIVERQ645FCEQ"
}
},
"context": {
"Viewports": [
{
"type": "APL",
"id": "main",
"shape": "RECTANGLE",
"dpi": 160,
"presentationType": "STANDARD",
"canRotate": false,
"configuration": {
"current": {
"mode": "HUB",
"video": {
"codecs": [
"H_264_42",
"H_264_41"
]
},
"size": {
"type": "DISCRETE",
"pixelWidth": 1024,
"pixelHeight": 600
}
}
}
}
],
"Viewport": {
"experiences": [
{
"arcMinuteWidth": 246,
"arcMinuteHeight": 144,
"canRotate": false,
"canResize": false
}
],
"mode": "HUB",
"shape": "RECTANGLE",
"pixelWidth": 1024,
"pixelHeight": 600,
"dpi": 160,
"currentPixelWidth": 1024,
"currentPixelHeight": 600,
"touch": [
"SINGLE"
],
"video": {
"codecs": [
"H_264_42",
"H_264_41"
]
}
},
"System": {
"application": {
"applicationId": "amzn1.ask.skill.c3772f7a-4aa5-407b-8623-6a9dd104f3e8"
},
"user": {
"userId": "amzn1.ask.account.AGBUSYXGJ54EGUUOFKONBE575WDW7BSX4GQR377DBQRXTHQHYK6HAXCTLSFNNO65EXCFSROCKJGXSXQYDVMHJE4DP6TVKFZTWAZMUS4HCJEKKJCURWXUBE76NQOVHHTOMQFJDHXTIKGTK6PEXWDU6XC6UQPYIYW64H2XC7B3BYCM3HO3W3RXAN6ZIXDX2OTBFJDIVERQ645FCEQ"
},
"device": {
"deviceId": "amzn1.ask.device.AF7GGCT65FI5TFLY7PLBUF3IMLYRIYMVFU7K4DINYKMRABKMUSCBYFI2E4FGK57GUYANNUC5ZMLMNSMNQ6UFIGJZKA2S5NTMMEUIR23IFYIPYRMZTY35TUA65BU2H3LBEXCKYXWFHMIMEBFGYQ4LRFXIUUJL3IO3OS3UYFO2DCIB7UWXJHX7U",
"supportedInterfaces": {
"Alexa.Presentation.APL": {
"runtime": {
"maxVersion": "1.4"
}
}
}
},
"apiEndpoint": "https://api.amazonalexa.com",
"apiAccessToken": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6IjEifQ.eyJhdWQiOiJodHRwczovL2FwaS5hbWF6b25hbGV4YS5jb20iLCJpc3MiOiJBbGV4YVNraWxsS2l0Iiwic3ViIjoiYW16bjEuYXNrLnNraWxsLmMzNzcyZjdhLTRhYTUtNDA3Yi04NjIzLTZhOWRkMTA0ZjNlOCIsImV4cCI6MTU5Nzc2MDc2NywiaWF0IjoxNTk3NzYwNDY3LCJuYmYiOjE1OTc3NjA0NjcsInByaXZhdGVDbGFpbXMiOnsiY29udGV4dCI6IkFBQUFBQUFBQUFCa0EzbWlaUHk2Zk1PZTFEaUZvK3ZjS2dFQUFBQUFBQUFlQk9KOHhtbGpIblBIcnplUWIweTdrNFJzand5VGo0cnQ2VGZJTnNqcFdDaUtYaG9mazVlS05EK1lzS1pVSExwYXhVMHdZa1ZPdTVTUnUxZkVOVGRraFJPTWlTaHdJOFNUUE9UM3B3b2cxODJBZTQ3SG4veDZjQVNYeFdQZ0tPdXpwcXU2amVMem01Q25GcmpIakpZMzU1d2E5aVVTbDRRS056R2tVUFVHRlB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6fvnp8rrOcC2FnjWy1RRAVDO2EJ6_NHE0-AJ9OOGu2jpqRU1JaetmJa8P_vU09acFsRL2AxsX2lDe4Kr2ysA-QkzzaSpy4elmXnxM-BfFuin2oeSUl7_9dEFvZAmGtedu8fMgIT_6jQVWKZGOqrRpEOHK_Ey7sAPDoI45jE5g0nnCOnBMO6R9S_RMhvO3uqypQlhVnmRbEvM0r2g"
}
},
"request": {
"type": "SessionEndedRequest",
"requestId": "amzn1.echo-api.request.8eadd95c-58ef-4c8a-a897-471f072e7752",
"timestamp": "2020-08-18T14:21:08Z",
"locale": "en-US",
"reason": "USER_INITIATED"
}
}
JSON Output 1
{
"body": {
"version": "1.0",
"response": {
"type": "_DEFAULT_RESPONSE",
"apiResponse": {
"id": "e1b0d543-1f75-402f-b39e-30f6fb315c04",
"name": "Neck Flexion and Extension",
"duration": 120,
"exercise": [
"Stand with your feet hip-width apart, toes pointing forward or turned slightly outwards, with arms by your sides. Stiffen your abdominal muscles (“brace”) to stabilize your spine, then depress and retract your scapulae (pull shoulders down and back) without arching your low back.",
"Slowly drop your chin toward your chest (neck flexion), think of making a 'double-chin' by pressing your chin directly into your neck. Hold for 15-30 seconds and return to starting positon.",
"Slowly bring the base of your skull toward your back (neck extension), brining your chip up toward the ceiling. Make sure to keep your shoulder relaxed, down and back. Hold for 5-10 seconds and return to starting position.",
"To increase the stretch during flexion, bring one hand behind your head and place your fingertips right above the base of the skull. Apply light pressure.",
"To increase the stretch during extension, bring one hand up to your forehead, placing only one or two fingers fingers on your forehead to apply a light pressure."
]
}
},
"sessionAttributes": {},
"userAgent": "ask-node/2.9.0 Node/v12.18.2"
}
}
JSON Input 2
{
"version": "1.0",
"session": {
"new": false,
"sessionId": "amzn1.echo-api.session.77c4206d-a4b0-4d66-ae25-b47204e38573",
"application": {
"applicationId": "amzn1.ask.skill.c3772f7a-4aa5-407b-8623-6a9dd104f3e8"
},
"user": {
"userId": "amzn1.ask.account.AGBUSYXGJ54EGUUOFKONBE575WDW7BSX4GQR377DBQRXTHQHYK6HAXCTLSFNNO65EXCFSROCKJGXSXQYDVMHJE4DP6TVKFZTWAZMUS4HCJEKKJCURWXUBE76NQOVHHTOMQFJDHXTIKGTK6PEXWDU6XC6UQPYIYW64H2XC7B3BYCM3HO3W3RXAN6ZIXDX2OTBFJDIVERQ645FCEQ"
}
},
"context": {
"Viewports": [
{
"type": "APL",
"id": "main",
"shape": "RECTANGLE",
"dpi": 160,
"presentationType": "STANDARD",
"canRotate": false,
"configuration": {
"current": {
"mode": "HUB",
"video": {
"codecs": [
"H_264_42",
"H_264_41"
]
},
"size": {
"type": "DISCRETE",
"pixelWidth": 1024,
"pixelHeight": 600
}
}
}
}
],
"Viewport": {
"experiences": [
{
"arcMinuteWidth": 246,
"arcMinuteHeight": 144,
"canRotate": false,
"canResize": false
}
],
"mode": "HUB",
"shape": "RECTANGLE",
"pixelWidth": 1024,
"pixelHeight": 600,
"dpi": 160,
"currentPixelWidth": 1024,
"currentPixelHeight": 600,
"touch": [
"SINGLE"
],
"video": {
"codecs": [
"H_264_42",
"H_264_41"
]
}
},
"System": {
"application": {
"applicationId": "amzn1.ask.skill.c3772f7a-4aa5-407b-8623-6a9dd104f3e8"
},
"user": {
"userId": "amzn1.ask.account.AGBUSYXGJ54EGUUOFKONBE575WDW7BSX4GQR377DBQRXTHQHYK6HAXCTLSFNNO65EXCFSROCKJGXSXQYDVMHJE4DP6TVKFZTWAZMUS4HCJEKKJCURWXUBE76NQOVHHTOMQFJDHXTIKGTK6PEXWDU6XC6UQPYIYW64H2XC7B3BYCM3HO3W3RXAN6ZIXDX2OTBFJDIVERQ645FCEQ"
},
"device": {
"deviceId": "amzn1.ask.device.AF7GGCT65FI5TFLY7PLBUF3IMLYRIYMVFU7K4DINYKMRABKMUSCBYFI2E4FGK57GUYANNUC5ZMLMNSMNQ6UFIGJZKA2S5NTMMEUIR23IFYIPYRMZTY35TUA65BU2H3LBEXCKYXWFHMIMEBFGYQ4LRFXIUUJL3IO3OS3UYFO2DCIB7UWXJHX7U",
"supportedInterfaces": {
"Alexa.Presentation.APL": {
"runtime": {
"maxVersion": "1.4"
}
}
}
},
"apiEndpoint": "https://api.amazonalexa.com",
"apiAccessToken": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6IjEifQ.eyJhdWQiOiJodHRwczovL2FwaS5hbWF6b25hbGV4YS5jb20iLCJpc3MiOiJBbGV4YVNraWxsS2l0Iiwic3ViIjoiYW16bjEuYXNrLnNraWxsLmMzNzcyZjdhLTRhYTUtNDA3Yi04NjIzLTZhOWRkMTA0ZjNlOCIsImV4cCI6MTU5Nzc2MDc2NywiaWF0IjoxNTk3NzYwNDY3LCJuYmYiOjE1OTc3NjA0NjcsInByaXZhdGVDbGFpbXMiOnsiY29udGV4dCI6IkFBQUFBQUFBQUFCa0EzbWlaUHk2Zk1PZTFEaUZvK3ZjS2dFQUFBQUFBQUFlQk9KOHhtbGpIblBIcnplUWIweTdrNFJzand5VGo0cnQ2VGZJTnNqcFdDaUtYaG9mazVlS05EK1lzS1pVSExwYXhVMHdZa1ZPdTVTUnUxZkVOVGRraFJPTWlTaHdJOFNUUE9UM3B3b2cxODJBZTQ3SG4veDZjQVNYeFdQZ0tPdXpwcXU2amVMem01Q25GcmpIakpZMzU1d2E5aVVTbDRRS056R2tVUFVHRlB1UW9LVm8wRU5keXNHandPK3FIMGRPbDA1VCtwUytiS0taUjFxRm5kRDRRQjZBZzYvWndVLzdxdlJpU2phN1pZaDBsTVF6dmN4eXp6cHl4WEVmQXl0TitTaXo1SERzSk9RbFpvYWc2Y0xZclZLTU9SN29uN1V4bFUwalFqTzBvditRY1lBc1RIdjFkTVZ6b3pYemVEM3NXSnZ2cGE3NE9BZzdmNy9yYUMwVGNxTXp2RElHTnpVci8zRW5BYS9vYjV2ZXpwLzhhcitMdlZKR0pCYW13NG1remN3NDU0MVp6dFowIiwiY29uc2VudFRva2VuIjpudWxsLCJkZXZpY2VJZCI6ImFtem4xLmFzay5kZXZpY2UuQUY3R0dDVDY1Rkk1VEZMWTdQTEJVRjNJTUxZUklZTVZGVTdLNERJTllLTVJBQktNVVNDQllGSTJFNEZHSzU3R1VZQU5OVUM1Wk1MTU5TTU5RNlVGSUdKWktBMlM1TlRNTUVVSVIyM0lGWUlQWVJNWlRZMzVUVUE2NUJVMkgzTEJFWENLWVhXRkhNSU1FQkZHWVE0TFJGWElVVUpMM0lPM09TM1VZRk8yRENJQjdVV1hKSFg3VSIsInVzZXJJZCI6ImFtem4xLmFzay5hY2NvdW50LkFHQlVTWVhHSjU0RUdVVU9GS09OQkU1NzVXRFc3QlNYNEdRUjM3N0RCUVJYVEhRSFlLNkhBWENUTFNGTk5PNjVFWENGU1JPQ0tKR1hTWFFZRFZNSEpFNERQNlRWS0ZaVFdBWk1VUzRIQ0pFS0tKQ1VSV1hVQkU3Nk5RT1ZISFRPTVFGSkRIWFRJS0dUSzZQRVhXRFU2WEM2VVFQWUlZVzY0SDJYQzdCM0JZQ00zSE8zVzNSWEFONlpJWERYMk9UQkZKRElWRVJRNjQ1RkNFUSJ9fQ.U9NaemFWO9qeyEhhniQJ3jYRlP2R9-vIqHdxJ-2O746-LGVSKAXlyWxJ7VoqMSokBW_CUncAnkO4C235MY0TiGpPgjlPGna4Vhwbbs2Nu6KpTZUMX5Iy_RWz19FZbtli7vITah6fvnp8rrOcC2FnjWy1RRAVDO2EJ6_NHE0-AJ9OOGu2jpqRU1JaetmJa8P_vU09acFsRL2AxsX2lDe4Kr2ysA-QkzzaSpy4elmXnxM-BfFuin2oeSUl7_9dEFvZAmGtedu8fMgIT_6jQVWKZGOqrRpEOHK_Ey7sAPDoI45jE5g0nnCOnBMO6R9S_RMhvO3uqypQlhVnmRbEvM0r2g"
}
},
"request": {
"type": "SessionEndedRequest",
"requestId": "amzn1.echo-api.request.8eadd95c-58ef-4c8a-a897-471f072e7752",
"timestamp": "2020-08-18T14:21:08Z",
"locale": "en-US",
"reason": "USER_INITIATED"
}
}
JSON Output 2
{
"body": {
"version": "1.0",
"response": {
"apiResponse": {
"id": "e1b0d543-1f75-402f-b39e-30f6fb315c04",
"name": "Neck Flexion and Extension",
"duration": 120,
"exercise": [
"Stand with your feet hip-width apart, toes pointing forward or turned slightly outwards, with arms by your sides. Stiffen your abdominal muscles (“brace”) to stabilize your spine, then depress and retract your scapulae (pull shoulders down and back) without arching your low back.",
"Slowly drop your chin toward your chest (neck flexion), think of making a 'double-chin' by pressing your chin directly into your neck. Hold for 15-30 seconds and return to starting positon.",
"Slowly bring the base of your skull toward your back (neck extension), brining your chip up toward the ceiling. Make sure to keep your shoulder relaxed, down and back. Hold for 5-10 seconds and return to starting position.",
"To increase the stretch during flexion, bring one hand behind your head and place your fingertips right above the base of the skull. Apply light pressure.",
"To increase the stretch during extension, bring one hand up to your forehead, placing only one or two fingers fingers on your forehead to apply a light pressure."
]
}
},
"userAgent": "ask-node/2.9.0 Node/v12.18.2",
"sessionAttributes": {}
}
}
JSON Input 3
{
"version": "1.0",
"session": {
"new": true,
"sessionId": "amzn1.echo-api.session.f8a77bba-3300-4f98-aeb7-dc06e54a0ad9",
"application": {
"applicationId": "amzn1.ask.skill.c3772f7a-4aa5-407b-8623-6a9dd104f3e8"
},
"user": {
"userId": "amzn1.ask.account.AGBUSYXGJ54EGUUOFKONBE575WDW7BSX4GQR377DBQRXTHQHYK6HAXCTLSFNNO65EXCFSROCKJGXSXQYDVMHJE4DP6TVKFZTWAZMUS4HCJEKKJCURWXUBE76NQOVHHTOMQFJDHXTIKGTK6PEXWDU6XC6UQPYIYW64H2XC7B3BYCM3HO3W3RXAN6ZIXDX2OTBFJDIVERQ645FCEQ"
}
},
"context": {
"Viewports": [
{
"type": "APL",
"id": "main",
"shape": "RECTANGLE",
"dpi": 160,
"presentationType": "STANDARD",
"canRotate": false,
"configuration": {
"current": {
"mode": "HUB",
"video": {
"codecs": [
"H_264_42",
"H_264_41"
]
},
"size": {
"type": "DISCRETE",
"pixelWidth": 1024,
"pixelHeight": 600
}
}
}
}
],
"Viewport": {
"experiences": [
{
"arcMinuteWidth": 246,
"arcMinuteHeight": 144,
"canRotate": false,
"canResize": false
}
],
"mode": "HUB",
"shape": "RECTANGLE",
"pixelWidth": 1024,
"pixelHeight": 600,
"dpi": 160,
"currentPixelWidth": 1024,
"currentPixelHeight": 600,
"touch": [
"SINGLE"
],
"video": {
"codecs": [
"H_264_42",
"H_264_41"
]
}
},
"System": {
"application": {
"applicationId": "amzn1.ask.skill.c3772f7a-4aa5-407b-8623-6a9dd104f3e8"
},
"user": {
"userId": "amzn1.ask.account.AGBUSYXGJ54EGUUOFKONBE575WDW7BSX4GQR377DBQRXTHQHYK6HAXCTLSFNNO65EXCFSROCKJGXSXQYDVMHJE4DP6TVKFZTWAZMUS4HCJEKKJCURWXUBE76NQOVHHTOMQFJDHXTIKGTK6PEXWDU6XC6UQPYIYW64H2XC7B3BYCM3HO3W3RXAN6ZIXDX2OTBFJDIVERQ645FCEQ"
},
"device": {
"deviceId": "amzn1.ask.device.AF7GGCT65FI5TFLY7PLBUF3IMLYRIYMVFU7K4DINYKMRABKMUSCBYFI2E4FGK57GUYANNUC5ZMLMNSMNQ6UFIGJZKA2S5NTMMEUIR23IFYIPYRMZTY35TUA65BU2H3LBEXCKYXWFHMIMEBFGYQ4LRFXIUUJL3IO3OS3UYFO2DCIB7UWXJHX7U",
"supportedInterfaces": {
"Alexa.Presentation.APL": {
"runtime": {
"maxVersion": "1.4"
}
}
}
},
"apiEndpoint": "https://api.amazonalexa.com",
"apiAccessToken": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6IjEifQ.eyJhdWQiOiJodHRwczovL2FwaS5hbWF6b25hbGV4YS5jb20iLCJpc3MiOiJBbGV4YVNraWxsS2l0Iiwic3ViIjoiYW16bjEuYXNrLnNraWxsLmMzNzcyZjdhLTRhYTUtNDA3Yi04NjIzLTZhOWRkMTA0ZjNlOCIsImV4cCI6MTU5Nzc2MDc2NywiaWF0IjoxNTk3NzYwNDY3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k5PNjVFWENGU1JPQ0tKR1hTWFFZRFZNSEpFNERQNlRWS0ZaVFdBWk1VUzRIQ0pFS0tKQ1VSV1hVQkU3Nk5RT1ZISFRPTVFGSkRIWFRJS0dUSzZQRVhXRFU2WEM2VVFQWUlZVzY0SDJYQzdCM0JZQ00zSE8zVzNSWEFONlpJWERYMk9UQkZKRElWRVJRNjQ1RkNFUSJ9fQ.U9NaemFWO9qeyEhhniQJ3jYRlP2R9-vIqHdxJ-2O746-LGVSKAXlyWxJ7VoqMSokBW_CUncAnkO4C235MY0TiGpPgjlPGna4Vhwbbs2Nu6KpTZUMX5Iy_RWz19FZbtli7vITah6fvnp8rrOcC2FnjWy1RRAVDO2EJ6_NHE0-AJ9OOGu2jpqRU1JaetmJa8P_vU09acFsRL2AxsX2lDe4Kr2ysA-QkzzaSpy4elmXnxM-BfFuin2oeSUl7_9dEFvZAmGtedu8fMgIT_6jQVWKZGOqrRpEOHK_Ey7sAPDoI45jE5g0nnCOnBMO6R9S_RMhvO3uqypQlhVnmRbEvM0r2g"
}
},
"request": {
"type": "LaunchRequest",
"requestId": "amzn1.echo-api.request.1b2f35ed-55dc-48a1-984d-9a21706500ac",
"timestamp": "2020-08-18T14:21:08Z",
"locale": "en-US",
"shouldLinkResultBeReturned": false
}
}
JSON Output 3
{
"body": {
"version": "1.0",
"response": {
"directives": [
{
"type": "Alexa.Presentation.APLA.RenderDocument",
"token": "AlexaConversationsWelcome",
"document": {
"type": "APLA",
"version": "0.8",
"mainTemplate": {
"parameters": [
"payload"
],
"item": {
"type": "Selector",
"strategy": "randomItem",
"items": [
{
"type": "Speech",
"contentType": "text",
"content": "Welcome to the Techie Buddy, I'm your best buddy during busy StackOverflow copying day. Just say \"My neck hurts\" to start."
}
]
}
}
},
"datasources": {}
}
],
"shouldEndSession": false,
"type": "_DEFAULT_RESPONSE"
},
"sessionAttributes": {}
}
}
For response ``
JSON Input 1
{
"version": "1.0",
"session": {
"new": false,
"sessionId": "amzn1.echo-api.session.f8a77bba-3300-4f98-aeb7-dc06e54a0ad9",
"application": {
"applicationId": "amzn1.ask.skill.c3772f7a-4aa5-407b-8623-6a9dd104f3e8"
},
"user": {
"userId": "amzn1.ask.account.AGBUSYXGJ54EGUUOFKONBE575WDW7BSX4GQR377DBQRXTHQHYK6HAXCTLSFNNO65EXCFSROCKJGXSXQYDVMHJE4DP6TVKFZTWAZMUS4HCJEKKJCURWXUBE76NQOVHHTOMQFJDHXTIKGTK6PEXWDU6XC6UQPYIYW64H2XC7B3BYCM3HO3W3RXAN6ZIXDX2OTBFJDIVERQ645FCEQ"
}
},
"context": {
"Viewports": [
{
"type": "APL",
"id": "main",
"shape": "RECTANGLE",
"dpi": 160,
"presentationType": "STANDARD",
"canRotate": false,
"configuration": {
"current": {
"mode": "HUB",
"video": {
"codecs": [
"H_264_42",
"H_264_41"
]
},
"size": {
"type": "DISCRETE",
"pixelWidth": 1024,
"pixelHeight": 600
}
}
}
}
],
"Viewport": {
"experiences": [
{
"arcMinuteWidth": 246,
"arcMinuteHeight": 144,
"canRotate": false,
"canResize": false
}
],
"mode": "HUB",
"shape": "RECTANGLE",
"pixelWidth": 1024,
"pixelHeight": 600,
"dpi": 160,
"currentPixelWidth": 1024,
"currentPixelHeight": 600,
"touch": [
"SINGLE"
],
"video": {
"codecs": [
"H_264_42",
"H_264_41"
]
}
},
"System": {
"application": {
"applicationId": "amzn1.ask.skill.c3772f7a-4aa5-407b-8623-6a9dd104f3e8"
},
"user": {
"userId": "amzn1.ask.account.AGBUSYXGJ54EGUUOFKONBE575WDW7BSX4GQR377DBQRXTHQHYK6HAXCTLSFNNO65EXCFSROCKJGXSXQYDVMHJE4DP6TVKFZTWAZMUS4HCJEKKJCURWXUBE76NQOVHHTOMQFJDHXTIKGTK6PEXWDU6XC6UQPYIYW64H2XC7B3BYCM3HO3W3RXAN6ZIXDX2OTBFJDIVERQ645FCEQ"
},
"device": {
"deviceId": "amzn1.ask.device.AF7GGCT65FI5TFLY7PLBUF3IMLYRIYMVFU7K4DINYKMRABKMUSCBYFI2E4FGK57GUYANNUC5ZMLMNSMNQ6UFIGJZKA2S5NTMMEUIR23IFYIPYRMZTY35TUA65BU2H3LBEXCKYXWFHMIMEBFGYQ4LRFXIUUJL3IO3OS3UYFO2DCIB7UWXJHX7U",
"supportedInterfaces": {
"Alexa.Presentation.APL": {
"runtime": {
"maxVersion": "1.4"
}
}
}
},
"apiEndpoint": "https://api.amazonalexa.com",
"apiAccessToken": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6IjEifQ.eyJhdWQiOiJodHRwczovL2FwaS5hbWF6b25hbGV4YS5jb20iLCJpc3MiOiJBbGV4YVNraWxsS2l0Iiwic3ViIjoiYW16bjEuYXNrLnNraWxsLmMzNzcyZjdhLTRhYTUtNDA3Yi04NjIzLTZhOWRkMTA0ZjNlOCIsImV4cCI6MTU5Nzc2MDg4NiwiaWF0IjoxNTk3NzYwNTg2LCJuYmYiOjE1OTc3NjA1ODYsInByaXZhdGVDbGFpbXMiOnsiY29udGV4dCI6IkFBQUFBQUFBQUFCa0EzbWlaUHk2Zk1PZTFEaUZvK3ZjS2dFQUFBQUFBQUFiMUJ1RmYwTDB6b01BT0xHcTVTUFJSTUxyYThaeVM3cXdKSVN0YzFHTFBPMUNBOElIS3NuOGJqSFVoQlVyaVg1aFdRb1JXQzVEeVpIdDlJT0FsZWVBakxkdHlWZTRzRnJvQmtEUHAwU096WGw1Y0hoUG0xeUJsRm9vT1dOZkFhNldWL3RtckswV2s5cFY3cFB0clVSa0tvSnMyOGRObCtCdUJtemFQbUVjR09OZzNRaDNpZy9EcDBHMXhJbjRFUzJ1NXUwU3JtN3V5dlBGYWVZRWFXbFBPeXFVWGNMa0NKbGd1MDZ6NHBEYmNDaktURXNhZU9NL21mZ1VjRzlFaTJCRy91cWkraEhOdDl2c20vczZCOXF0Sk5Pakg0QnJoSzB3QlhjYVYvczhKZzVwc0g1S2hFNjB2czVoSzBLOENkV1FHL29LSnYwREhG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
}
},
"request": {
"type": "IntentRequest",
"requestId": "amzn1.echo-api.request.f5733167-90ed-4a40-859e-f7bc14fa669f",
"locale": "en-US",
"timestamp": "2020-08-18T14:23:06Z",
"intent": {
"name": "AMAZON.FallbackIntent",
"confirmationStatus": "NONE"
}
}
}
JSON Output 1
{
"body": {
"version": "1.0",
"response": {
"directives": [
{
"type": "Alexa.Presentation.APLA.RenderDocument",
"token": "ConfirmGetPhysicalExerciseResponsePrompt",
"document": {
"type": "APLA",
"version": "0.8",
"mainTemplate": {
"parameters": [
"payload"
],
"item": {
"type": "Selector",
"strategy": "randomItem",
"items": [
{
"type": "Speech",
"contentType": "text",
"content": "Just to confirm, you are feeling pain on ${payload.bodyArea}?"
},
{
"type": "Speech",
"contentType": "text",
"content": "That was for ${payload.bodyArea}?"
},
{
"type": "Speech",
"contentType": "text",
"content": "It is your ${payload.bodyArea} hurts, is that right?"
}
]
}
}
},
"datasources": {
"bodyArea": "neck"
}
}
],
"shouldEndSession": false,
"type": "_DEFAULT_RESPONSE"
},
"sessionAttributes": {}
}
}
For response I have a for you.
JSON Input 1
{
"version": "1.0",
"session": {
"new": false,
"sessionId": "amzn1.echo-api.session.f8a77bba-3300-4f98-aeb7-dc06e54a0ad9",
"application": {
"applicationId": "amzn1.ask.skill.c3772f7a-4aa5-407b-8623-6a9dd104f3e8"
},
"user": {
"userId": "amzn1.ask.account.AGBUSYXGJ54EGUUOFKONBE575WDW7BSX4GQR377DBQRXTHQHYK6HAXCTLSFNNO65EXCFSROCKJGXSXQYDVMHJE4DP6TVKFZTWAZMUS4HCJEKKJCURWXUBE76NQOVHHTOMQFJDHXTIKGTK6PEXWDU6XC6UQPYIYW64H2XC7B3BYCM3HO3W3RXAN6ZIXDX2OTBFJDIVERQ645FCEQ"
}
},
"context": {
"System": {
"application": {
"applicationId": "amzn1.ask.skill.c3772f7a-4aa5-407b-8623-6a9dd104f3e8"
},
"user": {
"userId": "amzn1.ask.account.AGBUSYXGJ54EGUUOFKONBE575WDW7BSX4GQR377DBQRXTHQHYK6HAXCTLSFNNO65EXCFSROCKJGXSXQYDVMHJE4DP6TVKFZTWAZMUS4HCJEKKJCURWXUBE76NQOVHHTOMQFJDHXTIKGTK6PEXWDU6XC6UQPYIYW64H2XC7B3BYCM3HO3W3RXAN6ZIXDX2OTBFJDIVERQ645FCEQ"
},
"device": {
"deviceId": "amzn1.ask.device.AF7GGCT65FI5TFLY7PLBUF3IMLYRIYMVFU7K4DINYKMRABKMUSCBYFI2E4FGK57GUYANNUC5ZMLMNSMNQ6UFIGJZKA2S5NTMMEUIR23IFYIPYRMZTY35TUA65BU2H3LBEXCKYXWFHMIMEBFGYQ4LRFXIUUJL3IO3OS3UYFO2DCIB7UWXJHX7U",
"supportedInterfaces": {
"Alexa.Presentation.APL": {
"runtime": {
"maxVersion": "1.4"
}
}
}
},
"apiEndpoint": "https://api.amazonalexa.com",
"apiAccessToken": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6IjEifQ.eyJhdWQiOiJodHRwczovL2FwaS5hbWF6b25hbGV4YS5jb20iLCJpc3MiOiJBbGV4YVNraWxsS2l0Iiwic3ViIjoiYW16bjEuYXNrLnNraWxsLmMzNzcyZjdhLTRhYTUtNDA3Yi04NjIzLTZhOWRkMTA0ZjNlOCIsImV4cCI6MTU5Nzc2MDg5OSwiaWF0IjoxNTk3NzYwNTk5LCJuYmYiOjE1OTc3NjA1OTksInByaXZhdGVDbGFpbXMiOnsiY29udGV4dCI6IkFBQUFBQUFBQUFCa0EzbWlaUHk2Zk1PZTFEaUZvK3ZjS2dFQUFBQUFBQUR3b2NXS1IweTJVZmJieUt0N0FhRTdUYVJyZS95UXE3TlRyUUltOStURHZEVytwbjRjZy9uZGhDWEdhZndpUGpzcFBxZTZHbFpiY3BDZVJTVUpXWktpYmE4YXpibUp4eXZMNU1samJPMHYvVlBzTnczOHY1Yy80WG9ZbHZleFJMK3NKQ1NKd3FONXZWVTNvYS9KY1BtUmRQMUdSbWx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1tHBRuFVii7sqhCk4MHUrKCzU2YDwYkwEK2PsL63cHpeCV9_0RjkbM4Rzc1DDEQJFtfdT_GQP1tFMu-EOGEXJ3c04N9O6jenroKwMx_3BwEFm-KAkEAEDoM2upgbHwv60shjYakZjXmY9mvEZUWp5zMTSMpMcB1KokhoxANL5T7wXFFPM514M_v3aFtTXG09KkUD7luCZxEAkhhdfElTbq2e5XJ-GNP0OLbb4oo3iEXxTg"
},
"Viewport": {
"experiences": [
{
"arcMinuteWidth": 246,
"arcMinuteHeight": 144,
"canRotate": false,
"canResize": false
}
],
"mode": "HUB",
"shape": "RECTANGLE",
"pixelWidth": 1024,
"pixelHeight": 600,
"dpi": 160,
"currentPixelWidth": 1024,
"currentPixelHeight": 600,
"touch": [
"SINGLE"
],
"keyboard": null,
"video": {
"codecs": [
"H_264_42",
"H_264_41"
]
}
},
"Viewports": [
{
"type": "APL",
"id": "main",
"shape": "RECTANGLE",
"dpi": 160,
"presentationType": "STANDARD",
"canRotate": false,
"configuration": {
"current": {
"mode": "HUB",
"video": {
"codecs": [
"H_264_42",
"H_264_41"
]
},
"size": {
"type": "DISCRETE",
"pixelWidth": 1024,
"pixelHeight": 600
}
}
}
}
]
},
"request": {
"type": "Dialog.API.Invoked",
"requestId": "amzn1.echo-api.request.c1e727b7-f1a6-42a0-a175-020b8b9f127f",
"timestamp": "2020-08-18T14:23:19Z",
"locale": "en_US",
"apiRequest": {
"name": "getPhysicalExercise",
"arguments": {
"bodyArea": "neck"
},
"slots": {
"bodyArea": {
"type": "Simple",
"value": "neck",
"resolutions": {
"resolutionsPerAuthority": [
{
"authority": "amzn1.er-authority.echo-sdk.amzn1.ask.skill.c3772f7a-4aa5-407b-8623-6a9dd104f3e8.BodyArea",
"status": {
"code": "ER_SUCCESS_MATCH"
},
"values": [
{
"value": {
"name": "neck",
"id": "45fe7e5529d283851d93b74536e095a0"
}
}
]
}
]
}
}
}
}
}
}
Output 1
{
"body": {
"version": "1.0",
"response": {
"apiResponse": {
"id": "d5c1d347-4687-4bb3-9c51-44026da80563",
"name": "Neck Flexion and Extension",
"duration": 120,
"exercise": [
"Stand with your feet hip-width apart, toes pointing forward or turned slightly outwards, with arms by your sides. Stiffen your abdominal muscles (“brace”) to stabilize your spine, then depress and retract your scapulae (pull shoulders down and back) without arching your low back.",
"Slowly drop your chin toward your chest (neck flexion), think of making a 'double-chin' by pressing your chin directly into your neck. Hold for 15-30 seconds and return to starting positon.",
"Slowly bring the base of your skull toward your back (neck extension), brining your chip up toward the ceiling. Make sure to keep your shoulder relaxed, down and back. Hold for 5-10 seconds and return to starting position.",
"To increase the stretch during flexion, bring one hand behind your head and place your fingertips right above the base of the skull. Apply light pressure.",
"To increase the stretch during extension, bring one hand up to your forehead, placing only one or two fingers fingers on your forehead to apply a light pressure."
]
}
},
"userAgent": "ask-node/2.9.0 Node/v12.18.2",
"sessionAttributes": {}
}
}
JSON input 1
{
"version": "1.0",
"session": {
"new": false,
"sessionId": "amzn1.echo-api.session.f8a77bba-3300-4f98-aeb7-dc06e54a0ad9",
"application": {
"applicationId": "amzn1.ask.skill.c3772f7a-4aa5-407b-8623-6a9dd104f3e8"
},
"user": {
"userId": "amzn1.ask.account.AGBUSYXGJ54EGUUOFKONBE575WDW7BSX4GQR377DBQRXTHQHYK6HAXCTLSFNNO65EXCFSROCKJGXSXQYDVMHJE4DP6TVKFZTWAZMUS4HCJEKKJCURWXUBE76NQOVHHTOMQFJDHXTIKGTK6PEXWDU6XC6UQPYIYW64H2XC7B3BYCM3HO3W3RXAN6ZIXDX2OTBFJDIVERQ645FCEQ"
}
},
"context": {
"Viewports": [
{
"type": "APL",
"id": "main",
"shape": "RECTANGLE",
"dpi": 160,
"presentationType": "STANDARD",
"canRotate": false,
"configuration": {
"current": {
"mode": "HUB",
"video": {
"codecs": [
"H_264_42",
"H_264_41"
]
},
"size": {
"type": "DISCRETE",
"pixelWidth": 1024,
"pixelHeight": 600
}
}
}
}
],
"Viewport": {
"experiences": [
{
"arcMinuteWidth": 246,
"arcMinuteHeight": 144,
"canRotate": false,
"canResize": false
}
],
"mode": "HUB",
"shape": "RECTANGLE",
"pixelWidth": 1024,
"pixelHeight": 600,
"dpi": 160,
"currentPixelWidth": 1024,
"currentPixelHeight": 600,
"touch": [
"SINGLE"
],
"video": {
"codecs": [
"H_264_42",
"H_264_41"
]
}
},
"System": {
"application": {
"applicationId": "amzn1.ask.skill.c3772f7a-4aa5-407b-8623-6a9dd104f3e8"
},
"user": {
"userId": "amzn1.ask.account.AGBUSYXGJ54EGUUOFKONBE575WDW7BSX4GQR377DBQRXTHQHYK6HAXCTLSFNNO65EXCFSROCKJGXSXQYDVMHJE4DP6TVKFZTWAZMUS4HCJEKKJCURWXUBE76NQOVHHTOMQFJDHXTIKGTK6PEXWDU6XC6UQPYIYW64H2XC7B3BYCM3HO3W3RXAN6ZIXDX2OTBFJDIVERQ645FCEQ"
},
"device": {
"deviceId": "amzn1.ask.device.AF7GGCT65FI5TFLY7PLBUF3IMLYRIYMVFU7K4DINYKMRABKMUSCBYFI2E4FGK57GUYANNUC5ZMLMNSMNQ6UFIGJZKA2S5NTMMEUIR23IFYIPYRMZTY35TUA65BU2H3LBEXCKYXWFHMIMEBFGYQ4LRFXIUUJL3IO3OS3UYFO2DCIB7UWXJHX7U",
"supportedInterfaces": {
"Alexa.Presentation.APL": {
"runtime": {
"maxVersion": "1.4"
}
}
}
},
"apiEndpoint": "https://api.amazonalexa.com",
"apiAccessToken": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6IjEifQ.eyJhdWQiOiJodHRwczovL2FwaS5hbWF6b25hbGV4YS5jb20iLCJpc3MiOiJBbGV4YVNraWxsS2l0Iiwic3ViIjoiYW16bjEuYXNrLnNraWxsLmMzNzcyZjdhLTRhYTUtNDA3Yi04NjIzLTZhOWRkMTA0ZjNlOCIsImV4cCI6MTU5Nzc2MDg5OSwiaWF0IjoxNTk3NzYwNTk5LCJuYmYiOjE1OTc3NjA1OTksInByaXZhdG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ZRFZNSEpFNERQNlRWS0ZaVFdBWk1VUzRIQ0pFS0tKQ1VSV1hVQkU3Nk5RT1ZISFRPTVFGSkRIWFRJS0dUSzZQRVhXRFU2WEM2VVFQWUlZVzY0SDJYQzdCM0JZQ00zSE8zVzNSWEFONlpJWERYMk9UQkZKRElWRVJRNjQ1RkNFUSJ9fQ.PZ3Wa8jB7u3rRWOc8fL-3iOyjKzuYiLpLMaOUKEggxDYRkt-P9_zFKbwbU46VWPQ50ANdm4oR30yqp2pBOjOPybLsTYM6rn859BbxZ4P1tHBRuFVii7sqhCk4MHUrKCzU2YDwYkwEK2PsL63cHpeCV9_0RjkbM4Rzc1DDEQJFtfdT_GQP1tFMu-EOGEXJ3c04N9O6jenroKwMx_3BwEFm-KAkEAEDoM2upgbHwv60shjYakZjXmY9mvEZUWp5zMTSMpMcB1KokhoxANL5T7wXFFPM514M_v3aFtTXG09KkUD7luCZxEAkhhdfElTbq2e5XJ-GNP0OLbb4oo3iEXxTg"
}
},
"request": {
"type": "IntentRequest",
"requestId": "amzn1.echo-api.request.13a7197a-f0e2-4f19-a56a-48872d548971",
"locale": "en-US",
"timestamp": "2020-08-18T14:23:19Z",
"intent": {
"name": "DummyIntent",
"confirmationStatus": "NONE"
}
}
}
JSON output 2
{
"body": {
"version": "1.0",
"response": {
"directives": [
{
"type": "Alexa.Presentation.APLA.RenderDocument",
"token": "notifySuccess_getPhysicalExerciseResponsePrompt",
"document": {
"type": "APLA",
"version": "0.8",
"mainTemplate": {
"parameters": [
"payload"
],
"item": {
"type": "Selector",
"strategy": "randomItem",
"items": [
{
"type": "Speech",
"contentType": "text",
"content": "I recommend exercise ${payload.getPhysicalExerciseResult.exerciseId}."
},
{
"type": "Speech",
"contentType": "text",
"content": "A ${payload.getPhysicalExerciseResult.bodyArea} exercise will be helpful."
},
{
"type": "Speech",
"contentType": "text",
"content": "I have a ${payload.getPhysicalExerciseResult.bodyArea} for you."
}
]
}
}
},
"datasources": {
"getPhysicalExerciseResult": {
"duration": 120,
"name": "Neck Flexion and Extension",
"exercise": [
"Stand with your feet hip-width apart, toes pointing forward or turned slightly outwards, with arms by your sides. Stiffen your abdominal muscles (“brace”) to stabilize your spine, then depress and retract your scapulae (pull shoulders down and back) without arching your low back.",
"Slowly drop your chin toward your chest (neck flexion), think of making a 'double-chin' by pressing your chin directly into your neck. Hold for 15-30 seconds and return to starting positon.",
"Slowly bring the base of your skull toward your back (neck extension), brining your chip up toward the ceiling. Make sure to keep your shoulder relaxed, down and back. Hold for 5-10 seconds and return to starting position.",
"To increase the stretch during flexion, bring one hand behind your head and place your fingertips right above the base of the skull. Apply light pressure.",
"To increase the stretch during extension, bring one hand up to your forehead, placing only one or two fingers fingers on your forehead to apply a light pressure."
],
"id": "d5c1d347-4687-4bb3-9c51-44026da80563"
}
}
}
],
"shouldEndSession": false,
"type": "_DEFAULT_RESPONSE"
},
"sessionAttributes": {},
"userAgent": "ask-node/2.9.0 Node/v12.18.2"
}
}
User can choose the level of exercise they'd like to do, beginner, intermediate, advanced, surprise me
This includes the following body parts first:
The session remained open even when the users are not asked for an input.
Steps to reproduce:
User:"Alexa open techie buddy"
Skill plays snippet:"Welcome to the techie buddy....just say my neck hurts to start"
User:"my neck hurts"
Skill plays snippet:"it is that your neck hurts,is that correct?"
User:"yes"
Skill plays snippet:"found an exercise for you....stay in this position for 30 seconds" and session remains open.
Please ensure that the session gets closed post completing a functionality if users are not prompted for an input.
Update the “shouldEndSession” attribute value to “True” from “False”. This will keep the session closed.
For more information on Session Management, click here. Also, for common certification failures and their fix, click here.
Exercises for
User can say:
I'd like to do 3 sets of neck exercise
and techie buddy will ask if it is the same set or different set and play along based on user's choice
Parse body area from Alexa conversation so Alexa can provide more exercises related to back, leg etc.
Collect sample conversation flow from real people interactions
Since some of the exercise poses are easier to see to follow, extend to video
With this APL-A template:
"type": "APLA",
"version": "0.8",
"mainTemplate": {
"parameters": [
"payload"
],
"item": {
"type": "Selector",
"strategy": "randomItem",
"items": [
{
"type": "Speech",
"contentType": "text",
"content": "Are you ready? I found this exercise hopefully can help you. ${payload.getPhysicalExerciseResult.exercise}."
},
{
"type": "Speech",
"contentType": "text",
"content": "A ${payload.getPhysicalExerciseResult.bodyArea} exercise will be helpful. Here's one for you, ${payload.getPhysicalExerciseResult.exercise}"
},
{
"type": "Speech",
"contentType": "text",
"content": "I have a ${payload.getPhysicalExerciseResult.bodyArea} exercise for you. ${payload.getPhysicalExerciseResult.exercise}"
},
{
"type": "Speech",
"contentType": "text",
"content": "Found an exercise for you ${payload.getPhysicalExerciseResult.exercise}"
}
]
}
}
}```
The test response from Alexa
![Screen Shot 2020-08-26 at 12 13 23 PM](https://user-images.githubusercontent.com/4936719/91328934-8e31e780-e795-11ea-8ca9-a4792e1d1a38.png)
However, there're response returned back from Alexa but still renders `Something went wrong`
{
"header": {
"namespace": "SkillDebugger",
"name": "CaptureDebuggingInfo",
"messageId": "e51a9ed1-c683-4bf2-b0ce-67b22846de7a"
},
"payload": {
"skillId": "amzn1.ask.skill.c3772f7a-4aa5-407b-8623-6a9dd104f3e8",
"timestamp": "2020-08-26T22:49:16.166Z",
"dialogRequestId": "fbcc3422-51ff-4aaf-b009-c73da9205f03",
"skillRequestId": "amzn1.echo-api.request.3daed7bc-dcff-40a3-a971-2a8f8ea2b17b",
"type": "SkillExecutionInfo",
"content": {
"invocationRequest": {
"endpoint": "arn:aws:lambda:us-east-1:683778474338:function:getExerciseRoutine",
"body": {
"version": "1.0",
"session": {
"new": false,
"sessionId": "amzn1.echo-api.session.38ceab85-12aa-4dc7-a86a-a375bcb3ce62",
"application": {
"applicationId": "amzn1.ask.skill.c3772f7a-4aa5-407b-8623-6a9dd104f3e8"
},
"user": {
"userId": "amzn1.ask.account.AGBUSYXGJ54EGUUOFKONBE575WDW7BSX4GQR377DBQRXTHQHYK6HAXCTLSFNNO65EXCFSROCKJGXSXQYDVMHJE4DP6TVKFZTWAZMUS4HCJEKKJCURWXUBE76NQOVHHTOMQFJDHXTIKGTK6PEXWDU6XC6UQPYIYW64H2XC7B3BYCM3HO3W3RXAN6ZIXDX2OTBFJDIVERQ645FCEQ"
}
},
"context": {
"Viewports": [
{
"type": "APL",
"id": "main",
"shape": "RECTANGLE",
"dpi": 160,
"presentationType": "STANDARD",
"canRotate": false,
"configuration": {
"current": {
"mode": "HUB",
"video": {
"codecs": [
"H_264_42",
"H_264_41"
]
},
"size": {
"type": "DISCRETE",
"pixelWidth": 1024,
"pixelHeight": 600
}
}
}
}
],
"Viewport": {
"experiences": [
{
"arcMinuteWidth": 246,
"arcMinuteHeight": 144,
"canRotate": false,
"canResize": false
}
],
"mode": "HUB",
"shape": "RECTANGLE",
"pixelWidth": 1024,
"pixelHeight": 600,
"dpi": 160,
"currentPixelWidth": 1024,
"currentPixelHeight": 600,
"touch": [
"SINGLE"
],
"video": {
"codecs": [
"H_264_42",
"H_264_41"
]
}
},
"System": {
"application": {
"applicationId": "amzn1.ask.skill.c3772f7a-4aa5-407b-8623-6a9dd104f3e8"
},
"user": {
"userId": "amzn1.ask.account.AGBUSYXGJ54EGUUOFKONBE575WDW7BSX4GQR377DBQRXTHQHYK6HAXCTLSFNNO65EXCFSROCKJGXSXQYDVMHJE4DP6TVKFZTWAZMUS4HCJEKKJCURWXUBE76NQOVHHTOMQFJDHXTIKGTK6PEXWDU6XC6UQPYIYW64H2XC7B3BYCM3HO3W3RXAN6ZIXDX2OTBFJDIVERQ645FCEQ"
},
"device": {
"deviceId": "amzn1.ask.device.AF7GGCT65FI5TFLY7PLBUF3IMLYRIYMVFU7K4DINYKMRABKMUSCBYFI2E4FGK57GUYANNUC5ZMLMNSMNQ6UFIGJZKA2S5NTMMEUIR23IFYIPYRMZTY35TUA65BU2H3LBEXCKYXWFHMIMEBFGYQ4LRFXIUUJL3IO3OS3UYFO2DCIB7UWXJHX7U",
"supportedInterfaces": {
"Alexa.Presentation.APL": {
"runtime": {
"maxVersion": "1.4"
}
}
}
},
"apiEndpoint": "https://api.amazonalexa.com",
"apiAccessToken": "eyJ0eXA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QU5OVUM1Wk1MTU5TTU5RNlVGSUdKWktBMlM1TlRNTUVVSVIyM0lGWUlQWVJNWlRZMzVUVUE2NUJVMkgzTEJFWENLWVhXRkhNSU1FQkZHWVE0TFJGWElVVUpMM0lPM09TM1VZRk8yRENJQjdVV1hKSFg3VSIsInVzZXJJZCI6ImFtem4xLmFzay5hY2NvdW50LkFHQlVTWVhHSjU0RUdVVU9GS09OQkU1NzVXRFc3QlNYNEdRUjM3N0RCUVJYVEhRSFlLNkhBWENUTFNGTk5PNjVFWENGU1JPQ0tKR1hTWFFZRFZNSEpFNERQNlRWS0ZaVFdBWk1VUzRIQ0pFS0tKQ1VSV1hVQkU3Nk5RT1ZISFRPTVFGSkRIWFRJS0dUSzZQRVhXRFU2WEM2VVFQWUlZVzY0SDJYQzdCM0JZQ00zSE8zVzNSWEFONlpJWERYMk9UQkZKRElWRVJRNjQ1RkNFUSJ9fQ.gTLrsC3eIXhVEqgJulSnEqsoyAZcDByYXkWZNDWsiS1IEdaIY8oA2LEBEDnhe4NNaKjpVEPhgh1zYFD9eAs65-7KURnYyXcJqIQyMnbWokNs1cTNPL5cjYwu20LE-bk84CoovTuA3ivkNLqR7F8BcDbdvBVlJFmvGZn285stQ_VDfSdIG_8UJZWS_vZQPiz07qVfMB8XlfZmxmtKOx4kIrpWsMxxO7xHyHEcjXV08dXsoTl7yt_Wj-tL9XvRYqwqd-utj9qD3EPxGAOt9WAX8_4dTGzdG6n9Ip8tW5e9ZNIN27GDmP7RgZ-cfthfUXMpaCdFMcOlysl0RQrFWauqFQ"
}
},
"request": {
"type": "IntentRequest",
"requestId": "amzn1.echo-api.request.3daed7bc-dcff-40a3-a971-2a8f8ea2b17b",
"locale": "en-US",
"timestamp": "2020-08-26T22:49:14Z",
"intent": {
"name": "DummyIntent",
"confirmationStatus": "NONE"
}
}
}
},
"invocationResponse": {
"body": {
"version": "1.0",
"response": {
"outputSpeech": {
"type": "SSML",
"ssml": "Something went wrong"
},
"reprompt": {
"outputSpeech": {
"type": "SSML",
"ssml": "Something went wrong"
}
},
"shouldEndSession": false,
"type": "_DEFAULT_RESPONSE"
}
}
},
"metrics": {
"skillExecutionTimeInMilliseconds": 1908
}
}
}
}
then
```{
"header": {
"namespace": "SkillDebugger",
"name": "CaptureDebuggingInfo",
"messageId": "903e2b1f-9285-40d6-a407-050ebb11e1c2"
},
"payload": {
"skillId": null,
"timestamp": "2020-08-26T22:49:16.161Z",
"dialogRequestId": "fbcc3422-51ff-4aaf-b009-c73da9205f03",
"skillRequestId": "amzn1.echo-api.request.3daed7bc-dcff-40a3-a971-2a8f8ea2b17b",
"type": "ConversationsModelPrediction",
"content": {
"phrasesToSlots": [],
"actions": [
{
"type": "API",
"output": {
"id": "49cd9f67-8262-4c0c-94ee-26147a4890ff",
"name": "Lateral Neck Flexion",
"bodyArea": "neck",
"duration": 120,
"exercise": [
"Stand with your feet hip-width apart, toes pointing forward or turned slightly outwards, with arms by your sides. Stiffen your abdominal muscles to stabilize your spine, then depress and pull shoulders down and back without arching your low back.",
"Slowly draw your right ear toward your right shoulder stopping when you feel the stretch. Be sure to maintain body alignment keeping your shoulders down and back. Hold the stretch for 5-10 seconds. Slowly return to starting position. Repeat on the left side. Perform a total of 2-4 repetitions.",
"Increase the stretch by brining your hand to the top of your head and gently applying a light pressure with your fingertips.",
"To stretch the sternocleidomastoid, after laterally flexing the neck, slowly lift you chin upwards."
],
"steps": 4
},
"name": "getPhysicalExercise",
"input": {
"bodyArea": "neck"
}
},
{
"type": "RESPONSE",
"output": {
"speech": {
"text": "Are you ready? I found this exercise hopefully can help your neck. Stand with your feet hip-width apart, toes pointing forward or turned slightly outwards, with arms by your sides. Stiffen your abdominal muscles to stabilize your spine, then depress and pull shoulders down and back without arching your low back. Test silenceSlowly draw your right ear toward your right shoulder stopping when you feel the stretch. Be sure to maintain body alignment keeping your shoulders down and back. Hold the stretch for 5-10 seconds. Slowly return to starting position. Repeat on the left side. Perform a total of 2-4 repetitions. Test silenceIncrease the stretch by brining your hand to the top of your head and gently applying a light pressure with your fingertips. Test silenceTo stretch the sternocleidomastoid, after laterally flexing the neck, slowly lift you chin upwards. Test silence",
"phrasesToInputParameters": [
{
"phrase": "Stand with your feet hip-width apart, toes pointing forward or turned slightly outwards, with arms by your sides. Stiffen your abdominal muscles to stabilize your spine, then depress and pull shoulders down and back without arching your low back.",
"inputParameter": "getPhysicalExerciseResult.exercise[1]",
"index": {
"start": 12,
"end": 51
}
},
{
"phrase": "Slowly draw your right ear toward your right shoulder stopping when you feel the stretch. Be sure to maintain body alignment keeping your shoulders down and back. Hold the stretch for 5-10 seconds. Slowly return to starting position. Repeat on the left side. Perform a total of 2-4 repetitions.",
"inputParameter": "getPhysicalExerciseResult.exercise[1]",
"index": {
"start": 53,
"end": 102
}
},
{
"phrase": "Increase the stretch by brining your hand to the top of your head and gently applying a light pressure with your fingertips.",
"inputParameter": "getPhysicalExerciseResult.exercise[1]",
"index": {
"start": 104,
"end": 126
}
},
{
"phrase": "To stretch the sternocleidomastoid, after laterally flexing the neck, slowly lift you chin upwards.",
"inputParameter": "getPhysicalExerciseResult.exercise[1]",
"index": {
"start": 128,
"end": 142
}
},
{
"phrase": "neck",
"inputParameter": "getPhysicalExerciseResult.bodyArea",
"index": {
"start": 11,
"end": 12
}
}
]
}
},
"name": "tb_notifySuccess_getPhysicalExerciseResponse",
"input": {
"getPhysicalExerciseResult": {
"id": "49cd9f67-8262-4c0c-94ee-26147a4890ff",
"name": "Lateral Neck Flexion",
"bodyArea": "neck",
"duration": 120,
"exercise": [
"Stand with your feet hip-width apart, toes pointing forward or turned slightly outwards, with arms by your sides. Stiffen your abdominal muscles to stabilize your spine, then depress and pull shoulders down and back without arching your low back.",
"Slowly draw your right ear toward your right shoulder stopping when you feel the stretch. Be sure to maintain body alignment keeping your shoulders down and back. Hold the stretch for 5-10 seconds. Slowly return to starting position. Repeat on the left side. Perform a total of 2-4 repetitions.",
"Increase the stretch by brining your hand to the top of your head and gently applying a light pressure with your fingertips.",
"To stretch the sternocleidomastoid, after laterally flexing the neck, slowly lift you chin upwards."
],
"steps": 4
}
}
}
]
}
}
}```
then
{
"header": {
"namespace": "SkillDebugger",
"name": "CaptureDebuggingInfo",
"messageId": "a782a4b7-6361-419f-af4a-f77850094dcf"
},
"payload": {
"skillId": null,
"timestamp": "2020-08-26T22:49:16.328Z",
"dialogRequestId": "fbcc3422-51ff-4aaf-b009-c73da9205f03",
"skillRequestId": null,
"type": "ConsideredIntents",
"content": {
"intents": [
{
"name": "DummyIntent",
"confirmationStatus": "NONE",
"slots": {}
}
]
}
}
}```
In order to pass the skill certification, we need
The skill does not meet the necessary requirements for health-related skills. The skill's Detailed Description must include disclaimer stating that the information provided by the skill is for informational and educational purposes only. Example: "The information in this skill is provided for informational and educational purposes only".
Please update the skill to comply with our Content Guidelines.
IBM Cloud Speech to text
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.