question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Send capabilities to Alexa Skill using SMAPI Connector

See original GitHub issue

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I’m always frustrated when […] We are trying to inspect the audioPlayer from our Alexa skill using invocation through the SMAPI. When we send an intent that returns an audioPlayer response we expect it to return the response with the audio asset url. However we get this response:

 "outputSpeech": {
      "type": "SSML",
      "ssml": "<speak>Hm, I'm sorry but I can't do that on this device.</speak>"
    }

We believe this is because the basic capabilities have not been defined in the request to the skill using the invocation-request-template.json.

Describe the solution you’d like The ability to define the capabilities within the JSON config or the convo.txt context so we can send the capabilities to the alexa skill. So we can go from sending this request without the capabilities:

  "version": "1.0",
  "session": {
    "new": false,
    "sessionId": "97d4d9d0-8dca-11e9-a036-e15e61ac4dae",
    "application": {
      "applicationId": "amzn1.ask.skill.ccc19cb0-0ffd-4425-bfc0-594d44e8beda"
    },
    "attributes": {},
    "user": {
      "userId": "botium-core-test-user"
    }
  },
  "context": {
    "AudioPlayer": {
      "playerActivity": "IDLE"
    },
    "Display": {
      "token": ""
    },
    "System": {
      "application": {
        "applicationId": "amzn1.ask.skill.ccc19cb0-0ffd-4425-bfc0-594d44e8beda"
      },
      "user": {
        "userId": "botium-core-test-user"
      }
    }
  },
  "request": {
    "type": "IntentRequest",
    "requestId": "98529550-8dca-11e9-a036-e15e61ac4dae",
    "timestamp": "2019-06-13T11:01:28.997Z",
    "locale": "en-GB",
    "intent": {
      "name": "NewsIntent",
      "confirmationStatus": "NONE",
      "slots": {}
    }
  }
}

to this request with the capabilities:

{
  "version": "1.0",
  "session": {
    "new": false,
    "sessionId": "97d4d9d0-8dca-11e9-a036-e15e61ac4dae",
    "application": {
      "applicationId": "amzn1.ask.skill.ccc19cb0-0ffd-4425-bfc0-594d44e8beda"
    },
    "attributes": {},
    "user": {
      "userId": "botium-core-test-user"
    }
  },
  "context": {
    "AudioPlayer": {
      "playerActivity": "IDLE"
    },
    "Display": {
      "token": ""
    },
    "System": {
      "application": {
        "applicationId": "amzn1.ask.skill.ccc19cb0-0ffd-4425-bfc0-594d44e8beda"
      },
      "user": {
        "userId": "botium-core-test-user"
      },
      "device": {
        "deviceId": "amzn1.ask.device.AFRXExxx",
        "supportedInterfaces": {
          "AudioPlayer": {},
          "Display": {
            "templateVersion": "1.0",
            "markupVersion": "1.0"
          },
          "Alexa.Presentation.APL": {
            "runtime": {
              "maxVersion": "1.0"
            }
          }
        }
    }
  },
  "request": {
    "type": "IntentRequest",
    "requestId": "98529550-8dca-11e9-a036-e15e61ac4dae",
    "timestamp": "2019-06-13T11:01:28.997Z",
    "locale": "en-GB",
    "intent": {
      "name": "NewsIntent",
      "confirmationStatus": "NONE",
      "slots": {}
    }
  }
}

Describe alternatives you’ve considered A clear and concise description of any alternative solutions or features you’ve considered. We have considered just hitting the SMAPI directly with these intents to see what we get but doesn’t work well and means not using botium at all which is not prefered.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
codeforequity-atcommented, Jun 13, 2019

thanks for the good feature description. I added it to our internal backlog (BOT-657) and to the next sprint (as we consider this to be an important feature).

1reaction
codeforequity-atcommented, Aug 1, 2019

It is available in the latest Botium builds now (including Botium CLI and Botium Box)

@StoutyAlex We have a discord channel for Botium developer now - pls contact us at our website for receiving an invitation!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Get Started with SMAPI | Alexa Skills Kit - Amazon Developer
Note: Submit your skill and see it come to life. The Alexa Skill Management API (SMAPI) provides RESTful HTTP interfaces for programmatically performing...
Read more >
All Posts in Alexa Skill Management API (SMAPI) - Forums
article Use audit logs to retrieve the history of all the skill-building operations performed in an Alexa developer account.
Read more >
When to alexa-smapi and alexa-avs - Stack Overflow
The Botium Connector for Amazon Alexa Skills API is for testing the Skill on a very low API level. You can test the...
Read more >
Automated Testing and Monitoring for Alexa Skills with Botium ...
Sidenote: Botium Box includes another connector using the Skills Management API (SMAPI), which is also used for testing Alexa skills.
Read more >
Email Yourself Daily Alexa Skill Metrics Updates using ...
SMAPI is an API that gives you all the same functionality found in the ASK CLI or the Alexa developer console. The SMAPI...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found