dialogflow

How do I set context and followup event in one intent?

我的梦境 提交于 2019-12-09 04:36:32
I am trying to jump to a random question with followup event, and at the same time store the question number in the context. But dialogflow only jumps to the event without storing the question number. Is there a way to do followup event and store a context in one intent? app.intent('Quiz - random', (conv) => { let rand = Math.floor(Math.random() * quiz_len) + 1; conv.data.current_qns = rand; conv.followup(`quiz-question${rand}`); }); Not really. The point of using conv.followup() is to make it as if the new Intent is the one that was actually triggered by the user. Remember - Intents represent

How to query firestore with the Dialogflow inline editor to get information

三世轮回 提交于 2019-12-09 03:56:28
问题 I am using the inline editor within Dialogflow with the aim of making queries to the database I have created within Firestore. In short, the user requests a list of courses, I'd like the chatbot to then grab that information form the db and display that back to the user. Below I have tried to create a function that will do this, I want to take the user input, say "Art Courses" and have my db return those results. So far, I have created a function that is triggered when the intent is matched,

Null response for name and email entities

泪湿孤枕 提交于 2019-12-09 01:04:59
问题 I tried inbuilt variable "user" methods, $user.name and $user.email in text response of API.AI, to greet user and show email-Id. Is there any inbuilt variable name user? Example(User sign-up with Gmail), Response-Code, I had tried in API.AI's text-response dialog box: Hi, $user.firstname This is your $user.email Expected: User: Hi! My-Assistant-App: Hi, Varun. User: Show my email-id My-Assistant-App: This is your ******@gmail.com Output, I am getting in the My-Assistant-App: User: Hi! My

Force user to relink his/her account

狂风中的少年 提交于 2019-12-09 00:55:16
问题 Very simple use case explaining my problem: Given my app asks for a pin for some interactions. Now the user gives me three times a wrong pin. Then, I want to reset his access and force him to re-link his account. I can do this pretty easily in my internal database, but I need a way to tell google that his currently used token is not valid anymore. Else, Google Assistant resists in sending me the now rejected token. Update 2018-03-01 : With the new built-in intents/events, I also tried sending

Why are none of my Google Actions Alpha releases appearing in the Google Assitant store?

倾然丶 夕夏残阳落幕 提交于 2019-12-08 19:59:18
In my developer account, I can succesfully test the app using the simulator. I also sucessfully deployed an Alpha version, and waited 24 hours. However the opt-in link doesn't work. Every time I navigate to it, I see: We can't find what you're looking for at the moment. Please try again later. YES, I have the activity controls all enabled YES, I have a google home device connected to this account YES, I am the developer of this action, and have verified permissions in IAM This is driving me bananas. Does anyone have any suggestions on how to get it to appear? The problem is that I was not

How to solve MalformedResponse 'final_response' must be set. error in action simulator

落花浮王杯 提交于 2019-12-08 17:11:30
问题 Hi, When I try to test my Test app, it gets stopped and display My test app isn't responding right now. Try again soon . When I check validation error tab I notice I got this error MalformedResponse 'final_response' must be set. here is the Debug info: <code> { "audioResponse": "//NExAAQMQ...", "conversationToken": "GidzaW11bG...", "debugInfo": { "agentToAssistantDebug": { "agentToAssistantJson": "{}" }, "assistantToAgentDebug": { "assistantToAgentJson": "{\"user\":{\"userId\":\

How long does it take for the app to time out and exit the conversation

半城伤御伤魂 提交于 2019-12-08 13:31:25
问题 How long does it take for the google assistant agent to timeout and end/leave the conversation? I configured a chat bot with actions-on-google where The GA would ask user to choose which product to buy from a List. Then the user locked the phone's screen After a few minutes, the user reactivates google assistant again User selects one of the product from the list by scrolling up the history The transaction proceeds I expected the app to exit the conversation after a certain duration, which

set input or output context dialogflow nodejs v2

限于喜欢 提交于 2019-12-08 13:25:20
问题 I am using dialogflow NPM module and I want to send input/output context but I am not sure how to do. I know I can do in google-assistant NPM with I can set contexts with parameter using below method, const parameters = { // Custom parameters to pass with context welcome: true, }; conv.contexts.set('welcome-context', 5, parameters); 回答1: In order to send a context using the Dialogflow NPM module, you have to first create a context, using dialogflow.ContextsClient and then send it on the query

I can not get information with “DialogflowApp.getUser” method

ⅰ亾dé卋堺 提交于 2019-12-08 11:58:54
问题 https://developers.google.com/actions/reference/nodejs/ApiAiApp I'd like to obtain an access token on Dialogflow by referring to the above official website, but the execution result of DialogflowApp.getUser() will be null. Account linking is set up and on the client side it is certified with a Google Account. AssistantToAgentDebug.assistantToAgentJson.user on the DEBUG tab of DialogFlow Simulator contains a value. Also, I can get an access token by referring req.body.originalRequest.data.user

How to get user information using webhook in c#

坚强是说给别人听的谎言 提交于 2019-12-08 11:44:32
问题 I'm using api.ai and for webhook visual studo 2015 c# . I have created some action for some intents and now i'm looking for an action called "welcome.input". I want to get username of the user. If the user is starting conversation with the bot for the first time i want to give him the possibility to view help menu or standard menu , and when the user re-enter in the bot i want to send text : Welcome back {username} and to show him the standard menu. Have you any idea how to do this. I was