简体   繁体   English

Alexa技能控制台返回null

[英]Alexa skills console returns null

I've written simple aws lambda code to output on the alexa skills kit console, but I'm constantly getting an output of null. 我已经编写了简单的aws lambda代码以在alexa技能套件控制台上输出,但是我一直在得到null输出。 I've made sure to paste the arn from aws lambda into the endpoint of the skill. 我已经确保将aws lambda中的arn粘贴到技能的终点。 Not sure why this is happening. 不知道为什么会这样。

aws lambda code AWS Lambda代码

alexa skills json output Alexa Skills JSON输出

You need to properly form your responses to see them working on the Alexa Skill Kit Console. 您需要正确地形成您的回复,以使其在Alexa Skill Kit控制台上正常工作。 Passing a single string to the alexa service will not work. 将单个字符串传递给alexa服务将不起作用。 You could potentially use console.log outputs to see that the lambda call is working properly. 您可能会使用console.log输出来查看lambda调用是否正常运行。 You can also test under lambda's built-in test. 您还可以在lambda的内置测试下进行测试。 A string output returns null because the alexa skill kit console requires a properly JSON formatted output. 字符串输出返回null,因为alexa技能套件控制台需要正确的JSON格式输出。 I'd suggest you to start with a sample hello world skill example 我建议您从一个示例性的hello world技能示例开始

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM