Create a Gmail Connection

Create a Connection to a Gmail in Hero_Flow

  1. Open Hero_Flow.
  2. Click Connections from the menu on the left.
  3. Click Create New Connection.

  4. Give the Connection a name and select Gmail from the drop-down list for Connection type.
  5. The Google Connection details screen pops up with fields that need to be configured.
    In order to configure the fields, you must set your Google account OAuth security to recognize Hero_Flow.

    Learn more about OAuth Authentication at https://developers.google.com/identity/protocols/OAuth2


    Setting up your Google OAuth authentication and authorization:

    Go to https://console.developers.google.com with the Google account which you want to use as a Connection in Hero_Flow.

    If this is your first time using the Google Cloud Platform. Agree to the terms of service, enter your country of residence, and click AGREE AND CONTINUE.



    Create a Project for the Hero_Flow app:

    Click on Credentials from the menu on the left.



    Click the Create credentials drop-down menu and select OAuth client ID.



    Select Web application.

    Enter a name for the app.

    Enter your Hero_Flow redirect URI for the OAuth 2 setting.

    Example:

    Your Hero_Flow instance URL
    Redirect URI to enter for the redirect URI
    https://12e4ef-u5uy67.cloud.automationhero.aihttps://12e4ef-u5uy67.cloud.automationhero.ai/oauth2

    Click Create.

    Your client ID and client secret are displayed. 


  6. After you have the client ID, client secret, and have the redirect URI set in your Google console, you can configure the rest of the Hero_Flow Connection details.
    Enter the Client Id, Client secret, and a Google app scope.

    Google app scopes can be found on https://developers.google.com/gmail/api/auth/scopes

    They are authorization scopes that express the permissions you request users to authorize for your app.


  7. Once all detail fields have been configured. Click Sign in with Google.

  8. Confirm the Google account you are using and then click Allow to create the connection with Hero_Flow.

    If you receive the error message below, your Google mail API has not yet been enabled.

    Copy the URL in the 3rd line of the error message and paste it into your browser.

    Enable your Google mail API by clicking ENABLE.

  9. Click Test Connection. A confirmation message is displayed if the connection has been established with your Google account.

  10. Click OK to finish saving the Connection in Hero_Flow.

Refreshing Token FAQs

http://usefulangle.com/post/51/google-refresh-token-common-questions