dialogflow

How to import a dialogflow zip using an API

你。 提交于 2019-12-25 01:48:11
问题 I've got a C# project and the dialogflow google api reference added in it. using Google.Cloud.Dialogflow.V2; And I want to know if I can use that to import a zip to my dialogflow agent. Using the Dialogflow Web Console I can do this: Would be great if I could achieve this functionality in C# somehow. Any help / advice would be appreciated. 回答1: I'd expect that to be a matter of calling AgentsClient.ImportAgent, e.g. var zipFile = File.ReadAllBytes("agent.zip"); var zipByteString = ByteString

Dialogflow webhook fulfillment parameter is not working in post API

爱⌒轻易说出口 提交于 2019-12-25 01:46:54
问题 I make a code in webhook were i want invoke POST API and i want to invoke that api for that i have to pass some parameter but whenever i am trying to pass parameter coming from dialogflow its gives error. My code is like that //Self Hosted Express Server const bodyParser = require('body-parser') var request = require('request-promise-native'); const { dialogflow } = require('actions-on-google'); const assistant = dialogflow({ clientId: "305xxxxxx7-rv9kocdq2xxxxouuq8f9ul2eg.apps

Is there a way to get user coordinates from telegram bot using Dialogflow?

人走茶凉 提交于 2019-12-25 01:26:02
问题 Currently im working on a telegram bot with Dialogflow. I want to get information about the user like current coordinates and user name but im not able to get them in the JSON coming from telegram. Is there a way to do such a thing without using any related google assistant events? 回答1: You can check the structure of updates received by bot on the documentation Telegram Bot API update.message.from contains the User object. update.message.location contains the Location object. Be aware that

I want to create multiplle event sat once using javascript from a dialogflow bot

浪尽此生 提交于 2019-12-25 01:16:38
问题 I have a chatbot in dialogflow that gets users date input to create an event but when I wanted it to make multiple events in google calendar using multiple dates entered by the user it doesnt work the code I use gets the user date and time and creates the constants with it which I use later in the insert event function to create the events I am new to google calendar api and javascript so I am not sure what is wrong with my code This is the code I use function makeAppointment2 (agent) { const

Mic is not working in dialogflow web integration with custom android app

别说谁变了你拦得住时间么 提交于 2019-12-25 00:28:52
问题 I am integrating my dialogflow agent with web android app but mic is not working with web integration. Although i am getting response while using text input in web demo but when i give input through mic, then neither input is recognised nor i am getting any response in my custom android app of web integration with dialogflow. I have also allowed microphone in iframe but still it is not working. Can anyone help me on this Please? <iframe allow="microphone;" width="350" height="430" src="https:

Actions on Google won't respond to explicit invocations

会有一股神秘感。 提交于 2019-12-25 00:22:14
问题 I'm developing an Action, let's call it "foo". It's a grocery list, so users should be able to explicitly invoke it like so: "ask foo to add milk" (fails) "ask foo add milk" (works, but grammatically awful) "tell foo add milk" (fails, even though it's basically identical to the above?) "talk to foo" ... "add milk" (works, but awkward) I've defined "add {item} to my foo list" and "add {item}" (as well as many others) as training phrases in Dialogflow. So it seems like everything should be

How to display a Table Card from Dialogflow Webhook in Google Assistant

半世苍凉 提交于 2019-12-24 23:05:29
问题 I've setup a ASP.NET MVC 4 Web API to handle dialogflow fulfillment. My goal is to integrate with Google Assistant and display a Table Card as a response. I'm testing through the Google Actions Console Simulator. I've added the Table Card details in the GoogleCloudDialogflowV2IntentMessage Payload field, based on what I've found out here: How to add Table Card in Dialogflow Fulfillment? The Fulfillment Response from my API Webhook ends up looking something like this: { "followupEventInput": {

function returning too early before filter and reduce finish

…衆ロ難τιáo~ 提交于 2019-12-24 22:16:37
问题 I have the following function, which is supposed to check through an array, sum up some values and then return a string with the sum (for Dialogflow/Google Assitant): function howMuch(app) { return bank.getTurnovers(accessToken) .then((result) => { const { turnovers } = JSON.parse(result); let sum = turnovers .filter((i) => { if (i.tags.includes(tag)) { console.log(i); // correctly prints relevant elements return i; } }) .reduce((prev, j) => { console.log(prev, j.amount) // correctly prints 0

How to get subjective answer from user

情到浓时终转凉″ 提交于 2019-12-24 21:33:27
问题 Is it possible to get a subjective answer from user? Here is sample conversation that I am trying to build, User: "I found a bug." => [triggers 'bug report' intent] Agent: "Can you explain the problem?" User: "App crashes everytime when I ask about xxx." => ['bug report follow-up' intent fails] I wanted to catch the user answer, line #3. Even if I setup correct follow-up context, 'Default Fallback' or other intent came out and handle the user response. It seems there is no intent that can

How to share webhook code and intents works together?

空扰寡人 提交于 2019-12-24 20:44:42
问题 I' m working with dialogflow to have a chatbot for renting different buildings(in my case called FMRs). I have a "New FMR" intent as shown in the following picture: As you see this FMR has different rent prices according to its facilities.I have a graphql database to store FMRs and their parameters. I used webhook and wrote a piece of java script code to get the list of FMRs. Whenever user says "Set up a new FMR called TEST with rent two bedroom at $1500" my code checks whether the FMR name