Integrate your yellow.ai platform with Google Identity management for a simplified user authentication and enhanced security. This integration lets you effortlessly create a login URL within the Yellow.ai platform. This URL allows users to conveniently log in and access their information, ensuring a smooth and efficient experience.
Connect Google identity management with Yellow.ai.
To integrate your Google Identity Management account with Yellow.ai, follow these steps:
Fetch Client ID and Client Secret from Google console
Fill in the details and click Create.
Click more on the top right corner and click APIs & Services > Enabled APIs & services.
To set up the OAuth, click Configure consent screen on the right.
Choose the User Type as Internal and click Create.
Fill in all the mandatory fields in the following page and click Save and Create at the bottom of the page.
Set the scopes in the following screen. Click here to know about the scopes in detail.
Go to + Create Credentials > OAuth client ID.
Copy the Client ID and Client Secret.info
To retrieve package name and private key from google console, please follow the steps mentioned here.
Add the credentials in Yellow.ai
Go to Integrations > Search for Google Identity Management.
Fill in the following fields:
- Give account name: Provide a name to your account.
- Client ID: Paste the Client ID. (copied from the previous step)
- Client secret: Paste the Client secret. (copied from the previous step)
After a successful integration, copy the Webhook URL.
Go to your Google console > APIs & Services > Credentials and paste it under Authorized redirect URIs.
Activate Google auth success event
To let the yellow.ai bot know that the user has successfully logged in, you need to activate this event.
Go to Studio > Event > Integration > Search for google-auth-success > Activate.
You can set this event as a start trigger for a flow. This flow will get triggered after a user has successfully been authorized. Build the flow to execute the desired action immediately after the user's authorization.
Set up the Google login URL on Yellow.ai
Go to Studio and create a flow based on your usecase.
Include the integration node at the point in the flow where you want to authorize the user or when the bot needs to request user authorization. To accomplish this, navigate to Integrations and select Google Identity Management.
Click the node and fill the following fields:
Account name: Select the name of the Google account you will be using.
Action: Choose Generate Login URL.
Redirect URI: Copy the webhook url from integration card(as mentioned here) and paste it.
Scope: Enter your Google console scope seprated by space. For example, openid https://www.googleapis.com/auth/userinfo.profile
Store the reponse of this node in a variable.
To display the URL to the user, pass this variable in a message node in this syntax