json 文件格式正确,因此 LUIS 可以读取数据
json file formatting correctly, so LUIS can read the data
我的程序可以正确地从 LUIS 读取 Intents 并使用 LUIS Intents 启动其他自适应卡片,但是对于这种列类型,仍然不可能。我试图在此处启动的 Intents 是 "user" 和 "myEmail" in "type":input.text。我知道 json 中的数据字段、标题或 ID 一定放错了地方。这是文件,有帮助吗...?
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.0",
"body": [
{
"type": "Image",
"url": "lalala.png",
"size": "Medium"
},
{
"type": "ColumnSet",
"columns": [
{
"type": "Column",
"width": 2,
"items": [
{
"type": "TextBlock",
"text": "Einloggen",
"weight": "Bolder",
"size": "Medium"
},
{
"type": "Input.Text",
"id": "myName",
"title": "user",
"data": "user",
"placeholder": "Benutzername oder email"
},
{
"type": "Input.Text",
"id": "myEmail",
"title": "myEmail",
"data": "myEmail",
"placeholder": "Passwort",
"style": "Email"
}
]
}
]
}
],
"actions": [
{
"type": "Action.Submit",
"title": "Submit"
},
{
"type": "Action.Submit",
"title": "Cancel"
}
]
}
我不是 100% 肯定你的问题,因为自适应卡中没有任何内容与 LUIS 真正相关。也就是说,您必须为 "remember me" 切换指定一个唯一的 ID - 当前的空值将不起作用。
我还推荐 adaptivecards.io 设计器作为验证卡片的地方。
adaptivecards.io/designer
感谢您的建议,之前没有阅读 https://blog.botframework.com/2019/07/02/using-adaptive-cards-with-the-microsoft-bot-framework/ 操作提交和数据之间的问题是否有更好的说明。
{
"type": "ColumnSet",
"columns": [
{
"type": "Column",
"width": 2,
"items": [
{
"type": "TextBlock",
"text": "Einloggen",
"weight": "Bolder",
"size": "Medium"
},
{
"type": "Input.Text",
"id": "myName",
"title": "user",
"placeholder": "Benutzername oder email"
},
{
"type": "Input.Text",
"id": "myEmail",
"title": "myEmail",
"placeholder": "Passwort"
}
]
}
]
}
],
"actions": [
{
"type": "Action.Submit",
"title": "Submit",
"data": {
"myName": true,
"myEmail": true
}
}
] }
我的程序可以正确地从 LUIS 读取 Intents 并使用 LUIS Intents 启动其他自适应卡片,但是对于这种列类型,仍然不可能。我试图在此处启动的 Intents 是 "user" 和 "myEmail" in "type":input.text。我知道 json 中的数据字段、标题或 ID 一定放错了地方。这是文件,有帮助吗...?
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.0",
"body": [
{
"type": "Image",
"url": "lalala.png",
"size": "Medium"
},
{
"type": "ColumnSet",
"columns": [
{
"type": "Column",
"width": 2,
"items": [
{
"type": "TextBlock",
"text": "Einloggen",
"weight": "Bolder",
"size": "Medium"
},
{
"type": "Input.Text",
"id": "myName",
"title": "user",
"data": "user",
"placeholder": "Benutzername oder email"
},
{
"type": "Input.Text",
"id": "myEmail",
"title": "myEmail",
"data": "myEmail",
"placeholder": "Passwort",
"style": "Email"
}
]
}
]
}
],
"actions": [
{
"type": "Action.Submit",
"title": "Submit"
},
{
"type": "Action.Submit",
"title": "Cancel"
}
]
}
我不是 100% 肯定你的问题,因为自适应卡中没有任何内容与 LUIS 真正相关。也就是说,您必须为 "remember me" 切换指定一个唯一的 ID - 当前的空值将不起作用。
我还推荐 adaptivecards.io 设计器作为验证卡片的地方。 adaptivecards.io/designer
感谢您的建议,之前没有阅读 https://blog.botframework.com/2019/07/02/using-adaptive-cards-with-the-microsoft-bot-framework/ 操作提交和数据之间的问题是否有更好的说明。
{
"type": "ColumnSet",
"columns": [
{
"type": "Column",
"width": 2,
"items": [
{
"type": "TextBlock",
"text": "Einloggen",
"weight": "Bolder",
"size": "Medium"
},
{
"type": "Input.Text",
"id": "myName",
"title": "user",
"placeholder": "Benutzername oder email"
},
{
"type": "Input.Text",
"id": "myEmail",
"title": "myEmail",
"placeholder": "Passwort"
}
]
}
]
}
],
"actions": [
{
"type": "Action.Submit",
"title": "Submit",
"data": {
"myName": true,
"myEmail": true
}
}
] }