actions-on-google

DialogFlow V2 user id?

一曲冷凌霜 提交于 2019-12-07 17:53:52
问题 Is there a way to track user Id between conversations without requiring the user to connect their Google account? Like an anon userId. I don't see any id field in the docs: https://dialogflow.com/docs/fulfillment#request 回答1: According to the latest usage, conv.user.id is DEPRECATED : Use conv.user.storage to store data instead For more details, have a look at this answer by Prisoner. 回答2: you can get userId like this: let userId = conv.user.id; Sample intent: app.intent(INTENT_DEFAULT

How to add the delivery address details to the order preview?

江枫思渺然 提交于 2019-12-07 16:28:37
问题 I want to create a chatbot with Dialogflow and Google Assistant along with Google Transactions API for enabling a user to order some items. For now my agent contains the following four intents: Default Welcome Intent (text response: Hello, do you want to buy a chocolate box?) Default Fallback Intent Int3 (training phrase: Yes, I want, fulfilment: enabled webhook) Int4 (event: actions_intent_TRANSACTION_DECISION , fulfilment: enabled webhook) I am using Dialogflow Json instead of Node.js to

Actions on Google, Beta Release: Testing instruction not found

允我心安 提交于 2019-12-07 12:57:26
Basically, I have the same problem as this question here. The accepted answer in that question suggests that we should give directions to the review team in Testing Instructions section. But in my case, which is: Account creation: Yes, allow users to sign up for new accounts via voice Linking type: Google Sign In Client information: my_client_id There is NO Testing Instructions section. But, when I try to do the deploy, it will still demand me to give the instructions and won't allow me to do the deploy. How am I supposed to deal with this scenario? The answer state the test instructions

Initiating a phone call

烂漫一生 提交于 2019-12-07 06:58:23
问题 Is it possible yet to initiate a phone call? E.g. if I'm making a branch finder action a dialogue might go like: "Hi, where's my nearest store?" "Your nearest store is our Oxford Street branch, at 300 Oxford St, Marylebone." "Call it" "Sure" It then initiates a call to the store, like an Android app using an ACTION_DIAL intent. I would think something like this should be possible, especially considering the current devices supporting Assistant are phones and Google Home, both of which can

Can't install gactions CLI

一笑奈何 提交于 2019-12-07 02:55:35
I'm trying to install the google actions CLI. The docs: https://developers.google.com/actions/tools/gactions-cli I followed the commands here as well as from the question/answer here . I downloaded the Mac x86_64. Then ran the following command on it: Run chmod +x gactions to make the binary executable. It did turn the file into an executable. When I clicked it, it opened in terminal and did something. However in a new tab in terminal it still does not understand the gactions. Also I don't use terminal but iterm2, so I tried opening the executable in iterm2 and got this error. How to update

DialogflowApp askForUpdatePermission Not Working

我只是一个虾纸丫 提交于 2019-12-07 02:36:31
问题 1) askForUpdatePermission not finding intent I followed the Update Sample at Github -dialogflow-updates-nodejs and got the update permission to work. But when I added app.askForUpdatePermission("get.next.reminder") into my own code, the simulator says that my agent is not responding. I did not get the question to give update permission. In the simulator error tab, I see an error: MalformedResponse expected_inputs[0].possible_intents[0].input_value_data: The intent the app is asking for

Actions on Google and Account linking failure after tokens returned

只愿长相守 提交于 2019-12-06 15:48:24
Trying to test auth in the Web Simulator using the OAuth2 Authorization Code Flow, https://developers.google.com/actions/tools/web-simulator See: https://developers.google.com/actions/tools/testing#testing_account_linking_with_google_home_web_simulator And: https://developers.google.com/actions/develop/identity/oauth2-code-flow Provided you've setup your Action to require authorization against your authorization service, when you try to access your Action the Assistant advises you that you need to Link your account. In the same response the simulator provides a URL for initiating the linking

Is it possible to trigger another Actions on Google app from within my own AoG app's fulfillment? [duplicate]

旧街凉风 提交于 2019-12-06 14:14:35
This question already has answers here : How to Invoke or call one app from another app in Android? (3 answers) Closed last year . This question pertains specifically to Actions on Google Apps and is concerning the ability to trigger an event/action to cause the Assistant to choose another AoG app for the end user; specifically to trigger someone else's AoG app, not one that you have written. Idea: I want to create a custom AoG app. Something like planning-for-a-hike app . I want my user to be able to ask about the weather. At that point, I want to pass the flow over to an already existing app

Unable to read intents using Actions SDK

僤鯓⒐⒋嵵緔 提交于 2019-12-06 12:27:37
I've got the following action in my action.json file, { "description": "Recommend movies", "initialTrigger": { "intent": "GIVE_RECOMMENDATION", "queryPatterns": [ {"queryPattern": "What should I watch?"}, {"queryPattern": "Give me a recommendation"}, {"queryPattern": "Tell me a good ($String:genre)? movie"} ] }, "httpExecution": { "url":"my webhook URL here" } } On my API, I've got: app.post('/', function(req, res){ let assistant = new ActionsSdkAssistant({request: req, response: res}); console.log('Current intent: ' + assistant.getIntent()); } When I simulate my action, and say "What should I

DialogFlow - Improve entity/parameter recognition for alphanumeric parameters

柔情痞子 提交于 2019-12-06 12:18:47
问题 I'm trying to create a DialogFlow intent that will ask the user for an account code. Account codes are alphanumeric and can be up to 10 characters. I originally setup my intent with a @sys.any parameter which does collect the input. However with voice recognition it struggles as it's not a word as such. For example if I say the account code X36501 it gets interpreted as 'x3650 one'. What I thought I could do is create an entity called accountCode with a list of entries (synonyms turned off)