# n8n Google Docs Tool: Let an AI Agent Answer from a Doc

> Give an n8n AI Agent your own FAQ with the Google Docs Tool (Operation: Get), a Gmail Tool handoff to staff and system message rules.

Source: https://learn.ynteractive.com/content/blog/n8n-google-docs-tool-agent · Updated 2026-10-20 · Free from Stepthrough (https://learn.ynteractive.com)

Quick answer

To let an n8n [AI Agent](https://learn.ynteractive.com/content/glossary/ai-agent) answer from your own document, add a **Google Docs Tool** under the agent's **Tool** connector, set **Operation** to **Get** and paste the doc's link into **Doc ID or URL**. The agent reads the doc when a question needs it, and a [system message](https://learn.ynteractive.com/content/glossary/system-prompt) tells it to answer only from that doc. The free [Support Agent That Answers from Your Own Docs](https://learn.ynteractive.com/content/support-agent-answers-from-your-docs-n8n) lesson builds this for a property manager's tenant FAQ.

Last updated October 20, 2026

[Take the free module →](https://learn.ynteractive.com/courses/ai-agents-101/9)Module 9 of the free [AI Agents 101](https://learn.ynteractive.com/courses/ai-agents-101) course, about 13 minutes. No account needed.

By [Robert Breen](https://learn.ynteractive.com/content/about) · Published October 20, 2026 · Updated October 20, 2026 · 4 min read

n8n · AI agents · Google Docs

## What does the Google Docs Tool do for an agent?

It's a tool the agent can call. With **Get**, it fetches the document's text, so the agent can look up the late-fee policy or the parking rules instead of guessing. That's [tool calling](https://learn.ynteractive.com/content/glossary/tool-calling): the model decides when it needs the doc.

## How do I add it?

1. Double-click **AI Agent**, click **Add Option**, choose **System Message** and paste the rules.
2. Close it and click the **+** under **Tool**.
3. Type **docs** and click **Google Docs Tool** (a few rows down, under DocSpring and DocuSeal).
4. With your Google Docs account connected, **Operation** says **Create**. Open it and choose **Get**.
5. Paste the doc's link into **Doc ID or URL**.

In the lesson, Larkspur Property Management (made up) uses a doc called "Larkspur tenant FAQ and policies".

## What should the system message say?

Who the agent is, where answers come from, and what to do when the doc doesn't cover it. The lesson's system message, in short:

- You answer tenant questions for Larkspur Property Management in a website chat.
- Answer ONLY from the "Larkspur tenant FAQ and policies" document; read it with your Google Docs tool before every answer.
- If the answer isn't in the document, say you don't know. Never guess, and never give legal advice.
- [Hand off to a person](https://learn.ynteractive.com/content/glossary/human-handoff) when the document doesn't answer the question, the tenant asks for a person or is upset, or it's a payment dispute, a lease change or an emergency.
- To hand off, ask for their name, unit and best phone number, then email the office with your Gmail tool.
- For emergencies (fire, gas smell, flooding), tell them to call 911 or the 24/7 maintenance line first.
- Be friendly and short: 2 to 4 sentences.

The [AI Agent system message guide](https://learn.ynteractive.com/content/blog/n8n-ai-agent-system-message) has more patterns.

## How does the handoff to a person work?

Add a second tool: the **Gmail Tool** (under **Other Tools**, not the Gmail under Human in the Loop). **Message** and **Send** are already set; put the office address in **To**. Next to **Subject** and **Message**, click the ✦ button so the agent fills them in. Turn **Append n8n Attribution** off.

In the lesson's test chat, a tenant has a late fee question that needs a person. The agent uses the Gmail Tool, and the office gets an email with Ana's name, unit 4B, her number and the problem. That's a [human handoff](https://learn.ynteractive.com/content/glossary/human-handoff).

## Try it free, step by step

**A Support Agent That Answers from Your Own Docs**. Turn an n8n chat agent into a support agent that answers only from your policies in a Google Doc, refuses what it should, and hands off to a person by email. You do every step yourself in a practice copy of n8n, it checks your work as you go, and “Do it for me” finishes any step you get stuck on. Free, and nothing touches your real accounts.

[Start the free lesson](https://learn.ynteractive.com/modules/support-agent-docs)

[Or read the full step-by-step guide](https://learn.ynteractive.com/content/support-agent-answers-from-your-docs-n8n)

## Why does the agent ignore the doc?

- **The tool isn't connected** to the agent's Tool port.
- **Operation is still Create**, which makes a new doc instead of reading one.
- **The system message doesn't mention the doc**, so the model answers from general knowledge.
- **The credential can't open the doc.** Share it with that Google account.

## Is one doc enough?

For an FAQ up to a few pages, yes: Get returns the whole text each time. For many long documents, a vector store is better, because it returns only the relevant passages. That's RAG; the [Pinecone](https://learn.ynteractive.com/content/glossary/pinecone) glossary entry explains it.

## Key takeaways

- Google Docs Tool with Operation: Get lets an agent read your doc on demand.
- The system message must say to answer only from the doc.
- A Gmail Tool with ✦ fields gives the agent a way to hand off to staff.
- Use a vector store instead when there are many long documents.

## Frequently asked questions

**Can an n8n AI agent read a Google Doc?**

Yes. Connect a Google Docs Tool to the agent with Operation set to Get and the doc's URL or ID.

**What does the ✦ button do in an n8n tool?**

It lets the model fill in that field itself, such as the subject and message of a handoff email.

**How do I stop the agent making up answers?**

Tell it in the system message to answer only from the document and to say when it doesn't know, and give it a handoff tool.

**Which course is this from?**

[AI Agents 101](https://learn.ynteractive.com/courses/ai-agents-101), [AI for Customer Support](https://learn.ynteractive.com/courses/ai-for-customer-support) and [Give AI Your Company Knowledge](https://learn.ynteractive.com/courses/company-knowledge).

## Free lessons in this post

- [A Support Agent That Answers from Your Own Docs](https://learn.ynteractive.com/content/support-agent-answers-from-your-docs-n8n): Turn an n8n chat agent into a support agent that answers only from your policies in a Google Doc, refuses what it should, and hands off to a person by email.

## Watch it in a free lesson: A Support Agent That Answers from Your Own Docs

### A Support Agent That Answers from Your Own Docs: video walkthrough

Full walkthrough · 2:23 · with captions

Turn an n8n chat agent into a support agent that answers only from your policies in a Google Doc, refuses what it should, and hands off to a person by email. The whole lesson narrated step by step, recorded in Stepthrough’s simulated practice environment.

[Watch it with chapters and the full transcript](https://learn.ynteractive.com/content/support-agent-answers-from-your-docs-n8n#watch)

From the free lesson [A Support Agent That Answers from Your Own Docs](https://learn.ynteractive.com/content/support-agent-answers-from-your-docs-n8n)

## Related terms

Plain-English definitions, each with an example from a free lesson.

[AI agent](https://learn.ynteractive.com/content/glossary/ai-agent) · [System prompt (system message)](https://learn.ynteractive.com/content/glossary/system-prompt) · [Human handoff](https://learn.ynteractive.com/content/glossary/human-handoff) · [Agentic RAG](https://learn.ynteractive.com/content/glossary/agentic-rag) · [Max iterations (agent step limit)](https://learn.ynteractive.com/content/glossary/max-iterations) · [Reranking](https://learn.ynteractive.com/content/glossary/reranking) · [Retrieval-augmented generation (RAG)](https://learn.ynteractive.com/content/glossary/rag) · [Support ticket](https://learn.ynteractive.com/content/glossary/support-ticket)

[The full AI glossary](https://learn.ynteractive.com/content/glossary)

## Keep reading

- [n8n Chat on Your Website: Make Chat Publicly Available](https://learn.ynteractive.com/content/blog/n8n-public-chat-website): Put an n8n AI agent chat on your website: turn on Make Chat Publicly Available, publish, link or embed it, and test it like a customer first.
- [How to Automate Customer Support with AI (Safely)](https://learn.ynteractive.com/content/blog/how-to-automate-customer-support-with-ai): How to automate customer support with AI in four stages: sort incoming requests, draft replies, answer FAQs from your own docs, and hand off to a person.
- [How to Build an Internal AI Assistant for Your Team](https://learn.ynteractive.com/content/blog/how-to-build-an-internal-ai-assistant): How to choose a platform for an internal AI assistant: ChatGPT or Claude Projects, Gemini Gems or an n8n agent, plus five steps to build and test one.

[All blog posts](https://learn.ynteractive.com/content/blog) · [All free tutorials](https://learn.ynteractive.com/content)
