dialogflow

Using app.ask more than once function

不羁岁月 提交于 2019-12-11 16:45:53
问题 Within my function I would like to use app.ask('blah blah blah'); more than once. However when testing it, only the first app.ask() is spoken for which I expected it to also speak out the 2nd response too. The function looks something like this: for(var i = 0; i < array.length; i++) { if (array == ##) { app.ask(response 1) } else { app.ask(response 2) } } 回答1: That is correct - you can only use app.ask() once since that will send the response to the user. Once you send the response to the

How to setup a more complicated 'IsList' parameter in Dialogflow

雨燕双飞 提交于 2019-12-11 16:24:44
问题 I've asked this question previously: How to setup a complicated 'IsList' parameter in Dialogflow In there I had this example: "I want 7 apples, 8 oranges and 12 bananas" So by setting up a 'Developer Composite Entity' that looks like this: @sys.cardinal:Amount @Fruits:Fruit I was able to solve my problem. In there I'm using the @sys.cardinal system entity and my own custom @Fruits entity, which has a bunch of fruits in it. I'm now looking for a way to handle examples like this: "I want green

Dialogflow automatically goes to Default Welcome Intent after follow up despite telling it not to

岁酱吖の 提交于 2019-12-11 16:23:34
问题 How do I ensure that when the user replies to the question: "Are you wanting a happy, sad, angry or confident song?" with "Angry", that the agent takes the user back to the "angry" intent (it's grandparent's brother) and not the default welcome intent? Here is my layout: DefaultWelcomeIntent-->-Happy-->-Happy-noIncorrectEmotion (back to DefaultWelcomeIntent) The user replies "happy" to the original "how are you feeling?" question |_____The user replies "no" to the emotion checker intent

Dialogflow integration in an external Website: are there tutorials or detailed examples?

 ̄綄美尐妖づ 提交于 2019-12-11 15:58:16
问题 I've been looking for a tutorial or a detailed example that would explain step by step how to integrate our chatbot in our website but I cannot find anything. So far I've found this thread How to integrate dialogflow with website?, but the answer is very obscure to me (I am beginner) and I would prefer something more detailed and explaining the step from the beginning. An example would also be a good solution. I've also found a solution from a company named Kommunicate, but so far paid

how to trigger Dialogflow's “WELCOME” event after bot initialized

时间秒杀一切 提交于 2019-12-11 15:57:58
问题 I am in learning stage of node.js and BotFramework-WebChat. I have a simple Dialogflow project and I have installed BotFramework-Webchat.. I need to trigger Dialogflow's "WELCOME" event after bot initialized? I have read and followed the article on https://blog.botframework.com/2018/07/12/how-to-properly-send-a-greeting-message-and-common-issues-from-customers/ I found samples/backchannel of Microsoft/BotFramework-WebChat I thought I can use it for starting to learn it. but because of my

Messenger ref parameter is not passed to dialogflow

て烟熏妆下的殇ゞ 提交于 2019-12-11 15:54:24
问题 I'm trying to connect messenger bot and dialogflow. The idea is - when you click on the button, service is redirecting you to the me link (example: http://m.me/2010070995927131?ref=initial_message_with_param) then dialoglflow receives initial_message_with_param as message and fullfilment can generate the response. Sending messages works at all but unfortunately, ref param doesn't. Do you have any ideas why ref param is ignored on Dialogflow side? 回答1: Been few months, but i just came across

is there a way to activate a dialogflow intent dynamically?

会有一股神秘感。 提交于 2019-12-11 15:54:01
问题 I wonder if there's a way to activate dinamically an intent, a sort of "it this condition is met, than goto intent XX". I try to explain what I'd like to do: when the user says a specific word, the intent looks up in the database what are the tasks to be done according to a priority algoritm. If for example task 1 is selected as topmost priority, then I should be able to activate "at runtime" task 1 intent, without asking the user to say "please say 001 to activate task 1" . Thanks in advance

Send audio file to DialogFlow using Python

萝らか妹 提交于 2019-12-11 15:47:12
问题 I know that I can send data (Text in this case) to DialogFlow by using Python in the following way: ai = apiai.ApiAI(CLIENT_ACCESS_TOKEN) request = ai.text_request() request.lang = 'de' # optional, default value equal 'en' request.session_id = "<SESSION ID, UNIQUE FOR EACH USER>" request.query = "Hello" response = request.getresponse() print (response.read()) But I'm not sure if I could send an audio file to DialogFlow, does anyone know about that? 回答1: There are two ways to use audio files

Dialogflow Webhook Response c# gives error on invoke

社会主义新天地 提交于 2019-12-11 15:44:35
问题 I'm trying to create a webhook for Dialogflow in C# (on Azure). Everytime I see the same example but my DialogFlows keeps geting an error with this response" Here's what I did: Created a new ASP.Net Web Project (WebAPI) installed NuGet Google.Cloud.DialogFlow V2 (v1.0.0.beta02) updated System.Net.Http to 4.3.3 Created a new controller [System.Web.Http.HttpPost] public dynamic DialogAction([FromBody] WebhookRequest dialogflowRequest) { var intentName = dialogflowRequest.QueryResult.Intent

How to add Table Card in Dialogflow Fulfillment?

时光毁灭记忆、已成空白 提交于 2019-12-11 15:03:45
问题 I've been working on my Dialogflow Fulfillment in my Webhook / Web API and I'm now looking at the Fulfillment Messages part of the response. I've realized it has to be a list of GoogleCloudDialogflowV2IntentMessage . Looking at the metadata of that class; I see this: It seems to support all these types of responses: Basic Card Card Carousel Select Image Link Out Suggestion List Select Payload Quick Replies Simple Responses Suggestions Text When I was working in the Dialogflow Console; if I