Skip to content

Gmail

References:

https://developers.google.com/identity/protocols/oauth2

Procedure:

  1. Create a OAuth Client ID

    Create oauth client id

  2. Enable the Gmail API in Google Cloud Platform

    • Search for “Gmail API” in the Google Cloud search bar
    • Click on Enable button

During the creation of the client, you must add your instance’s callback URL to authorized redirect URLs field.

https://credentials-INSTANCE-NAME/oauth2/callback

Click enable button

Click enable button

  1. In Mindflow, you can create a credential in the Vault (see screenshot). To avoid having to refresh the token every 15 minutes, add ?access_type=offline&prompt=consent in the Authorization Url field.

    Mindflow you can create credential vault

  2. After selecting the Gmail service in the Google portofolio>Workspace you can now send mail with the operation: Sends the specified message to the recipients in the To, Cc, and Bcc headers

    After selecting gmail service google portofolio

    From: <SENDER ADDRESS>
    Subject: "subject"
    To: <RECIPIENT ADDRESS>
    Content-Type: text/html; charset='UTF-8'
    Message Content !

References:

Procedure:

  1. Enable Domain-wide Delegation

    • Go to Google Admin in the Security tab
    • Click on the Access and Data Control > API controls
    • Scroll down and click on manage delegation at the domain level
    • Click on Add New, enter your client id and click onAuthorize
  2. Create a topic and subscription

    Click create topic create topic button

    topic 2.png

  3. Configure subscription to push notifications to Mindflow

    Copy address including api key into

    sub 2.png

  4. Grant publish rights on your topic

    perm 1.png

    perm 2.png

    perm 3.png

    perm 4.png

  5. Create a HTTP request in Mindflow to watch for emails notifications using the credentials

    • Screenshots

    Create http request mindflow watch emails