Skip to content

Search documentation

Find a guide in the Raileon documentation

Connect Gmail to AI, step by step

Last updated

Connecting Gmail lets your Modules read inbound email and send replies on your behalf. This powers fast lead follow-up, inbox triage, and email-based workflows.

What your Modules can do

  • Read inbound email so they can respond to leads and customers.
  • Draft and send replies on your behalf.
  • Use email context to keep your CRM and follow-ups in sync.

Before you start

Raileon connects to Gmail through your own Google OAuth app, so your credentials stay yours. They're encrypted at rest, with a separate key for each workspace, and are only used by the system to call Gmail on your behalf. Gmail access covers your whole mailbox. You'll need:

  • Access to the Google Cloud Console to create a free OAuth app (one time, a few minutes).
  • The Google account you want your Modules to use.

If you use Google Workspace, choose Internal on the consent screen and sign-in never expires. With a personal Gmail account you must choose External, and Google asks you to sign in again roughly every 7 days while the app is in Testing.

Connect Gmail

  1. Open Apps

    In your dashboard, go to Apps in the left sidebar and select Connect on the Gmail card.

  2. Create your Google OAuth app

    In the Google Cloud Console, create an OAuth 2.0 client (Web application). Raileon shows you a redirect URI. Copy it into your app's "Authorized redirect URIs".

  3. Enable the Gmail API

    In Google Cloud, go to APIs & Services → Library, search for Gmail API, and select Enable.

  4. Paste your app credentials

    Copy your Google app's Client ID and Client secret into Raileon and save. They're encrypted and used only to connect your account.

  5. Sign in with Google

    Select Connect, choose the Google account you want your Modules to use, then review and approve the access being requested.

  6. Confirm it is connected

    You return to Raileon and the Gmail card shows Connected. Your Modules can begin working with email right away.

Disconnect Gmail

To stop access, open Apps, find the Gmail card, and select Disconnect. Access is revoked immediately.

Good to know

You can also review or remove Raileon's access from your Google account's security settings at any time.


See what Raileon automates with Gmail: Gmail automation.