本文介绍了如何解决与DirectLineChannel提示选择选项有关的问题,这些问题未在使用C#V4 SDK开发的聊天机器人窗口中显示?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试创建一个聊天机器人,该聊天机器人使用C#和BOT SDK V4具有多个瀑布对话框类.我创建了一个HTML页面,并将DirectLine通道Secret Key Iframe数据放入其中,并将其成功发布到Azure,并在浏览器中将其打开.浏览器将打开,并显示内置欢迎消息,例如:Hi机器人名称键入Hi继续.

I am trying to create a chatbot which is having multiple waterfall dialog classes using C# and BOT SDK V4. I have created a HTML page and placed the DirectLine channel Secret Key Iframe data into it and published it to Azure successfully and opened it in the browser. The browser opens with a in-built welcome message something like: Hi bot name type Hi to continue.

如果我有通过提示选项完成的选择选项以显示为按钮,但是这些选项不是通过直接渠道显示的,而是在Web聊天频道中效果很好?随附的图片显示了该问题:一个"WebChatbotHtml_optionbtndisplayed.jpg"

If i have Choice options done through prompt options to be displayed as buttons but these are not displayed through direct line channel but works very good in Web Chat Channel?Attached image shows the issue:a "WebChatbotHtml_optionbtndisplayed.jpg"

b."DirectLinechannelHtml_optionbtnnotdisplayed.jpg"

b. "DirectLinechannelHtml_optionbtnnotdisplayed.jpg"

现在,在主对话框类中,我已经使用上面创建的html页面中的Oauth提示实现了登录机制,我看到显示的登录链接已被成功使用,它会导航到另一个具有以下功能的瀑布对话框:带有一些自定义选择按钮的提示选项,如果我单击一个选择按钮,将执行下一步,并将触发相应的操作.我遇到的问题通常是显示选项供我访问,但是在html中,我创建了登录链接和导航之类的所有其他内容,但是选择按钮并未显示,就像它们被隐藏了一样.

Now, in the main dialog class i have implemented the Login mechanism using the Oauth Prompt in th html page that was created above i see the login link getting displayed using which i have successfully logged in this will navigate to another waterfall dialog having prompt options with some custom choice buttons, whee if i click on a choice button the next step will be executed and respective action will be triggered.The issue i have is normally the options are displayed for me to access but in the html that i created the all other things like login link and navigation is happening but the choice buttons are not displayed its like they are getting hidden.

或有时选择选项"按钮在Direct Channel Web聊天机器人中根本不显示

or Sometimes the Choice Option buttons are not displayed at all in the Direct Channel Web chat bot

查询是如何解决此问题?

The query is how to fix the issue?

为了使我的查询更好地理解,请查找以下内容:1. WaterfalldiaglogClass1:步骤1:通过Oauth提示显示登录选项/链接.步骤2:获取令牌可对其进行验证,并显示登录成功消息,然后导航至第二个WaterfalldialogClass2. WaterFallddialogClass2:步骤1:通过提示"选项显示自定义选项,例如1,2,3,4第2步:捕获被点击的选项并执行相应的操作

To make my query to be understood in a better way please find below set of things:1. WaterfalldiaglogClass1: STEP 1: Has login option/link displayed through Oauth Prompt.STEP 2: Gets token validates it and displays login successful message and then navigates to second waterfalldialogClass 2. WaterFallddialogClass2:STEP 1: Custom choices are displayed through Prompt options lets say 1,2,3,4STEP 2: Capture the choice getting clicked and perform respective action

  1. 我创建了一个HTML页面,在该页面中,我使用直接通道通道的秘密代码复制了I帧代码

  1. I created a HTML page where the I frame code i copied with secret code of Direct Line Channel

将其成功发布为天蓝色,没有任何错误或警告

Published it to azure successfully with no errors or warnings

在浏览器中打开html页面,聊天机器人成功打开,并显示欢迎消息,例如:我是机器人,请输入嗨继续

Opened the html page in a browser the chat bot opens successfully with a welcome default message like: HI i am bot,enter Hi to continue

用户使用对话框类1中显示的可用登录链接发送嗨和登录信息,并显示登录成功消息

User sends hi and logins using the login link available displayed in dialog class 1 and login successful message is displayed

当前问题:选项按钮1,2,3,4没有显示,而是以某种方式隐藏了

Current Issue: The option buttons 1,2,3,4 are not getting displayed it is getting hidden somehow

需要帮助解决此问题,因为我是BOT和编码的新手,请提供详细的逐步指南.

Need help in resolving the issue Please provide detailed step by step guide in resolving it as i am new to BOT and coding .

语言:C#Bot Framework:V4

language: C#Bot Framework: V4

我尝试在HTML页面中增加高度宽度和其他%值,然后重新发布,但未成功.同样的事情也适用于网络聊天频道,即,如果我将密码保存在网络聊天频道的HTML页面中而没有任何问题.

I have tried increasing height width and other % values in the HTML page and republished it but not successful. The same thing works in web chat channel i.e. if i keep secret code inside the HTML page of webchat channel without any issues.

随附问题图片供参考.

预期结果:数据或选项应显示在Webchat频道中,因为它正在运行实际结果:不起作用,选择选项不可见

Expected Result: Data or choices should be shown as it is working in Webchat channelActual Result: Not working the choice options are not visible to choose

推荐答案

目前有两种版本的嵌入式Web聊天:Gemini和Scorpio.嵌入式Web聊天目前正在缓慢地将所有客户端从Scorpio过渡到Gemini.看来您的嵌入式Web聊天仍在使用Scorpio,但不幸的是它不支持OAuth提示.在不久的将来,您将能够手动请求将客户端切换到Gemini.

There are two versions of Embedded Web Chat at the moment: Gemini and Scorpio. Embedded Web Chat is currently in the process of slowly transitioning all clients from Scorpio to Gemini. It appears your embedded Web Chat is still using Scorpio which unfortunately does not support the OAuth prompt. In the near future, you will be able to manually request your client to be switched to Gemini.

同时,您可以使用CDN将Web Chat v4添加到您的站点中,也可以等待客户端迁移到Gemini.

In the meantime, you can add either add Web Chat v4 to your site using a CDN or wait for your client to be migrated to Gemini.

有关嵌入式Web聊天的更多详细信息,请查看文档.

For more details regarding Embedded Web Chat, take a look at the documentation.

希望这会有所帮助.

这篇关于如何解决与DirectLineChannel提示选择选项有关的问题,这些问题未在使用C#V4 SDK开发的聊天机器人窗口中显示?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-18 21:00