dialogflow

Error “Empty speech response”

血红的双手。 提交于 2019-12-10 13:07:45
问题 I tried to connect DialogFlow and Actions on Google , so I created some intents, connected the services, added explicit and implicit invocations etc, but when I try the bot in the simulator https://console.actions.google.com/project/[projectId]/simulator/ it always gives me the error: "Failed to parse Dialogflow response into AppResponse, exception thrown with message: Empty speech response " even tough inputType was "KEYBOARD". What I tried so far: I did set "Response from this tab will be

Dialogflow - Match intent if phrase is ever present

十年热恋 提交于 2019-12-10 11:14:37
问题 Two of the intents I have within Dialogflow is to search the users current Incidents or Requests within our service management module. What I would like to do, is to get Dialogflow to match to the correct intent if a Request Number or Incident number is ever entered into the bot. For example, every incident has a prefix of INC and requests have a prefix of REQ. Ideally, if at any point there appears INC or REQ in the user's message, then it would match to the relevant intent. So a user could

How to use CORS in javascript to get response from Dialogflow (Api.Ai)

ぃ、小莉子 提交于 2019-12-10 10:47:23
问题 Since last couple of hours when I try to connect api.ai using javascript I get the following error . "Failed to load https://api.api.ai/v1/query?v=20150910: No 'Access-Control-Allow-Origin' header is present on the requested resource." I try to send request to Api.AI using javascript by following way:- const client = new ApiAi.ApiAiClient({ accessToken: "*******************" }); const promise = client.textRequest(query); promise .then(handleResponse) .catch(handleError); function

How to create suggested input in actions on google while creating an google assistant app in dialogflow?

浪尽此生 提交于 2019-12-10 10:29:02
问题 I want to put a prompt to allow user to choose while responding in google assistant app. I am creating this in dialog flow. How do I do this? 回答1: If you want to add "suggested input" items into your conversational experience as they show in the simulator or on a screen device, you are talking about "Suggestion Chips". Here is what that looks like in the simulator: Using Dialogflow you can go into an Intent, and go to Responses. Go to the Google Assistant tab. Add a response and choose the

Dialogflow dynamic enity issue

余生颓废 提交于 2019-12-10 10:19:55
问题 I am trying to create an Actions on Google app using Dialogflow (api.ai). I need to get the train status. So my entity will be train number or train name. There is a lot of train names. So I can't add the entity values manually. How can i add entity values dynamically to the console? 回答1: You can add large sets of values and synonyms either JSON or CVS formatted by: Directly pasting them in the Entity raw mode JSON or CSV fields. Uploading a JSON or CSV formatted file entity. Make POST calls

How can I make http call to DialogFlow V2 using simple ajax jQuery?

一曲冷凌霜 提交于 2019-12-10 00:30:27
问题 I have been using DialogFlow v1 before using simply jquery and it was pretty straigh forward working! Now that I have to switch to V2 I am stuck on how to keep somehow same code but just modify with the V2! I have been looking at this client library for V2: https://github.com/dialogflow/dialogflow-nodejs-client-v2#using-the-client-library But I dont wanna use Node.js I just dont want to do somthing like node server.js to run the app, also I am not sure if I can mix jQuery with Node.js. My

Google Assistant flow with multiple actions_intent_OPTION handlers

吃可爱长大的小学妹 提交于 2019-12-09 21:15:22
问题 I have webhooks configured through Dialogflow for a template chatbot UI starter project I'm making on Github. I have a bot integrated through Facebook Messenger and Google Assistant. All of Facebook works fine because the actions send back strings and it's easy to handle. But when Google Assistant tries to handle items of "@type": "type.googleapis.com/google.actions.v2.OptionValueSpec", actions_intent_OPTION is needed on the event in Dialogflow to handle the response. If I have just one in my

Getting “Sorry, I didn't get any response.” message when I tried Hand-off feature

痴心易碎 提交于 2019-12-09 18:34:11
问题 When I tried Multi-surface conversations (Hand-off from Google Home to Android Google Assistant), I'm getting "Sorry, I didn't get any response." I'm using Action SDK and locale is "ja". Here is my response: { "conversationToken": "(token)", "expectUserResponse": true, "isInSandbox": true, "expectedInputs": [ { "possibleIntents": [ { "intent": "actions.intent.NEW_SURFACE", "inputValueData": { "@type": "type.googleapis.com/google.actions.v2.NewSurfaceValueSpec", "context": "Sure, I have some

How to store and retrieve the chat history of the dialogflow?

蹲街弑〆低调 提交于 2019-12-09 15:53:52
问题 I want to redirect the chat from Google dialogflow to a human. For this, I want to get the history of the conversation made by the user. Is there any platform where the history is being stored? If yes, how to access it. If not, how to achieve this functionality.. 回答1: There's no current API to retrieve session history. The only alternative is to save the history yourself. You can use any database you're familiar with, MySQL, MongoDB, or even a cloud hosted database such as Firebase Realtime

Change language of actions-on-google websimulation or test google home in German

帅比萌擦擦* 提交于 2019-12-09 04:44:56
问题 I am using actions on google with api.ai. I am able to create a api.ai bot in a language other than English, but the web simulator of actions-on-google (https://developers.google.com/actions/tools/web-simulator) seems to work in English only? Is there any option to change the language there or a time schedule when other languages (in my case German) will be available in the simulator? Currently testing a non English action is impossible, because the web simulator does not even forward