Before you start
- You need access to the Google Cloud Console. Any Google account can create a free Cloud project; no billing is required for these APIs.
- Have a project selected inside Insynia — the connection is stored per project.
1. Create a Google Cloud project
- Open the project creation page.
- Give the project a recognizable name (e.g.
insynia-workspace) and click Create. - Once created, make sure it is selected in the project picker at the top of the console.

2. Enable the required APIs
Insynia needs the following APIs enabled in the same project that will own your OAuth client. Open each link (with your new project selected) and click Enable.
- Gmail API — Reading and searching email.
- Google Calendar API — Reading events and schedules.
- Google Docs API — Reading and updating documents.
- Google Sheets API — Reading and writing spreadsheets.
- Google Drive API — Locating Docs and Sheets files.
You can also browse the full API Library and search for each API by name.

3. Configure the OAuth consent screen
- Open the OAuth consent / branding screen.
- Choose External as the user type (works for both
@gmail.comand Workspace accounts for personal use). - Fill in the required fields: App name (e.g.
Insynia Workspace), User support email, and Developer contact email. - Save and continue. You do not need to add scopes here — Insynia requests them during authorization.
- Under Audience / Test users, add the Google account you intend to connect as a test user.


4. Create a Desktop OAuth client
- Open the Credentials / Clients page.
- Click Create client (or Create credentials → OAuth client ID).
- For Application type, select Desktop app. This is important — Insynia's headless flow relies on a Desktop client.
- Name it (e.g.
Insynia Desktop) and click Create. - In the confirmation dialog, click Download JSON. This file is your
client_secret_*.json.


5. Start the connection in Insynia
- In Insynia, go to Tools.
- Select the project you want to connect (the connection is stored per project).
- Find any Google Workspace tile — Gmail, Google Calendar, Google Docs, or Google Sheets — and click Connect Google. Connecting one enables all four.
- In the dialog, enter your Google account email and paste the entire contents of the
client_secret_*.jsonfile into OAuth client JSON. - Click Get authorize link.

7. Try it in Brain
Open Brain for the connected project and ask something that uses your data, for example:
- "Summarize my unread emails from the last 7 days."
- "What's on my calendar today?"
- "Read the contents of this Google Doc: <docId>."
- "Get the values in Sheet1!A1:D20 from spreadsheet <spreadsheetId>."
Brain works with your connected account on your behalf.
Managing or disconnecting
- Click Manage on any Google Workspace tile to see the connected account or to Disconnect.
- Disconnecting removes the stored credentials for that project. To reconnect, start again from Step 5 — your Google Cloud setup from Steps 1–4 can be reused.
Troubleshooting
- "client_secret_json must be a Google OAuth client file" — You pasted the wrong file or partial text. Paste the full contents of the downloaded
client_secret_*.json(it contains an"installed"key for Desktop clients). - Nothing happens on finish / "redirect_url is required" — Make sure you copied the entire redirect URL (it contains
code=). accessNotConfigurederrors in Brain — One of the required APIs (Step 2) is not enabled in the same project. Enable it and retry.- Connection stops working after ~7 days — Your OAuth app is still in Testing. Publish the consent screen (Step 3) for long-lived tokens, then reconnect.
- The account isn't allowed on the authorization page — Add it under Test users on the consent screen (Step 3), or publish the app.



