Connect your app to Google Workspace
You can connect your Lovable app to Google Workspace services like Gmail, Sheets, Calendar, and Drive to automate tasks and manage data. This lets your app read and send emails, update spreadsheets, create calendar events, and handle files using a shared Google account.
Anyone building an app that needs to interact with Google services for data, communication, or automation.
Do this, in order
- 1
Go to 'Connectors' in your Lovable dashboard.
This is where you manage all external connections for your apps.
- 2
Select the specific Google service you want to connect (e.g., Google Sheets, Gmail).
Each Google service needs its own connection setup.
- 3
Click 'Add connection'.
This starts the process of creating a new link to a Google account.
- 4
Give your connection a clear name (e.g., 'Google Sheets - Production').
A good name helps you identify the connection later, especially if you have many.
- 5
Optionally, expand 'Advanced settings' to review and adjust the 'scopes'.
Scopes define exactly what your app is allowed to do with your Google account. Only select what your app truly needs for security.
- 6
Click 'Connect', sign in with the Google account you want to use, and grant the requested permissions.
This securely links your Lovable workspace to your chosen Google account and its services.
Paste this into your project
I want to connect my app to Google Sheets. Can you set up a connection named 'My Sales Data' that allows my app to read and update spreadsheet data?
Words decoded
- Google Workspace
- A collection of cloud computing, productivity, and collaboration tools, software, and products developed and marketed by Google, including Gmail, Calendar, Drive, Docs, Sheets, and Slides.
- Scopes
- Permissions that define what specific actions your Lovable app is allowed to perform on your Google account (e.g., 'read your emails' or 'edit your spreadsheets').
- OAuth 2.0
- A secure way for apps to get limited access to user accounts on an HTTP service, without giving away the user's password. You grant permission, and the app gets a special key to access only what you allowed.
- Gateway architecture
- A system where all requests to external services go through a central point (the 'gateway') which handles security, authentication, and other technical details, making it easier and safer for your app to connect.
- Shared drives
- Folders in Google Drive that are owned by an organization or team, not an individual. Files in shared drives remain accessible even if the person who created them leaves the team.
Where people get stuck
- Connections are tied to a specific Google account: Any action your app performs (like sending emails or creating files) will be done by the Google account used to set up the connection. If you need to use a shared mailbox or service account, make sure you connect with that specific account.
- Only connect with an account that has the necessary permissions for shared drives: If your app needs to work with shared drives, the Google account you connect with must be a member of that shared drive and have the correct role (e.g., 'Contributor' to upload files, 'Viewer' to read files).
- Be mindful of pop-up blockers: When connecting to Google, a sign-in window will open. Ensure your browser doesn't block this pop-up, or the connection process won't complete.
The short version, steps, decoder and prompt on this page are written automatically from Lovable's own documentation and can lag or misread it. The official page is always the authority.