Skip to main content

Integrating with Google Docs

Connect Google Docs so your AI Agents answer from the latest version of a Doc, with no re-uploading.

A
Written by Aaron Sundukovskiy

Connect Google Docs to Salesmsg so your AI Agents answer from a live Google Doc. Every time a conversation needs it, the agent reads the latest version of the Doc, so you never re-upload or re-sync it after an edit.


How it works

When you add a Google Docs link to your knowledge base, your texting and calling AI Agents read the Doc in real time during conversations. Nothing is cached: an edit you make in Google Docs is used in the agent's next answer.

  • Google Docs has its own card and connection in the App Marketplace, separate from Google Sheets. Connecting or disconnecting one doesn't affect the other.

  • The agent reads headings, paragraphs, lists, tables (row by row) and every tab of the Doc. It ignores images, drawings, comments and suggestions.

  • The Doc's content is used to inform the agent's replies. It is never pasted into the chat as is.


Before you start

  • Only admins and owners can connect, reconnect or disconnect integrations.

  • You need a Google account that can open the Doc you want to use.

  • Your knowledge base can hold one live Google link: either one Google Doc or one Google Sheet.

Connect Google Docs

  1. Go to Settings > App Marketplace.

  2. Find Google Docs under All or Productivity.

  3. Click Connect and sign in with your Google account.

  4. Once connected, the Google Docs card shows Connected.


Add a Google Doc to your knowledge base

Use this to give your AI Agents a document that stays up to date on its own, such as your pricing, opening hours or policies.

  1. Go to AI & Automation > AI Agents > Knowledge base.

  2. Click Add knowledge, then Add Google link.

  3. Paste the link to your Doc, for example docs.google.com/document/d/... Links that end in /edit or /view, or that include extra parameters or a heading anchor, all work.

  4. Click Add.

  5. The Doc appears in your knowledge base list with its title and the Google Docs icon. Its status goes from Syncing to Ready, and it shows a Real time update badge.


Let an AI Agent answer from the Doc

Use this so a texting or calling agent can answer questions from the Doc.

  1. Open the agent in AI & Automation and go to its Knowledge Base section.

  2. Turn the knowledge base on (choose Yes).

  3. Keep all documents selected, or select the Google Doc.

  4. Save the agent, or publish your changes if it is active.

From now on, when a contact asks something the Doc answers, the agent reads the latest version and replies in its own words. For more on the knowledge base, see Salesmsg AI Knowledge Base.


Reconnect or disconnect Google Docs

Use this when the connection expires, or when you no longer want agents to read from Google Docs.

  1. Go to Settings > App Marketplace and open the Google Docs card.

  2. Click Reconnect to sign in to Google again, or disconnect the integration and confirm.

If the connection expires, the knowledge base shows "Your Google connection has expired. The AI Agent won't work until you reconnect." Clicking Reconnect there reconnects only Google Docs.


What to expect

  • One live link per knowledge base. If one is already there, you'll see "Only one live-doc per knowledge base is supported." To switch between a Doc and a Sheet, remove the current link first.

  • Google Docs must be connected. Otherwise you'll see "Google integration is not connected for this organization." and nothing is added, even if Google Sheets is connected.

  • Access. If your connected Google account can't open the Doc, you'll see "Google hasn't granted access to this link. Check your Google permissions and try again."

  • Links that don't work. "Publish to web" links, Google Slides links and other non-Docs links are refused, for example with "Please enter a valid Google Sheets or Google Docs link."

  • Access lost. If the Doc is deleted or its owner removes your access, the link shows Access lost, and agents that use it show "One or more knowledge base links are unavailable. The AI Agent won't work until you fix them." The agent keeps the conversation going without the Doc.

  • Large or empty Docs. If the Doc is very large or the read times out, or the Doc is empty, the agent answers without it and shows no error.

  • Removing the link. Remove a live Doc the same way as any knowledge base file. A confirmation appears first.


Frequently Asked Questions

Do I need to connect Google Docs if Google Sheets is already connected?

Yes. Google Docs and Google Sheets are separate connections. A Google Docs link only works with the Google Docs connection.

Will my agent see the changes I make in the Doc?

Yes. The agent reads the Doc each time a conversation needs it, so its next answer uses your latest edits. There's nothing to re-upload or re-sync.

Can I add a Google Doc and a Google Sheet to the same knowledge base?

No. A knowledge base holds one live Google link, either a Doc or a Sheet. Remove the current one to add the other.

Does the agent read images or comments in my Doc?

No. It reads text, lists, tables and every tab, but ignores images, drawings, comments and suggestions. Put anything the agent needs to know in text.


Related Articles


Need Help? âœ‹đŸ»

Contact us on live chat or send an email to us at [email protected].

Did this answer your question?