问题描述
我正在尝试导出我的Alexa技能/将其导入Dialogflow(以前称为API.AI),但是我收到以下错误消息:
I'm trying to export my Alexa Skill / import it into Dialogflow (used to be called API.AI), but I'm getting the following error message:
无效的Alexa模式json文件。
我的Zip文件是index.js文件,而node_modules文件夹已压缩一起。然后我也将名为schema.json的Alexa Skill JSON也添加到了zip中,但是它仍然给出相同的错误。
My Zip file is the index.js file and the node_modules folder zipped together. Then I added the Alexa Skill JSON named schema.json to the zip too, but it still gives the same error.
我找不到有关如何导出正确的Alexa的说明。 .zip进行导入,也不介绍如何格式化zip以自行构建。我已经搜寻了一段时间-有人知道该怎么做吗? (我已经通过电子邮件发送了他们的支持,但尚未答复。)
I cannot find instructions on how to export the correct Alexa .zip for import, nor how to format the zip to build it myself. I've been searching for a while -- does anyone know how to do this? (I emailed their support already, but no response yet.)
推荐答案
Alexa交互模型已有一些更新,因此Dialogflow Alexa Importer似乎不再起作用。
There were some updates to the Alexa Interaction Model, so the Dialogflow Alexa Importer doesn't seem to work anymore.
将Alexa模型移植到Dialogflow代理时,需要考虑以下几点:
There are a few things to consider when porting an Alexa Model into a Dialogflow Agent:
- 内置意图:您需要为内置Alexa意图(例如
AMAZON.HelpIntent
)创建自定义Dialogflow意图 - 内置插槽:Amazon提供了多种插槽(例如
AMAZON.Number
),需要转换为Dialogflow。为此,Dialogflow提供了系统实体。 。
- Built-in Intents: You need to create custom Dialogflow intents for built-in Alexa intents like
AMAZON.HelpIntent
- Built-in Slots: Amazon offers a large variety of slots (e.g.
AMAZON.Number
) that need to be converted to Dialogflow. For this, Dialogflow offers System Entities. Find all System Entities here.
我创建了完整的分步指南和视频,其中使用了将Alexa模型转换为Dialogflow代理。您可以在这里找到它:。
I created a complete step by step guide and video that uses the Jovo Language Model to translate an Alexa Model into a Dialogflow Agent. You can find it here: Tutorial: Turn an Alexa Interaction Model into a Dialogflow Agent.
这篇关于如何将Alexa技能导入API.AI/Dialogflow?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!