EmAGI
English
Docs · index

Give access to Google Drive and Sheets

The agent works with Drive, Sheets and other Google services of your account. To read, sharing a folder is enough; to create files and write into spreadsheets, it uses a key from your own Google project.

How access works

To write, the agent needs a service key from your own Google Cloud project. You create it once, switch on the services you need in that project (Drive, Sheets) and share a folder or file with the key's address as Editor, the same way you would with a colleague. The key is handed over on a one-time secure page, not in the chat. The agent walks you through the steps, and from then on it does the work itself: creates folders and files, writes into spreadsheets. The key stays in your account, where you can see and revoke it.

Reader or Editor?

Share as Editor unless you have a reason not to: as Reader the agent can only read. Reading also works without a key: the agent gives you the address of its robot and you share a folder with it. That path does not create files or write into spreadsheets, and most tasks end with writing something back.

Ask the agent for the address

Say: "connect to my Google Drive". The agent will tell you which path fits the task, give you the address to share with and, after you share, confirm what it can see.

"The Sheets API is not enabled"

This message means the service is not switched on in your Google Cloud project. It is one button in the console of that project, and the agent will tell you which service and give you the link. Search Console, Analytics and other Google services work through the same key: its address is added in the access settings of the service itself.