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

# Using the Gmail connector

> Connect your Base44 app to Gmail to send emails, create digests, and automate notifications without managing API keys.

## About the Gmail connector

The [Gmail connector](https://base44.com/integrations/connectors/gmail) lets your app send email through a single Gmail connection. Use it to deliver alerts, approvals, digests, reports, and automated updates directly from your Gmail account.

The Gmail connection is shared across your app. When you connect Gmail, you authorize one Google account for that app. Everyone who can edit the app uses the shared Gmail connection and the same Gmail-powered flows.

<Frame caption="Example alert email generated by a Base44 app using the Gmail connector">
  <img src="https://mintcdn.com/base44/7rgXcPPbV9OQxtbi/images/gmailconnectoralert-3.png?fit=max&auto=format&n=7rgXcPPbV9OQxtbi&q=85&s=0e82fa57d3a31757b6f7755649efaf0a" alt="Example alert email generated by a Base44 app using the Gmail connector" className="mx-auto" width="679" height="695" data-path="images/gmailconnectoralert-3.png" />
</Frame>

<Warning>
  **Important:** Connectors are app-level, shared connections. Do not use the Gmail connector if each person using your app needs to connect their own inbox. For per-person Gmail access, create a custom OAuth flow with backend functions.
</Warning>

***

## Gmail use cases and prompts

Use the Gmail connector to automate communication, keep stakeholders informed, and generate high-signal email updates from your app.

<AccordionGroup>
  <Accordion title="Send alerts and notifications">
    Send real-time emails when important events happen in your app, such as incidents, approvals, escalations, and failures.

    **Example prompts:**

    ```text theme={null}
    Email me when a new high-priority ticket is created, including the ticket ID, title, and link.
    ```

    ```text theme={null}
    Send an email to ops@company.com when an incident is opened, including severity and owner.
    ```

    ```text theme={null}
    Notify a user by email when their document is approved, with a link to the document page.
    ```

    ```text theme={null}
    Email me when ticket volume spikes above baseline, including count and top tags.
    ```

    ```text theme={null}
    Send a deployment notification email with environment, version, and release notes.
    ```
  </Accordion>

  <Accordion title="Create digests and summaries">
    Generate scheduled email digests that summarize activity, metrics, or changes from your app.

    **Example prompts:**

    ```text theme={null}
    Email me a daily summary at 5pm with new signups grouped by plan.
    ```

    ```text theme={null}
    Send a weekly task report every Monday with completed and overdue items by assignee.
    ```

    ```text theme={null}
    Email leadership a weekly KPI report with revenue, conversions, and churn.
    ```

    ```text theme={null}
    Summarize the last 24 hours of activity in this app and email it to me.
    ```

    ```text theme={null}
    Send a monthly performance report with key metrics and short explanations.
    ```
  </Accordion>

  <Accordion title="Combine Gmail with other tools">
    Trigger Gmail messages based on events from your connected systems such as BigQuery, Google Sheets, Notion, HubSpot, or other CRMs.

    **Example prompts:**

    ```text theme={null}
    Send an email when a new row is added to my Google Sheet of customer feedback.
    ```

    ```text theme={null}
    Email me when my BigQuery data agent detects a sudden drop in conversions.
    ```

    ```text theme={null}
    Notify the team by email when a new Notion page is created for a client.
    ```

    ```text theme={null}
    Send an email when a HubSpot deal moves to Closed Won with deal value and owner.
    ```

    ```text theme={null}
    Email a weekly KPI summary pulling data from BigQuery.
    ```

    <Tip>
      When describing automated emails in the AI chat, specify who should receive each email, what triggers it, and which details to include in the message body.
    </Tip>
  </Accordion>
</AccordionGroup>

***

## Connecting Gmail to your app

Use the AI chat to connect to Gmail, or connect using a pre-made prompt from your app dashboard.

<Check>
  \*\*Before you begin: \*\*You need a [Builder plan](https://base44.com/pricing) or higher to use connectors in your app.
</Check>

### Using the AI chat

1. Go to your app editor.
2. Describe what you want to do with Gmail in the AI chat, for example:
   * `Connect this app to Gmail and email me when a new ticket is created.`
   * `Send a daily summary email with completed tasks.`
3. Review the **Action required** and **Required permissions** in the side panel.
4. Click **Connect to Gmail**.
5. In the Google window that opens:
   1. Select the Google account you want to connect.
   2. Review the permissions and click **Allow**.
6. Return to the editor and let the AI finish creating the flows that use Gmail.

<Frame caption="Connecting Gmail using the AI chat">
  <img src="https://mintcdn.com/base44/7rgXcPPbV9OQxtbi/images/gmailconnector.png?fit=max&auto=format&n=7rgXcPPbV9OQxtbi&q=85&s=c6ec7cd10163bf115e14c972cda425dd" alt="Gmail connector approval screen showing required permissions and Connect to Gmail button" className="mx-auto" width="609" height="508" data-path="images/gmailconnector.png" />
</Frame>

### From the app dashboard

1. Click **Dashboard** in your app editor.
2. Click **Integrations**.
3. Click the **Browse** tab.
4. Find **Gmail** and click **Use**.
5. Select the pre-made prompt you want to add to the AI chat.
6. In the AI chat, review the **Action required** and **Required permissions**.
7. Click **Connect to Gmail**.
8. In the Google window that opens:
   1. Select the Google account you want to connect.
   2. Review the permissions and click **Allow**.
9. Return to the editor and let the AI finish creating the flows that use Gmail.

<Frame caption="Connecting Gmail from your app's dashboard">
  <img src="https://mintcdn.com/base44/yxz22RDa6sCiQWX7/images/browseconnectorsgmail.png?fit=max&auto=format&n=yxz22RDa6sCiQWX7&q=85&s=9222983dcaf5ea6e92709f9c2d5761c6" alt="Gmail connector approval screen showing required permissions and Connect to Gmail button" className="mx-auto" width="1282" height="840" data-path="images/browseconnectorsgmail.png" />
</Frame>

<Tip>
  After creating Gmail-powered functions, test each flow by triggering the event and confirming the email arrives with the expected formatting and content.
</Tip>

<Note>
  If you click **Skip** in the Gmail authorization window, the connector is not added. You can run the connection flow again from the AI chat or from **Integrations → Browse**.
</Note>

***

## Managing your Gmail connection

You can review and manage the Gmail connector for each app from the app dashboard.

**To view or update your Gmail connector:**

1. Go to your app dashboard.
2. Click **Integrations**.
3. Click the **My integrations** tab.
4. Find **Gmail**, then choose what you want to do:
   * **View access**: See which permissions Gmail currently has in this app.
   * Click the **More Actions** icon <Icon icon="ellipsis" /> and select an option:
     * **Switch account**
     * **Disconnect account**
     * **Remove**

<Frame caption="Managing your Gmail connection in your app">
  <img src="https://mintcdn.com/base44/C0DoD3WNeZmCqGzK/images/removegmailconnector.png?fit=max&auto=format&n=C0DoD3WNeZmCqGzK&q=85&s=aed272bedb295ed3ac5905e871c5b7fd" alt="Managing your Gmail connection in the My integrations tab" className="mx-auto" width="1273" height="741" data-path="images/removegmailconnector.png" />
</Frame>

***

## Gmail scopes and permissions

When you connect Gmail, the connector requests permissions (scopes) that control what your app can do with your Gmail account.

<Card title="Gmail scopes" icon="shield">
  Below is the current list of Gmail scopes the connector may request.

  * `https://www.googleapis.com/auth/gmail.readonly`: Read email messages and metadata.
  * `https://www.googleapis.com/auth/gmail.send`: Send email messages.
  * `https://www.googleapis.com/auth/gmail.modify`: Modify messages (for example, mark as read or move to folders).
  * `https://www.googleapis.com/auth/gmail.compose`: Create draft messages.
</Card>

<Note>
  **Notes:**

  * Scope lists may change over time. Always review the permissions shown during the connection flow.
  * If you need a Gmail scope that is not listed here, [share your feedback with us](https://feedback.base44.com/?b=67cf45295430bd6b6434b68c).
</Note>

***

## FAQs

Click a question below to learn more about the Gmail connector.

<AccordionGroup>
  <Accordion title="Can I connect more than one Gmail account to the same app?">
    No. Each app uses one shared Gmail account. To use multiple Gmail accounts, create separate apps or build a custom OAuth flow with backend functions.
  </Accordion>

  <Accordion title="Can each person using my app connect their own Gmail inbox?">
    No. Connectors are app-level. When you connect Gmail, you connect a single Gmail account that all flows in the app use.

    To let each person using your app connect their own Gmail inbox, you need to build a custom OAuth flow with backend functions and the Gmail API, including per-user token storage and refresh.
  </Accordion>

  <Accordion title="How do I change which Gmail account is connected?">
    1. Go to your app dashboard and click **Integrations**.
    2. Click the **My integrations** tab.
    3. Find **Gmail** and click the **More Actions** icon <Icon icon="ellipsis" />, then **Switch account**.
  </Accordion>

  <Accordion title="Can I customize the content of emails sent from my app?">
    Yes. In the AI chat, specify the subject line, message body, formatting, recipients, and any dynamic fields.

    You can also edit the generated backend functions in **Dashboard → Code → Functions** to further customize the email payload.
  </Accordion>
</AccordionGroup>
