web-chat

How do I make Input text a required field in adaptive card version 1.2 for webchat

Deadly 提交于 2021-02-11 14:56:33
问题 I am using BotFramework WebChat 4.9.1 and adaptive card 1.2 and I need few fields to be mandatory. Following is the card I have tried but it does not work. Ideally on submit it should highlight with red text that First name is required if the text box is empty. { "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", "type": "AdaptiveCard", "version": "1.2", "body": [ { "type": "ColumnSet", "columns": [ { "type": "Column", "width": 2, "items": [ { "type": "TextBlock", "text": "Email

UserState showing null in onMembersAdded function

﹥>﹥吖頭↗ 提交于 2021-02-10 14:48:47
问题 I have logic in my onMembersAdded function to load the user state and see if userData.accountNumber attribute exists. If it does not, a run an auth dialog to get the user's account number. If the attribute does exist, the welcome message should be displayed without a prompt. When I test on local, this works fine. But when I test on Azure, I always end up in the !userData.accountNumber block. Through checking the console log, I can see that in the onMembersAdded function is showing {} for the

UserState showing null in onMembersAdded function

爷,独闯天下 提交于 2021-02-10 14:48:23
问题 I have logic in my onMembersAdded function to load the user state and see if userData.accountNumber attribute exists. If it does not, a run an auth dialog to get the user's account number. If the attribute does exist, the welcome message should be displayed without a prompt. When I test on local, this works fine. But when I test on Azure, I always end up in the !userData.accountNumber block. Through checking the console log, I can see that in the onMembersAdded function is showing {} for the

BotFramework-WebChat - Adaptive Card

人走茶凉 提交于 2021-02-02 03:41:49
问题 Is there a way to add Onchange event to the adaptive card input field that is rendered in webchat (version V4). Example changing a quantity value (Adaptive card inputfield of type number) in the checkout screen should update the Total value (Adaptive card text field) To keep it simple....In the below image once i change the number in the input box it should update in the below text box. everything should happen on the webchat V4(React) client side Below are the options i tried, don't have any

Is there a way I can give column padding to an adaptive card- Adaptive MS BOT

家住魔仙堡 提交于 2021-01-29 07:02:19
问题 I'm using an adaptive card to display dynamic content in a table using the, adaptive-cards templating package. I have been to customize it but one column is still refusing to fall in place, the column would always have more content than others. So it's falling out of rows, therefore expanding the table and making it look ugly.[![enter image description here][1]][1] async testTableData(context) { var tablePayLoad = { $schema: "http://adaptivecards.io/schemas/adaptive-card.json", "type":

How to rewrite a Adaptive Card Submit Action for MSTeams also working in Web Chat?

久未见 提交于 2021-01-07 02:41:53
问题 Hi i'm using adaptive Cards and want to generate a Submit Action which works in MS Teams as well as in Webchat. In Emulator this works fine. After i'm clicking the Button its like the user would type in "Test" in the chat. "actions": [ { "type": "Action.Submit", "title": "Test", "data": "Test" } This doesnt work in MS Teams. How to bring this to work? 回答1: My blog post explains that if you want to use a string submit action you will need to do it differently in Web Chat and Teams: https:/

How to rewrite a Adaptive Card Submit Action for MSTeams also working in Web Chat?

对着背影说爱祢 提交于 2021-01-07 02:40:00
问题 Hi i'm using adaptive Cards and want to generate a Submit Action which works in MS Teams as well as in Webchat. In Emulator this works fine. After i'm clicking the Button its like the user would type in "Test" in the chat. "actions": [ { "type": "Action.Submit", "title": "Test", "data": "Test" } This doesnt work in MS Teams. How to bring this to work? 回答1: My blog post explains that if you want to use a string submit action you will need to do it differently in Web Chat and Teams: https:/

refresh Directline token after it got expired

ぐ巨炮叔叔 提交于 2021-01-01 02:52:41
问题 I'm applying a token based authentication to bot webchat along with the chat being persisted but facing an issue after the token got expired. Unable to connect to bot. At first I'm generating a token and refreshing for 15 mins and every thing working fine till then. But, when user went offline with no internet connectivity, suppose for around 6-7 hours, due to offline the refresh token post call don't happen and there will be an expired token in the session storage. later than he wanted to

refresh Directline token after it got expired

≡放荡痞女 提交于 2021-01-01 02:51:26
问题 I'm applying a token based authentication to bot webchat along with the chat being persisted but facing an issue after the token got expired. Unable to connect to bot. At first I'm generating a token and refreshing for 15 mins and every thing working fine till then. But, when user went offline with no internet connectivity, suppose for around 6-7 hours, due to offline the refresh token post call don't happen and there will be an expired token in the session storage. later than he wanted to

refresh Directline token after it got expired

ⅰ亾dé卋堺 提交于 2021-01-01 02:50:51
问题 I'm applying a token based authentication to bot webchat along with the chat being persisted but facing an issue after the token got expired. Unable to connect to bot. At first I'm generating a token and refreshing for 15 mins and every thing working fine till then. But, when user went offline with no internet connectivity, suppose for around 6-7 hours, due to offline the refresh token post call don't happen and there will be an expired token in the session storage. later than he wanted to