如何将Alexa技能导入API.AI/Dialogflow?

编程入门 行业动态 更新时间:2024-10-23 01:53:25
本文介绍了如何将Alexa技能导入API.AI/Dialogflow?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在尝试导出我的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.

我创建了完整的分步指南和视频,其中使用了 Jovo语言模型将Alexa模型转换为Dialogflow代理。您可以在这里找到它:教程:将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?

本文发布于:2023-11-28 06:53:57,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1641365.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:如何将   技能   Alexa   Dialogflow   API

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!