Google Transaction API has been implemented in Dialogflow Fulfillment. In my intent function my code is like agent.add(agent.conv().ask(new TransactionRequirements())). This code was running properly and giving response in google action console only before deployment in alpha test. But that time in mobile google assistance there were no response as well as no log in google firebase function. After deployment in alpha test the response is coming in google action console i.e
DISPLAY REQUEST RESPONSE AUDIO DEBUG ERRORS Invocation Error You
cannot use standard Google Assistant features in the Simulator. If you
want to try them, use Google Assistant on your phone or other
compatible devices.
Now also in mobile google assistant still response not coming. What is the solution for that?
let tran = new TransactionRequirements();
agent.setContext(context);
agent.add(agent.conv()
.ask(tran)
)
#stackjohnny
Related
I have created a Google assistant application which is connected to Dialog Flow project.
And the I have deployed it as Alpha release and tried to test it with mobile phone.
The issue I'm facing is all the responses from the application is duplicated, but when I
test it from the Action Console simulator or from Dialog flow it works fine.
Tried deleting and recreating the google project but to no avail.
In your intent on dialogueflow can you check under Responses if the Google Assistant action is un-toggled?:
Use responses from the DEFAULT tab as the first responses
Alternatively you can try deleting your default responses and set only the Google Assistant action. Possibly the intent's Default and Google Assistant response are sending both responses to dialogflow causing duplicate response.
I am using dialog flow to create an agent. When I try to embed it in my website, it gives me following error, "Cannot display response in Dialogflow simulator. Please test on the Google Assistant simulator instead.". It works perfectly fine in Google Assistant Simulator. I have seen people embed in their websites, but I don't know what I did different.
Any help would be appreciated.Code1 Code2 Code3 Code4
The expected output is a conversation between user and agent.Screenshot of my web page Screenshot of Dialog Flow Console
Okay, judging by the screenshots you added, you are trying to send a Google Assistant specific response to Dialogflow. In your welcome intent you are returning an Permissions object. This is something that only works for the Google Assistant. The web demo that you are trying to embed into your website doesn't support Google Assistant specific objects.
If you want to use the webdemo try sending only texts messages back to your user by using conv.ask("Your response") and conv.close("Your response") or give a response specific for Dialogflow. You can do this by either checking the request in code and sending a different text only response for Dialogflow users or you can create a Dialogflow only response in the Dialogflow console. Dialogflow responses are refered to as Default on the console.
I've created a basic app with a chatbot that can respond to what I type using DialogFlow and Angular. It is hosted locally. Now I want to have that chatbot respond to what I type with cards, lists and such. Like how Messenger has templates. I want to have a custom payload sent to me in response to what I send. Can anyone please help me? (NOTE: iam using the v2api)
Dialogflow supports rich message response to only certain platforms that it has listed on its website for ex. Facebook, google assistance etc. To display rich message you need to code it out.
User queries to dialogflow agent through google assistant using voice commands.I want to add some data in that user query. can we change the request parameters sent to agent? If yes, where? The code for google assistant library is in python.
I am working on python 3.5 on raspberry pi 3. I tried modifying event.py file located at google/library/assistant/ . But before the event for ON_RECOGNISING_SPEECH_FINISHED I got response from google assistant.
No, if you're using the Google Assistant SDK, you interact with the agent as if it was any other Google Assistant surface. There is no way to add additional context that is exclusive to your device.
Conversation Flow : android device/web simulator - google assistant - api.ai - webhook - [websocket/FCM push] - android device
From end of last week, access token is not delivered to our webhook server even if account linking was successful and it is displayed on web simulator debugging window. When we logged on webhook server, the account token value from api.ai was NULL. After this happened, next account linking is not processed even if I reset (turn it off and on again) api.ai agent.
I tried to make new actions project and migrate api.ai agent to new one, but it was the same. I make sure the same test has been successful before last week.
If anyone has gone through the similar issue, I hope your help.
I was also very confused because I was expecting the accessToken to be in the same JSON format as shown in the simulator.
if still not working please send the body of the request you receive not what the simulator show you.
but it's under originalRequest.data.user.accessToken.
if you are using NodeJS you don't need to parse anything you will just need to call :
getUser().accessToken
from ApiAiApp object in the actions-on-google node library.