Actions Builder account linking throwing unexpected response - actions-on-google

I'm new to using the actions builder console. I'm trying to create an application called "test for reminder" and trying to use account linking to get user's email. I followed all the steps listed out on the account linking tutorial. However, when I trigger the action, I'm getting the following response: "To use test for reminder, you’ll need an account with test for reminder. To create a new one for you, I’ll just need some info. If you want more details, say "Tell me more." So, can I ask Google for your name, email address, and profile picture?"
I'm not sure where that response is being triggered and how to go past it. Is it unable to verify my google account? If the user is verified, I have an event handler which is supposed to trigger if the user is verified, but that is not happening either.
Any insights would be appreciated

Related

I want my actions to not use any type of account linking

I want to publish this action but everytime I submit for production it shows the same message for denial. I don't want account linking of any type for my actions. Please help me in this problem.
It seems by mistake you have enabled Account Linking in your action.
If you don't want any kind of authentication or linking in your actions, check Account Linking section under Develop menu and clear it.
If it is linked you will get an option to clear it at the right side of the panel.
If you want Account Linking than you need to provide atleast one login credentials in testing credentials section.

Google action "isn't responding right now" after account linking completed

Im developing a google action with account linking.
When a new user does an initial request to my action, I get it over the webhook and respond with the SIGN_IN response. The assistant asks the user to link the account. The users does so, and the action then reports "XXX isn't responding right now", yet there were no further webhook requests to respond to. There is nothing in the logs viewer other than the initial request.
The next request by the user works fine, indicating that account linking did indeed complete. How can I avoid this error to the user??
This is usually because you either have no Intent in Dialogflow which can handle the actions_intent_SIGN_IN event or you have one and it is not set to do webhook fulfillment and returns no response.

Unable to use sandbox accounts

I really need your help guys. Since two hours I'm facing with a very strange problem related to Paypal Sandbox. I read lot of answers here on stack overflow but none of them helps me.
I'll try the explain my problem: when I create a new sandbox account (respecting all rules like password strength, load balance etc.) I receive the "success" message, the account is created and visible in the list, but when I open it using "Profile" button I receive this error message (and is really a problem because I need to get the username, password and signature to work in sandbox mode):
Account Details
Your request is still processing, please wait...
No difference between "Buyer" or "Seller" account, it always fail.
I've tried in many ways (using notes, changing email address, using custom numbers into email) but nothing is work for me.
Someone can suggest me what can I do?
Thank you very much.
I think I've found a temporary solution to works with PayPal sandbox.
Instead of create an account using "Create Account" button you have to register a new account using sandbox website.
In details:
Go To: https://sandbox.paypal.com
Register a Business Account
Go To: https://developer.paypal.com/developer/accounts/ and click con "Click Here". This link is placed in the Second paragraph of the page:
Want to link existing Sandbox Account with your developer account? Click Here and provide credentials of your sandbox account
You will be redirect to sandbox paypal web site, if you don't do anything it will recognize your previous register account (anyway, if not, you have to login with the new created account), procede with linking process and after you will have, in the list of accounts, a new one with "Profile" button ready to show you informations necessary to works.
I don't understand way paypal release an important tool like this with a lot of bugs. No response received from no one.
BugPal your are luky because we needs you but please, improve your development process! :#
Looks like a general problem on Paypal side. We see same issues with two of our accounts. It was working last friday.

Sending Emails from different accounts with Google App Script

I have generated the codes with app script in order to send emails automatically if users changed some values in google spreadsheet, which is working fine.
Now I am sharing my google spreadsheet with the app script to two more person (e.g: PersonA, PersonB). Thus, I want whoever changes anything on google spreadsheet will be sending an email under his/her own account. E.g: [All of us needs to edit within the google spreadsheet itself, without going to the "current web app url", (thanks Cameron Roberts for the clarification] if PersonA changes anything, then an email will be sent out under PersonA's account, and an email will be sent out under PersonB's account if PersonB changes anything.
I did something based on the advice from user2970721 and Cameron Roberts. I adjusted "Deploy web App" as "User accessing the web app". e.g:
I also asked PersonA & PersonB to do the same under their accounts and made sure they have triggered the script at least once. e.g:
My issue is that after I have done all these mentioned above, no matter who changes anything on google spreadsheet, emails were always sent out from PersonB's account (my best guess is that I messed up something and PersonB was the last one who triggered the script).
Does the "Project version" need to be different for me, PersonA, and PersonB, or anything else I need to change? Any help would be greatly appreciated!
First, Your project versions do not need to be different for each user.
I'm assuming you are using the On Change event, rather than a web-app. If that's the case, you should disable the WebApp entirely, as it's not needed.
When PersonA creates an On Change trigger, that will be triggered anytime any user (eg PersonA or PersonB) edits the spreadsheet. When it is triggered the code will execute as PersonA , because PersonA created the trigger. As a result, the email will be sent from PersonA's account.
For the scenario you describe, where both PersonA and PersonB have created OnChange triggers and authorised the script. I would expect emails to be sent from both accounts that have created triggers.
To send only one email, from the account that did the edit, I think you would need to do a check to determine if the user who did the edit matches the user under who's authority the script is running. I've never done this before and the docs don't really make it clear if it's possible.
Try checking the User object (Eg e.user) included with the Change event, and see if that email address is reflecting the different users making the edits.
If it is, you can compare it with the effective user and send the email if they match.
https://developers.google.com/apps-script/reference/base/user
https://developers.google.com/apps-script/reference/base/session#getEffectiveUser()
Finally, it might be simpler to just include the address of the person making the edit in your email subject, and just have all the emails send from one account. That way you know who made the edit, but don't need to have every user create a trigger and do all the extra checking.

How to not exit a conversation after account linking?

When testing my app in the Simulator using a Speaker (e.g. Google Home), it always says "'MyApp' left the conversation" after successfully linking. Here is an example:
User signs up via the web site that I created for MyApp (i.e. they have an account associated with their Google email account).
User then tries to use MyApp using Google Home by saying "Talk to MyApp". They are greeted with this message:
Before you can use MyApp, you'll need to be signed in with them. To do
that, they'll need some of your info. If you want more details, say
"Tell me more. " So, can I share your name, email address, and profile
picture with them?
User says, "yes" and their account is linked.
Google Assistant responds with "Great, they found your account, and they've linked it to Google." That is followed by the line, "'MyApp' left the conversation."
Because MyApp left the conversation in step 4, the user has to say, "Talk to MyApp" once more in order to actually start using the app.
So my question is, is there a way that I can link the account and not have MyApp leave the conversation automatically? When my TokenUrl responds back to Google in order to link the account, it can just send token_type, access_token, and expires_in according to the documenation. There doesn't seem to be any other mechanism to tell it to not end the conversation but this seems like something that should be supported.
Any ideas? Thanks.
EDIT#1 to further explain setup
I have tried to create an Intent in the Dialogflow console and put "actions_intent_SIGN_IN" (from https://developers.google.com/actions/reference/rest/intents) and set it to be fulfilled by my webhook but this never fires.
In the Dialogflow console > Integration Settings, under "Explicit Invocation" I have "Welcome" (a.k.a. my Welcome intent that hands the WELCOME and GOOGLE ASSISTANT WELCOME Events. The Sign in required checkbox is checked next to this.
This is a problem with your Action, not with your OAuth server. It sounds like your Action isn't handling the Intent that reports the sign-in is a success or a request that contains the user's auth token.
Check your logs, including the logs for your webhook, to make sure there are no errors in that stage.