从 URL 重定向到 Bot [英] Redirecting to Bot from URL

查看:82
本文介绍了从 URL 重定向到 Bot的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个 .Net 核心 Bot 应用程序,我在其中创建了一个自适应卡片,当用户点击它时,它会被重定向到一个新的 URL.有一次,重定向我想添加一个功能,在用户在 URL 中发布后,他应该使用发布的数据重定向回 BOT.谁能指导我如何解决这个问题.下面是我们创建的用于将用户重定向到 URL 的示例 JSON.

I am working on a .Net core Bot application where I have created an adaptive card and when user clicks it would be redirected to a new URL. Once, redirected I want to add a functionality that after user posts in the URL, he should be redirected back to the BOT with the posted data. Can anyone guide me how to approach this. Below is the sample JSON we have created for redirecting user to URL.

{
  "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
  "type": "AdaptiveCard",
  "version": "1.0",
  "body": [
    {
      "type": "TextBlock",
      "text": "This card's action will open a URL"
    }
  ],
  "actions": [
    {
      "type": "Action.OpenUrl",
      "title": "Action.OpenUrl",
      "url": "https://adaptivecards.io"
    }
  ]
}

推荐答案

如果您要询问 Teams bot,那么您应该遵循 机器人任务模块

if you are asking about a Teams bot then you should follow the pattern for a Bot Task Module

  1. 机器人消息 + 卡片
  2. 激活任务模块(又名弹出窗口)
    • 任务模块可以显示另一个自适应卡片
    • 或 HTML 页面

这篇关于从 URL 重定向到 Bot的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆