actions-on-google

How can we configure Context & Events in Inline Code editor

与世无争的帅哥 提交于 2020-07-23 11:10:19
问题 How can we configure Context & Events in Dialogflow Inline Code editor? I have tried the options below, but none of these is working. app.intent('test1', (conv)=>{ conv.Context.set({ name: 'weather', lifespan: 2, parameters: { city: 'Rome' }}); conv.followupEventInput.set({ 'name':'Event_Sample', "parameters": { "parameter-name-1": "parameter-value-1", "parameter-name-2": "parameter-value-2" }, "languageCode": "en-US" }); }); //conv.setContext({ name: 'weather', lifespan: 2, parameters: {

How can we configure Context & Events in Inline Code editor

夙愿已清 提交于 2020-07-23 11:09:10
问题 How can we configure Context & Events in Dialogflow Inline Code editor? I have tried the options below, but none of these is working. app.intent('test1', (conv)=>{ conv.Context.set({ name: 'weather', lifespan: 2, parameters: { city: 'Rome' }}); conv.followupEventInput.set({ 'name':'Event_Sample', "parameters": { "parameter-name-1": "parameter-value-1", "parameter-name-2": "parameter-value-2" }, "languageCode": "en-US" }); }); //conv.setContext({ name: 'weather', lifespan: 2, parameters: {

How can we configure Context & Events in Inline Code editor

送分小仙女□ 提交于 2020-07-23 11:08:09
问题 How can we configure Context & Events in Dialogflow Inline Code editor? I have tried the options below, but none of these is working. app.intent('test1', (conv)=>{ conv.Context.set({ name: 'weather', lifespan: 2, parameters: { city: 'Rome' }}); conv.followupEventInput.set({ 'name':'Event_Sample', "parameters": { "parameter-name-1": "parameter-value-1", "parameter-name-2": "parameter-value-2" }, "languageCode": "en-US" }); }); //conv.setContext({ name: 'weather', lifespan: 2, parameters: {

manipulating a specific context using output context response

荒凉一梦 提交于 2020-06-29 06:44:52
问题 I'm currently trying to change a specific value of one of my context using webhook response and from what I found, the following should work: { "fulfillmentText": ${textToSpeech}, "fulfillmentMessages": [{ "text": { "text": [${text}] } }], "payload": { "google": { "expectUserResponse": true, "richResponse": { "items": [ { "simpleResponse": { "textToSpeech": ${textToSpeech}, "displayText": ${text} } } ], "suggestions": ${suggestions}, "linkOutSuggestion": { "destinationName": "Feedback", "url"

manipulating a specific context using output context response

拟墨画扇 提交于 2020-06-29 06:44:37
问题 I'm currently trying to change a specific value of one of my context using webhook response and from what I found, the following should work: { "fulfillmentText": ${textToSpeech}, "fulfillmentMessages": [{ "text": { "text": [${text}] } }], "payload": { "google": { "expectUserResponse": true, "richResponse": { "items": [ { "simpleResponse": { "textToSpeech": ${textToSpeech}, "displayText": ${text} } } ], "suggestions": ${suggestions}, "linkOutSuggestion": { "destinationName": "Feedback", "url"

slot filling triggers different intent in dialogflow

两盒软妹~` 提交于 2020-06-29 04:09:06
问题 I have two intents pizzaSelected and burgerSelected in both intents I am asking for required parameters I have below entities @pizza [pepperoni, farmhouse, country special, cheese] @pizzaSize [small, medium, large] @burger [veg, beef, ham] @burgerToppings [onion, tomato, lettuce, pepper] expected conversation user: order 2 burgers bot: which burger? user: cheese bot: sorry but we have veg, beef and ham burgers. please select one from this. user: veg bot: toppings? user: tomato and lettuce bot

Unlinking the Google account from DialogFlow conversation

邮差的信 提交于 2020-06-29 03:50:33
问题 How can we Unlink the google account from the particular intent in inline code? There are no built-in actions to trigger sign out like there are for sign in (actions_intent_SIGN_IN). Suppose user by mistaken logged in via some another account and now he wants to switch. How we can provide this facility? 回答1: Currently it is not possible to unlink the Account via Voice. But the user can reset the Account at the Action Directory on the bottom of the side. 来源: https://stackoverflow.com/questions

Getting Undefined value for SignIn.status during account linking

帅比萌擦擦* 提交于 2020-06-17 15:47:40
问题 I am working on the Account Linking & set google Sign-IN in Linking type in Google. I have created two intents, one will call the google Sign-In feature and the second one will read the data from google account for. eg. email id, name. In Intent 1, I have enabled the webhook call for this intent. In Intent 2, I have set Event to actions_intent_SIGN_IN & enabled the webhook call for this intent. Though my these functions (Intents results) in Inline Editors are successfully executing, still I

Google Smart Home - Report State Real Time UI update

点点圈 提交于 2020-06-16 20:50:15
问题 I have a question regarding report state and live updating in the app. When I report a state from my server I expect to see changes in my thermostat without going to the main screen of the app and back into the thermostat. Now I have read many similar questions about this and I understand the app doesn't support updating the UI in real time with report state. I also followed the codelabs tutorial on implementing a smart home action (https://codelabs.developers.google.com/codelabs/smarthome

Google Smart Home - Report State Real Time UI update

冷暖自知 提交于 2020-06-16 20:48:52
问题 I have a question regarding report state and live updating in the app. When I report a state from my server I expect to see changes in my thermostat without going to the main screen of the app and back into the thermostat. Now I have read many similar questions about this and I understand the app doesn't support updating the UI in real time with report state. I also followed the codelabs tutorial on implementing a smart home action (https://codelabs.developers.google.com/codelabs/smarthome