chatbot

How to access Dialogflow V2 API from a webpage?

烂漫一生 提交于 2020-05-25 09:31:13
问题 I have a webpage where I want to use dialogflow chatbot. This is a custom chat window, so I don't want to use one click integration. I am able to access the chat agent V1 API using javascript/ajax (by passing client access token in the request header). But I don't know how to do it in V2 API . The dialogflow documentation is not clear to me(I have setup Authentication by referring this link. I don't know how to proceed further). I'm not familiar with Google cloud either. So a working sample

How to access Dialogflow V2 API from a webpage?

夙愿已清 提交于 2020-05-25 09:30:48
问题 I have a webpage where I want to use dialogflow chatbot. This is a custom chat window, so I don't want to use one click integration. I am able to access the chat agent V1 API using javascript/ajax (by passing client access token in the request header). But I don't know how to do it in V2 API . The dialogflow documentation is not clear to me(I have setup Authentication by referring this link. I don't know how to proceed further). I'm not familiar with Google cloud either. So a working sample

How get user email from MS Teams with a Bot using SDK4?

本秂侑毒 提交于 2020-05-17 06:34:38
问题 We have used C# and Bot Framework SDK4 for developing bot application and we have deployed the same on MS-Teams channel so for Authorization purposes, we required emailid of the MSTeams logged in user, so initially, we have faced some problems for getting emailid from the Activity object. but after doing some analysis we are getting email id from the BotFrameworkAdapter class in ms-bot v4 using C# 回答1: Private async Task GetUserProfile(TurnContext context,CancellationToken cancellationToken)

Adaptive Card: Dynamically show Card on dropdown click in Adaptive Card : Bot Builder

£可爱£侵袭症+ 提交于 2020-05-17 03:00:23
问题 I have to create a adaptive card which have city of name and each city have different holiday list. I have to show city name in dropdown list and on selection of each city i have to show child card which contains Holiday list. I have develop below code: private async Task<DialogTurnResult> ShowCard(WaterfallStepContext stepContext, CancellationToken cancellationToken) { List<string> city = new List<string>() { "Delhi", "Bangalore", "Mumbai" }; List<string> date = new List<string>() { "1-Jan",

Problem in coding a Welcome Message along with options in RASA

血红的双手。 提交于 2020-04-18 05:49:44
问题 I read this answer on How to code a Welcome Message in RASA, accordingly, I did write a custom action but it is not displaying the message as soon as the session starts, instead, it replies after the user has sent a message. Below is my code for printing just the welcome message. I had put this in my "actions.py" file. Please help me to fix this problem. The image below is an example of How I want my bot to start, It would start up with a general message and then it would give options which

Why rich message created in dialogflow wouldn't appear in a bot tested on Slack?

狂风中的少年 提交于 2020-04-18 05:46:16
问题 I created two answers for the Default Welcome Intent. One in the default one and the other as a text response which shows up in Slack and the other one using Slack as a channel of my bot, clicking on Add Response to start creating responses just for Slack using Dialogflows UI. The second is the following, a default template for polling from the docs: { "blocks": [ { "type": "section", "text": { "type": "mrkdwn", "text": "*Where should we order lunch from?* Poll by <fakeLink.toUser.com|Mark>"

[BotFramework]: How to fix:Welcome message is not getting displayed to the user in C# WebChatBot developed in V4 but displayed in Emulator?

江枫思渺然 提交于 2020-04-18 03:29:57
问题 <!DOCTYPE html> <html> <head> <title>Avanade D365 F&O Assets BOT</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- For demonstration purposes, we are using development branch of Web Chat at "/master/webchat.js". When you are using Web Chat for production, you should use the latest stable at "/latest/webchat.js". Or locked down on a specific version "/4.1.0/webchat.js". --> <script src="https://cdn.botframework.com/botframework-webchat/latest/webchat.js"><

[BotFramework]: How to fix:Welcome message is not getting displayed to the user in C# WebChatBot developed in V4 but displayed in Emulator?

戏子无情 提交于 2020-04-18 03:29:15
问题 <!DOCTYPE html> <html> <head> <title>Avanade D365 F&O Assets BOT</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- For demonstration purposes, we are using development branch of Web Chat at "/master/webchat.js". When you are using Web Chat for production, you should use the latest stable at "/latest/webchat.js". Or locked down on a specific version "/4.1.0/webchat.js". --> <script src="https://cdn.botframework.com/botframework-webchat/latest/webchat.js"><

Trigger intent after bot response

◇◆丶佛笑我妖孽 提交于 2020-04-17 22:16:46
问题 The dialogflow fulfillment code sample can return response in intent as follow. function welcome(agent) { agent.add(`Welcome to agent!`); } Suppose that I want to trigger another intent name "faq" right after that without any user input . How can it be done? I am expecting something as follow but could not find any documentation. function welcome(agent) { agent.add(`Welcome to agent!`); agent.triggerIntent('faq'); } I look at the custom event documentation but still unable get the idea to

Trigger intent after bot response

人盡茶涼 提交于 2020-04-17 22:15:09
问题 The dialogflow fulfillment code sample can return response in intent as follow. function welcome(agent) { agent.add(`Welcome to agent!`); } Suppose that I want to trigger another intent name "faq" right after that without any user input . How can it be done? I am expecting something as follow but could not find any documentation. function welcome(agent) { agent.add(`Welcome to agent!`); agent.triggerIntent('faq'); } I look at the custom event documentation but still unable get the idea to