加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

botframework – Skype for Business中未显示的卡片和选择(Bot F

发布时间:2020-12-14 04:26:17 所属栏目:Windows 来源:网络整理
导读:我最近将业务频道的Skype添加到我的机器人,但是选项提示和英雄卡片没有显示在消息中 intents.matches(/^test/,[ function (session) { const leaves = ['Holiday','Medical','Meeting','Seminar']; builder.Prompts.choice(session,'Please select a leave r
我最近将业务频道的Skype添加到我的机器人,但是选项提示和英雄卡片没有显示在消息中

intents.matches(/^test/,[
  function (session) {
    const leaves = ['Holiday','Medical','Meeting','Seminar'];
    builder.Prompts.choice(session,'Please select a leave request',leaves,{ listStyle: builder.ListStyle.button });
  },function (session,args) {
    session.endDialog(`You are taking a ${args.response.entity} leave`);
  }
]);

解决方法

Bot Framework的Skype for Business频道目前正在开发者预览版中.

按official documentation:

Cards and buttons : Skype for Business does not support cards and buttons in the Developer Preview. For the Developer Preview,cards and buttons are not shown to the user if they are sent by a bot. Cards and buttons fallback to text support will be added soon.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读