热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

AmazonLex&Dialogflow建议文本作为对话的快速按钮

就像

就像Actions on Google中的Recommendation(快速按钮)一样,Amazon Lex中是否还有要使用的任何类/函数?

Google上的操作:agent.add(new Suggestion(' Your text here ')); // to provide quick suggestion to the user.


就像Google Amazon lex一样,它也有一个快速的建议,即响应卡。下面是一个示例图像和JSON对象,您将从带有响应卡的lex中获得这些图像。enter image description here

从aws-lex采样JSON对象,它将生成响应卡。即快速建议
插槽。

{
"sampleUtterances": [
],"slotType": "","slotTypeVersion": "4","slotConstraint": "Optional","valueElicitationPrompt": {
"messages": [
{
"contentType": "PlainText","content": "what do you want to schedule"
}
],"responseCard": "{\"version\":1,\"contentType\":\"application/vnd.amazonaws.card.generic\",\"genericAttachments\":[{\"buttons\":[{\"text\":\"sales\",\"value\":\"sales consultation\"}]}]}","maxAttempts": 2
},"priority": 11,"name": "appointment"
}

推荐阅读
author-avatar
王文波玉龙_946
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有