# Google Drive

ontman AI's Google Drive integration empowers you to seamlessly import your training data directly from your cloud storage. This guide will walk you through the step-by-step process of connecting your Google Drive to Frontman, enabling you to build more intelligent and effective chatbots with ease.

### Steps to Follow-

1. *Sign In to Google Developer Console:*
   * Go to \[Google Developer Console] (<https://console.developers.google.com/>).
   * Sign in with your Google account.
2. *Create a New Project:*

   <figure><img src="https://3746379134-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FamP4egBrOsuezKyj1NQl%2Fuploads%2FPgpmy35ZSdujgiW8STDN%2FGroup%201321316315asd.png?alt=media&#x26;token=ac4fb9f2-96ed-48f2-9496-edfe3ed560e0" alt=""><figcaption></figcaption></figure>

   * Click on the project dropdown at the top of the page and select "**New Project**".
   * Enter a Project Name and Select your organization if applicable.
   * Click "**Create**".
3. *Enable APIs and Services:*

   <figure><img src="https://3746379134-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FamP4egBrOsuezKyj1NQl%2Fuploads%2Fyv1a5wKiGasyFvJqnavs%2FGD2.png?alt=media&#x26;token=f6be521c-3507-4688-a7b7-f58164502510" alt=""><figcaption></figcaption></figure>

   * Once your project is created, go to the “APIs & Services” > “Library” section.
   * Find and select the API you need (Google Drive).
   * Click "Enable" to enable the API for your project.
4. *Create Credentials:*

   <figure><img src="https://3746379134-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FamP4egBrOsuezKyj1NQl%2Fuploads%2FiTmWWxwTbBTWxv98F1Zc%2FGD3.png?alt=media&#x26;token=98539034-fa6b-41c1-bb5a-31845020225c" alt=""><figcaption></figcaption></figure>

   * Navigate to “APIs & Services” > “Credentials”.
   * Click on “Create Credentials” and choose the type of credentials you need (OAuth 2.0 client ID).
     * For *OAuth 2.0 client ID*, you'll need to configure the consent screen and provide redirect URIs.
     * Provide the required information, including redirect URIs for web applications. Don't forget to paste Frontman's URL= [https://fm.makerobos.com](https://dev.fm.makerobos.com) in "Authorized JavaScript origins" and "Authorized redirect URIs"= <https://dev.fm.makerobos.com/account_setting/data-loaders?view=google_drive>
5. *Configure OAuth Consent Screen:*

   <figure><img src="https://3746379134-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FamP4egBrOsuezKyj1NQl%2Fuploads%2Fw89k2vG7WAaDbiJshVFy%2Fsac.png?alt=media&#x26;token=e4f2b24a-7ac6-4da1-a99e-7c7e191e975a" alt=""><figcaption></figcaption></figure>

   <figure><img src="https://3746379134-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FamP4egBrOsuezKyj1NQl%2Fuploads%2FQwFqtMl1BHlSBmgc3Zjx%2FGD3.png?alt=media&#x26;token=13ce648f-5033-4d65-9ebe-af1af7cb7432" alt=""><figcaption></figcaption></figure>

   * Go to “APIs & Services” > “OAuth consent screen”.
   * Choose "Internal".
   * Fill out the required information and save.&#x20;
   * Go to “APIs & Services” > “Credentials”.
   * Click “Create Credentials” > “OAuth 2.0 Client ID”.
   * Select the application type (Web application).
   * Add your logged in Email ID in as a user in "Test Users" section in OAuth consent screen.
   * Click “Create”.
6. *Download Your Credentials:*

   <figure><img src="https://3746379134-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FamP4egBrOsuezKyj1NQl%2Fuploads%2Fp9M99VGRC7qfsh3wIhYE%2FGD6.png?alt=media&#x26;token=022c426d-2452-4e78-a1f7-27d9b1ebc124" alt=""><figcaption></figcaption></figure>

   * After creating credentials, you can download them for use in your application.
   * For OAuth 2.0, you will get a client ID and client secret.
7. *Integrate with Frontman:*

   * Use the provided credentials to upload on dashboard.
   * <https://drive.google.com/drive/u/0/folders/73hdd93bnd3idhn3di3d>

   NOTE: In above url 73hdd93bnd3idhn3di3d would be the folder\_id.
8. Go to Data Loaders in Frontman and paste this Folder ID and attach the downloaded client id and click on connect.

<figure><img src="https://3746379134-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FamP4egBrOsuezKyj1NQl%2Fuploads%2FnjSWihiSYWnBRGOaWzO0%2FGD8.png?alt=media&#x26;token=1d8da7ef-24b4-48cd-89bf-af6968509c83" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3746379134-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FamP4egBrOsuezKyj1NQl%2Fuploads%2F4fdpaVCVu1M1y8El1kNC%2FScreenshot_675.png?alt=media&#x26;token=d70e6c90-85fd-4208-bc87-505e7081d629" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3746379134-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FamP4egBrOsuezKyj1NQl%2Fuploads%2FdSBN7OtRsWbzUBluD7eC%2FScreenshot_614%201.png?alt=media&#x26;token=16531627-8124-47db-98fc-895399ceb604" alt=""><figcaption></figcaption></figure>

9. Once connected you can see the files fetched in the Data bank

<figure><img src="https://3746379134-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FamP4egBrOsuezKyj1NQl%2Fuploads%2FbZOgQCtGuA36kHSqe7N7%2FScreenshot_676.png?alt=media&#x26;token=1112bf03-db59-4f5d-b583-692ca1b89386" alt=""><figcaption></figcaption></figure>
