[英]How do I Use an If statement within JSON Adaptive card for Teams to @mention user on Submitted Choice Response?
[英]In MS Team Adaptive Card, how do I specify the server it post to?
我正在尝试在我的自适应卡中使用 Action.Submit 来访问我的 Google Cloud Function。 我在哪里指定将提交的内容发送到哪里? 我这样做的原因是由于时间限制,我想跳过构建完整的聊天服务器。
自适应卡示例,没有属性可指定后 URL:
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.0",
"body": [
{
"type": "TextBlock",
"text": "Present a form and submit it back to the originator"
},
{
"type": "Input.Text",
"id": "firstName",
"placeholder": "What is your first name?"
},
{
"type": "Input.Text",
"id": "lastName",
"placeholder": "What is your last name?"
}
],
"actions": [
{
"type": "Action.Submit",
"title": "Action.Submit",
"data": {
"x": 13
}
}
]
}
自适应卡不是专门为机器人服务开发的。 因此,与他们合作需要一些技巧,在您的情况下,如果您尝试发送包含您需要知道的自适应卡输入的请求:
控制台.log(上下文.活动)
context.activity.value.firstName(获取自适应卡发送的名字)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.