【发布时间】:2018-10-30 16:23:08
【问题描述】:
我正在尝试使用putIntent() 在 lex 中添加响应卡。在 AWS 中,putIntent 方法接受 responseCard 作为字符串,但如何在使用响应卡创建 Intent 时添加 title、subTitle、ImageUrl、button 值和 button 名称参数通过putIntent?
所以谁能帮我解决这个问题。提供一个示例输入,其中响应卡作为可以包含上述属性的字符串。提前谢谢你。
"slots": [
{
"description": "string",
"name": "string",
"priority": number,
"responseCard": "string",
"sampleUtterances": [ "string" ],
"slotConstraint": "string",
"slotType": "string",
"slotTypeVersion": "string",
"valueElicitationPrompt": {
"maxAttempts": number,
"messages": [
{
"content": "string",
"contentType": "string",
"groupNumber": number
}
],
"responseCard": "string" --(how to pass title, imageUrl and other attributes)
}
【问题讨论】:
标签: aws-sdk amazon-lex