This is the per-user OAuth connector: you sign in with your own Google account and the agent sees exactly what you can see. If you instead want a shared bot identity that reads and writes specific Sheets, see the Google Drive service account connector.
Setup
- Go to Connectors, open the APIs tab, and choose Google Workspace.
-
Choose who signs in:
- OAuth (Workspace-level): one Google account is connected and shared with everyone you give access to.
- OAuth (Per-member): each member who uses the connector signs in with their own Google account.
-
Set each kind of access to Off, Read, or Read & write:
Only the access you enable is requested, so you can connect calendar alone without granting mailbox or Drive access. Turning on more access later takes effect after the account signs in again. Read & write cannot be combined with Metadata only.
- Optionally enable Metadata only (see Privacy).
- Click Connect, sign in, and review the consent screen.
- Click Save.
Using it
Ask normally in any chat that can use API connectors. It composes with your warehouse and BI connectors, so questions can span both.Making changes
When the connector allows Read & write, each person chooses what Ana may change when they click Connect: Google Calendar, Google Sheets and Google Docs are separate choices, and only the ones chosen are requested from Google. Nothing is selected by default, so an account stays read-only unless its owner allows changes. You can change your choice at any time with Change next to your connection on the APIs tab. When you ask for a change, such as “add the renewal call to my calendar for Thursday at 2” or “mark Acme as won in the pipeline sheet”, Ana shows a card with exactly what will change:- For events: the title, time, guests and whether a video meeting is added. Guests are notified when the change is made.
- For Sheets: the cells being written, with the current value under each changed cell, or the rows being added.
- For Docs: the text being added to the end of the document.
Shared drives
Drive searches cover My Drive, shared drives and files shared with you. Each result carries the drive it came from.Google Sheets
Spreadsheets are read through the Sheets API, so each worksheet arrives as its own DataFrame with its grid intact.Privacy
Metadata only mode restricts the connector to non-content fields. When it is on:- Available: message and file ids, sender and recipient addresses, timestamps, read and attachment flags, file sizes and types, event times and durations.
- Withheld: subjects, message bodies, file names, file contents, event titles, locations and attendee lists.
Troubleshooting
The agent says the sign-in has expired
The agent says the sign-in has expired
The stored grant is no longer valid. Common causes: you changed your Google password, a Workspace administrator revoked third-party app access, you removed TextQL from your Google account permissions, or the grant sat unused for six months. Open the connector on the APIs tab and click Connect to sign in again. The connector keeps its id, so chats and agents referencing it keep working.
This app is blocked by your organization
This app is blocked by your organization
Your Google Workspace administrator restricts which third-party apps may request Gmail and Drive scopes. Ask them to allow the TextQL application, or connect only Calendar, which is not a restricted scope.
Reconnect needed
Reconnect needed
An admin changed what the connector can access after you connected. Click Reconnect next to the connector on the APIs tab to sign in with the new access.
The agent says changes are not allowed
The agent says changes are not allowed
The connector is set to Read for that kind of data. Ask an admin to set it to Read & write in the connector’s settings.
The agent says access is not enabled
The agent says access is not enabled
Sign-in succeeded but a scope was not granted, usually because it was unchecked on the consent screen. Sign in again and accept all the requested permissions, or turn that access off.
A Drive file cannot be found by id
A Drive file cannot be found by id
File ids expire when a file is moved to a different drive or deleted. Re-run the document search to get a current id.
Searches feel incomplete
Searches feel incomplete
Results are bounded so a single question cannot pull an entire mailbox or drive. When more matched than were returned, the agent is told the result was truncated and should say so. Narrow the date range or add filters for full coverage.