> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Configure Gmail IMAP import using OAuth 2.0

> Walk through Gmail IMAP import configuration in ABBYY FlexiCapture using OAuth 2.0: sign in to Google, pick a mailbox folder, and test batch creation.

Configure Gmail import using OAuth 2.0 credentials for IMAP image import profiles.

<Steps>
  <Step title="Create and upload a project">
    Create a project and upload it to the Application Server.

    <Frame>
      <img src="https://mintcdn.com/abbyy/M5jnw37NmJ-asKkj/images/flexi-capture/clip0012.png?fit=max&auto=format&n=M5jnw37NmJ-asKkj&q=85&s=de2cc3f5f2a2f976147b232b2b7df063" alt="Screenshot of creating a project and uploading it to the server." width="840" height="114" data-path="images/flexi-capture/clip0012.png" />
    </Frame>
  </Step>

  <Step title="Configure an IMAP image import profile">
    Configure an IMAP image import profile that uses Gmail, and select the source for image import.

    <Frame>
      <img src="https://mintcdn.com/abbyy/M5jnw37NmJ-asKkj/images/flexi-capture/clip0013.png?fit=max&auto=format&n=M5jnw37NmJ-asKkj&q=85&s=7f7a430a67a113720d58f4187bd02d6c" alt="Screenshot of configuring an IMAP image import profile for Gmail." width="516" height="293" data-path="images/flexi-capture/clip0013.png" />
    </Frame>
  </Step>

  <Step title="Open the import profile configuration">
    Open the image import profile configuration.

    <Frame>
      <img src="https://mintcdn.com/abbyy/M5jnw37NmJ-asKkj/images/flexi-capture/clip0009.png?fit=max&auto=format&n=M5jnw37NmJ-asKkj&q=85&s=eaf9f16ab892d3fd788d2add4eb10ff4" alt="Screenshot of the image import profile configuration." width="600" height="479" data-path="images/flexi-capture/clip0009.png" />
    </Frame>
  </Step>

  <Step title="Enter your Gmail ID and start sign-in">
    Enter your Gmail ID, then click **Sign-in** to start OAuth authentication. A Google OAuth window appears.

    <Frame>
      <img src="https://mintcdn.com/abbyy/M5jnw37NmJ-asKkj/images/flexi-capture/clip0014.png?fit=max&auto=format&n=M5jnw37NmJ-asKkj&q=85&s=1c0547fb7cf6a4df996e6ca82df553b2" alt="Screenshot of the Gmail ID field and the Sign-in button." width="763" height="386" data-path="images/flexi-capture/clip0014.png" />
    </Frame>
  </Step>

  <Step title="Sign in to your Google account">
    Enter your Gmail account, click **Next**, and enter your password.

    <Frame>
      <img src="https://mintcdn.com/abbyy/M5jnw37NmJ-asKkj/images/flexi-capture/clip0007.png?fit=max&auto=format&n=M5jnw37NmJ-asKkj&q=85&s=fe2e55d715b2ec7652cd90ff0aad0b4c" alt="Screenshot of the Google account sign-in page." width="870" height="393" data-path="images/flexi-capture/clip0007.png" />
    </Frame>
  </Step>

  <Step title="Grant access">
    Review the trust message and click **Continue**. If authentication succeeds, the message `Thank you for allowing` appears. The OAuth pop-up closes and returns you to the Project Setup Station.

    <Frame>
      <img src="https://mintcdn.com/abbyy/M5jnw37NmJ-asKkj/images/flexi-capture/clip0016.png?fit=max&auto=format&n=M5jnw37NmJ-asKkj&q=85&s=351d40ee288156d20deced56e4b86041" alt="Screenshot of the Google trust message with the Continue button." width="593" height="366" data-path="images/flexi-capture/clip0016.png" />
    </Frame>
  </Step>

  <Step title="Set the connection type">
    Finalize the IMAP profile settings. Set **Type of encrypted connection** to **Auto** and click **OK**.

    <Frame>
      <img src="https://mintcdn.com/abbyy/M5jnw37NmJ-asKkj/images/flexi-capture/clip0017.png?fit=max&auto=format&n=M5jnw37NmJ-asKkj&q=85&s=b2141a759cfd57ed75f175f1c71a0f59" alt="Screenshot of Type of encrypted connection set to Auto." width="563" height="412" data-path="images/flexi-capture/clip0017.png" />
    </Frame>
  </Step>

  <Step title="Browse the Gmail folders">
    Click **Browse** to access the Gmail folder hierarchy.

    <Frame>
      <img src="https://mintcdn.com/abbyy/M5jnw37NmJ-asKkj/images/flexi-capture/clip0004.png?fit=max&auto=format&n=M5jnw37NmJ-asKkj&q=85&s=9dd77c915bc1e208b34fbfcec91469f3" alt="Screenshot of the Browse button for the Gmail folder hierarchy." width="566" height="388" data-path="images/flexi-capture/clip0004.png" />
    </Frame>
  </Step>

  <Step title="Select the target folder">
    Select the folder where documents are dropped for processing.

    <Frame>
      <img src="https://mintcdn.com/abbyy/M5jnw37NmJ-asKkj/images/flexi-capture/clip0003.png?fit=max&auto=format&n=M5jnw37NmJ-asKkj&q=85&s=d25de5bacf37add1c90a4c330e79a88c" alt="Screenshot of selecting the target Gmail folder." width="774" height="377" data-path="images/flexi-capture/clip0003.png" />
    </Frame>
  </Step>

  <Step title="Complete the profile">
    Complete the remaining IMAP profile steps.

    <Frame>
      <img src="https://mintcdn.com/abbyy/M5jnw37NmJ-asKkj/images/flexi-capture/clip0001.png?fit=max&auto=format&n=M5jnw37NmJ-asKkj&q=85&s=74e3b53d9bd68e33bb9e29f24bfa4024" alt="Screenshot of the remaining IMAP profile settings." width="631" height="231" data-path="images/flexi-capture/clip0001.png" />
    </Frame>
  </Step>

  <Step title="Enable the Hot Folder">
    Enable the **Hot Folder** toggle for the project in the Administration and Monitoring Console.
  </Step>

  <Step title="Test the import">
    Send an email with an attachment to the selected Gmail folder. Confirm that the document is processed and a batch is created.

    <Frame>
      <img src="https://mintcdn.com/abbyy/M5jnw37NmJ-asKkj/images/flexi-capture/clip0002.png?fit=max&auto=format&n=M5jnw37NmJ-asKkj&q=85&s=7f8f4ebaca3ec7fc4de51e36f5790de9" alt="Screenshot confirming a batch was created from the imported document." width="863" height="144" data-path="images/flexi-capture/clip0002.png" />
    </Frame>
  </Step>
</Steps>
