Dialogflow / API.ai Amazon Echo集成:用于测试的简单纯文本机器人

问题描述:

我一直在尝试制作一个简单的测试机器人(只是一个意图,具有三个基于文本的不同响应),并将其与我的亚马逊回声挂钩,以进行概念验证演示。

I have been trying to make my simple test bot (it's just a single intent with three different text based responses) and hook it up to my amazon echo for a proof of concept demo.

我在集成的亚马逊方面遇到了麻烦。这是我的问题:

I am having trouble with the amazon side of the integration. Here are my questions:


  1. 如何做到这一点,以便可以根据回声测试我的技能。我需要在测试之前就发布它吗?它如何工作

  2. 如何使我的回声与api.ai/dialogflow服务器通信以获得我想要的响应?

  3. 什么链接填写配置的端点部分

  4. 什么是SSL证书以及如何配置它?

  1. How do I make it so I can test my skill on my echo. Do I need to publish it even before I can test it? How does it work
  2. How do I make my echo communicate with the api.ai/dialogflow server to get the response I want?
  3. What link do I fill in in the 'Endpoint' part of the configuration
  4. What is the SSL Certificate and how do I configure it?

我希望我的机器人对alexa所做的就是识别我的意思并通过简单的文本答案进行回复...

All I want my bot to do with alexa is to recognise what I say and reply with a simple text answer...

谢谢

这是您需要做的。


  1. 按照 https://dialogflow.com/docs上的说明进行操作/ integrations / alexa-exporter 来导出DialogFlow交互模型和示例话语,并在 http://中创建技能developer.amazon.com

  2. 您将需要创建一个调用DialogFlo的技能服务(端点) w API,用于在DialogFlow和Amazon Alexa Service之间发送和接收请求/响应。我会使用AWS Lambda来做到这一点-这样,您就不必担心配置SSL证书。

  1. Follow the instruction at https://dialogflow.com/docs/integrations/alexa-exporter to export your DialogFlow interaction model and sample utterances and to create the skill in http://developer.amazon.com.
  2. You will need to create a skill service (the 'Endpoint') that calls the DialogFlow API to send and receive requests / responses between DialogFlow and the Amazon Alexa Service. I'd do that with AWS Lambda - that way you won't have to worry about configuring an SSL certificate.

Amazon开发者控制台,您可以在技能配置中启用测试,从而可以在技能发布之前对其进行测试。

After you have a skill property configured in the Amazon Developer Console you can 'enable testing' in the skill configuration to make it possible to test the skill before it's published.

这是我录制的一段视频,介绍了如何创建自定义Alexa技能。视频中的所有步骤都将适用于您要执行的操作,但除此之外,您还需要使用其中一个DialogFlow SDK调用DialogFlow API,您可以在 https://dialogflow.com/docs/sdks 。如果您决定将AWS Lambda用于您的技能服务终端节点,建议您将Node.JS和Node.JS SDK用于DialogFlow。

Here is a video I did that walks through creating a custom Alexa skill. All of the steps in the video would apply for what you're trying to do but in addition you'd need to call the DialogFlow API using one of the DialogFlow SDKs which you can find at https://dialogflow.com/docs/sdks. If you decide to use AWS Lambda for your skill service endpoint, I'd suggest using Node.JS and the Node.JS SDK for DialogFlow.

建议。如果您的目标是为Alexa创建简单技能,那么不使用DialogFlow就可以创建简单技能。如果您想要同时适用于Amazon Alexa和Google Home的技能,请查看 Jovo Framework

Suggestion. If you're goal is to create a simple skill for Alexa, it might be simpler to just create the skill without DialogFlow. If you want a skill that works both for Amazon Alexa and Google Home I'd check out the Jovo Framework.

另外,有关创建Alexa技能的更多视频,请访问 http://youtube.com/ dabblelab http://learn.dabblelab.com

Also, for more videos on creating Alexa skills visit http://youtube.com/dabblelab or http://learn.dabblelab.com

我希望这会有所帮助!