Skip to main content

Google Docs Tools

Automatic detection

You can simply mention @Hana and describe your request. If the intent is clear, she will automatically run this slash command for you.

Introduction

Context aware

đź“„ Adds all Google Docs content (text only) in chat history (all thread messages if chatting in threads or up to 20 minutes old messages according to plan) as context for QnA

With the /docs command, Hana will consider one or multiple Google Docs that you make available through memory ingestion or by sharing a link in the active conversation.

Share documents confidently
  1. Recommended — ingest the doc as a memory. Upload files through Hana Dashboard memories so everyone can start Q&A from Google Chat without re-sharing links. You can:
    • Use the Google Doc memory workflow, which requests Google Docs scopes to keep the document synced while respecting your existing sharing settings.
    • Use the Google Drive memory workflow to ingest supported files—Google Docs, Google Slides, Google Sheets (and CSV exports), PDFs, plain text (.txt, .md), JSON, and CSV uploads. This workflow requests the Drive File scope so Hana can ingest the file contents into memory and draw on them during Q&A. Both options keep permissions intact and, when you enable manual or automatic sync, ensure the ingested content stays up to date—making them the preferred paths when the material will be referenced repeatedly.
  2. One-off — paste a Google Doc link in chat. Hana will send an authorization card requesting Google Docs scopes the first time you try this. Approve the card with all scopes enabled to grant access. Consent is stored until you revoke it, and Hana only reads the document at runtime without saving it to Hana's memory.

How to use​

  1. Initiate the Command: In your Google Chat, either type /docs followed by the context or query or simply @mention Hana with the request (as shown in the examples below). In both cases Hana invokes the same flow, using your authentication to access Google Docs you can view.
  2. Specify Your Query: Clearly state what information or action you need concerning the Google Docs. You can ask Hana to summarize the document, find specific information, or compare contents between multiple documents.

Example:

summarizedocument
@Hana Summarize the key points from the project proposal document.
  1. Receive Results: Hana will process your request and provide you with the relevant information from the Google Docs, such as summaries, specific data points, or any other requested analysis.

Examples​

Only Invocations

Examples below show only @Hana … invocations. Outputs are intentionally omitted.

summarize
  • In above scenario a google doc link was shared by Nav in the group.
  • And then further was asked by nav “ am I missing anything in the doc?” by using /docs command.
@Hana am I missing anything in this doc?

Document Format Compatibility​

You may encounter functionality issues when using .docx format documents.

Solution​

To ensure smooth operation:

  • Open the .docx file in Google Drive.
  • Select "Save as Google Docs" to convert it to Google Docs format.

We are actively addressing this compatibility issue. Until resolved, using Google Docs format will prevent disruptions.

Troubleshooting​

  • Permission denied: Open the doc yourself to verify access; ensure the doc isn’t restricted to another account.
  • Revoked scopes: If you see an authorization prompt, re‑authorize Google permissions for Docs access.
  • .docx support: Convert to Google Docs format (see above) if parsing fails.

FAQs​

How can I share my documents with Hana?

  • Ingest documents as memories (recommended). From the Hana Dashboard you can ingest Google Docs, Sheets, Slides, PDFs, doc/docx uploads, text snippets, websites, and more so the content becomes searchable for everyone directly from Google Chat. Choose between the Google Doc memory (requires Google Docs scopes) or Google Drive memory (requires Drive File scope) depending on whether you are ingesting individual Google Docs or uploading supported Drive files such as Google Docs, Google Slides, Google Sheets (including CSV exports), PDFs, plain text (.txt, .md), JSON, and CSV files. Both keep your original Drive permissions intact and, with manual or automatic sync enabled, ensure updates are pulled into memory for ongoing reference.
  • Share a link in chat for one-off Q&A. Paste the document link and trigger the workflow with /docs or by mentioning @Hana (for example, @Hana summarize the project proposal). For Google Docs, Hana will send an OAuth card the first time to request the Docs scopes—approve it with all scopes enabled once and the consent persists unless you revoke it. Hana reads the document live during the conversation and does not store the contents as memory when you choose this flow.

See also​