# Synchronization

{% hint style="info" %}
go to <https://scribehow.com/shared/Google_Workflow__OjdQCOc5T02n_7_7FRLW7g> and follow the steps.
{% endhint %}

* Go to [console.cloud.google.com](https://console.cloud.google.com/) and sign in.
* Activate the Dialogflow API by entering Dialogflow API on the top search bar. Click Dialogflow API and then click Enable.
* Create your first project by clicking the Select a project button on top-left.  Name the project as you want.&#x20;

<figure><img src="https://4264271515-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHLdsRVMTAEtmrT1jSFQu%2Fuploads%2Ff81PnEElnZAlNBOmHoxF%2Fnewproject.JPG?alt=media&#x26;token=11240166-8200-4e06-9e5c-4eea876ebee9" alt=""><figcaption></figcaption></figure>

* Select the project and the go to Left menu > APIs and services > OAuth consent screen. Select External and click Create.  In App name enter what you want, in User support email and Developer contact information enter your email. Click Save and continue.&#x20;

{% hint style="info" %}
To carry out a successful project, always make sure to use the same email address, preferably a Gmail one.
{% endhint %}

* In the permission area, click Add or remove permission, scroll bottom and into the Manually add permission area enter <https://www.googleapis.com/auth/dialogflow,https://www.googleapis.com/auth/cloud-language,https://www.googleapis.com/auth/cloud-translation>. Click Add to table and then Update and Save and continue.&#x20;

<figure><img src="https://4264271515-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHLdsRVMTAEtmrT1jSFQu%2Fuploads%2FBkehon6f7sMLve5eYE8l%2Fadd%20permission.JPG?alt=media&#x26;token=353da275-abb4-4fa8-86d1-a32886fe0e6a" alt=""><figcaption></figcaption></figure>

* In the test users area, click Add users and add your Google email, use the same email as the currently logged in account. Click Save and continue.&#x20;
* Go to Left menu > APIs and services > Credentials and click Create credentials, select OAuth client ID.  As Application type select Web application. Enter any name you want. In Authorised redirect URI enter the redirect URL, get it from Norbit Chat > Settings > Dialogflow > Synchronization > Authorised redirect URI. Click Create.&#x20;

<figure><img src="https://4264271515-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHLdsRVMTAEtmrT1jSFQu%2Fuploads%2FezbnWAiBdGsmU6m2X4g9%2FURIS.JPG?alt=media&#x26;token=a96ea09c-0c1d-4094-b354-885a33925f71" alt=""><figcaption></figcaption></figure>

* Copy Client ID and Client Secret and paste them into Norbit Chat > Settings > Dialogflow > Synchronization. Save the settings.&#x20;

<figure><img src="https://4264271515-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHLdsRVMTAEtmrT1jSFQu%2Fuploads%2FIEAweLbISIR7xYAWeO4k%2FCLIENT%20ID.png?alt=media&#x26;token=ef0e00b0-c05b-4794-af98-c271689cf0e3" alt=""><figcaption></figcaption></figure>

* In Settings > APIs & Services > OAuth Consent Screen click PUBLISH APP. There is no need to complete the review process, leave it in the pending review state.

{% hint style="info" %}
Keep in mind that publishing the application may incur costs from Google, and additionally, your application will need to be reviewed by Google. We recommend keeping it in a testing phase.
{% endhint %}

* Click Norbit Chat > Settings > Dialogflow > Synchronization > Synchronize. Login with the same Google account you have used till now. On the next screen click Continue.  On the next screen select all permissions and click Continue.&#x20;
* Copy the Refresh token and paste it into Norbit Chat > Settings > Dialogflow > Synchronization > Refresh token.&#x20;
* You are almost done! Now you have to enter your chatbot Project ID or Agent Name, to get it follow the following steps. Note that the app does not need to be approved by Google.
