Macha

How Do You Connect a Knowledge Base to an AI Agent? (2026)

Abbas, Customer Support & AI, Macha

Written by

Ankeet Guha, Co-founder & CTO, Macha

Reviewed by

Published June 10, 2026

Updated September 24, 2026

An AI agent answers accurately only when it can read your own help center, policies and docs. Here is which sources you can connect, how the agent reads each one, and the order to connect them in.

Key takeaways

  • Connecting a knowledge base to an AI agent means adding each source, letting the platform index it, then linking it to the agent with an all-documents or selected scope.
  • Macha accepts uploaded files up to 20 MB each, 10 at a time, and crawls a website up to 200 pages, while Google Docs, Notion and Confluence are read live.
  • Macha loads spreadsheets of 2,000 rows or fewer straight into the agent's context, while larger files and websites are chunked into embeddings and searched.
  • Uploaded files and crawled websites in Macha do not refresh on their own, so an edited document needs a re-upload and a changed site needs a Resync.
  • Macha bills per ticket from $299 a month for 750 tickets, so the size of a connected knowledge base never changes what a conversation costs.
How Do You Connect a Knowledge Base to an AI Agent? (2026)

To connect a knowledge base to an AI agent, you add each source (help center, uploaded files, website, Notion, Confluence or Google Docs), let the platform index it, then link it to the agent with a scope of all documents or selected ones. In Macha that takes minutes: files upload 10 at a time at up to 20 MB each, a website crawl indexes up to 200 pages, and live sources like Google Docs are read fresh on every question.

SourceHow the agent reads itHow it stays current
Zendesk Help CenterIndexed and searchedLive webhook sync
Uploaded files (PDF, DOCX, TXT, CSV, XLSX)Indexed; spreadsheets of 2,000 rows or fewer go straight into the agent's contextDelete and re-upload
Website (crawl up to 200 pages) or single pageIndexed and searchedResync button
Google Docs, Notion, ConfluenceRead live through the connectorAlways the current version
Studies results (past tickets)Exported as a searchable sourceExport again after a new run

Why does grounding an agent in your knowledge matter?

A raw language model knows a lot about the world and nothing about your product, policies, or edge cases. Point an agent at your knowledge base and three things change:

  • Accuracy: it answers from your documented truth, not a plausible guess.
  • Fewer hallucinations: when the answer is in your content, it uses it; when it isn't, a well-built agent escalates instead of inventing.
  • Current answers: update an article and the agent's answers update with it.

How does an AI agent search a knowledge base?

There are three modes, and which one a source gets depends on its size and type. Large files, PDFs, DOCX files and website pages are indexed: each document is split into chunks, turned into embeddings (vector representations for semantic search), and stored. When a customer asks something, the agent calls a search tool to find the most relevant chunks, then pulls the full section it needs. Small spreadsheets (2,000 rows or fewer) skip search entirely and are injected into the agent's context, so every row is always available. Connector sources such as Google Docs and Notion are read live: the agent fetches the current document each time.

One agent can mix all three modes.

What knowledge sources can you connect?

With a platform like Macha, an agent can draw on a mix of sources:

  • Zendesk Help Center: articles sync over a live webhook, so a newly published article reaches the agent without a manual refresh.
  • Notion: pages are read live.
  • Confluence: pages are read live, and there's a ready-made template that searches Confluence for each new ticket and posts the relevant links as an internal note.
  • Google Docs: documents are read live; linking one auto-adds the Google read tools to the agent.
  • Uploaded files: PDF, DOCX, TXT, CSV, XLSX, up to 10 files at a time and 20 MB each.
  • Your website: crawl a site (up to 200 pages) or index a single page.
  • Past tickets: results from a Studies run can be exported as a searchable source, one document per row.
Macha's Sources — your Zendesk Help Center auto-syncs alongside uploads, crawled websites, Notion, and more.
Macha's Sources: your Zendesk Help Center syncs alongside uploads, crawled websites, Notion, and more.

How do you connect your knowledge base, step by step?

  1. Connect the source. For Zendesk, connecting the Help Center sets up the sync. For Notion, Confluence, or Google, authorize the connection and pick what to include.
  2. Let it index. Uploaded files usually index in a few seconds to a couple of minutes; a site crawl usually finishes in a few minutes and shows a Ready status.
  3. Link the source to your agent. Choose All documents (new documents in the source are picked up automatically) or Selected (only the documents you tick), so each agent sees exactly the knowledge it should.
  4. Test it. Ask the agent questions you know the answers to, and check it pulls the right content.
  5. Keep it fresh. The Help Center and live connectors stay current on their own; hit Resync on a website source after the site changes, and re-upload a file after you edit the original.

On cost, Macha bills per ticket: one conversation, charged once, however many articles the agent reads or steps it takes to answer. Indexing and storing your knowledge isn't billed separately, so a big knowledge base costs nothing extra, and a well-grounded answer costs the same as a vague one. The one plan starts at $299/mo for 750 tickets, about $0.40 each, with setup and monitoring by the Macha team included. $50 of free usage, no credit card required.

What should you connect first?

A pragmatic order:

  1. Your Help Center: it syncs itself and already covers your most common questions.
  2. Your top 20 articles by ticket volume: if they aren't in the Help Center yet, add them; this is where most resolutions come from.
  3. Policies (refunds, shipping, billing): the rules the agent needs to answer correctly and consistently.
  4. Internal docs (Notion/Confluence) for the questions your public content doesn't cover.

Then watch what the agent gets asked that it can't answer, and fill those gaps. The questions customers ask tell you exactly what to write next. If your help center is thin, Macha's AI Knowledge Builder drafts articles from your historical tickets.

What are the best practices for a knowledge base an agent reads?

  • Curate, don't dump. Connect your good content. Garbage in, confident-wrong out.
  • Keep it current. Retire stale articles; the agent will faithfully repeat whatever you leave in.
  • Have a single source of truth. Avoid three conflicting versions of the same policy.
  • Scope per agent. A refund agent doesn't need your engineering wiki.
  • Write for retrieval. Clear titles and focused articles get found more reliably.

What goes wrong most often?

  • Thin or outdated knowledge leads to vague or wrong answers. Fix the content first.
  • No escalation path means the agent guesses when it shouldn't. Make sure it hands off when unsure.
  • Over-broad sourcing surfaces irrelevant docs. Scope tightly.
  • Stale snapshots: an uploaded file or crawled site doesn't refresh itself, so an edited original keeps giving the old answer until you re-upload or resync.

Frequently asked questions

How does an AI agent use my knowledge base? It indexes your content, then searches it to answer each question from the most relevant passages, and can pull a full document when it needs detail.

What knowledge sources can I connect? Your Zendesk Help Center, Notion, Confluence, Google Docs, uploaded files (PDF, DOCX, TXT, CSV, XLSX), a crawled website of up to 200 pages, and exported past-ticket analysis from Studies.

Does the agent stay up to date when I change an article? For the Zendesk Help Center and live connectors, yes. Websites need a Resync, and uploaded files need to be re-uploaded after you edit them.

Will the agent make things up? A well-built one answers from your knowledge and escalates when the answer isn't there. Grounding plus a clear escalation path is what keeps it honest.

Does connecting a big knowledge base cost a lot? No. Indexing isn't billed separately, and billing is per ticket, so the size of your knowledge base never changes what a conversation costs.

What should you do next?

Put anything that changes weekly behind a live connector, then test with questions you already know the answers to. Macha runs on Zendesk, Freshdesk, Gorgias, Front, HubSpot or Intercom, so the same knowledge setup works whichever desk your team uses.

Ground an agent in your own knowledge: connect your help center and docs, and build an agent that answers from them. $50 of free usage, no credit card required. Start a free trial.

Macha

About Macha

Macha is an AI agent platform that works on top of the help desk you already use (Zendesk, Freshdesk, Gorgias, Front, Intercom or HubSpot) and connects to the rest of your stack, even your own internal systems. It is done for you: the Macha team analyzes your past tickets, builds the knowledge base and the agents, and runs them in safe mode until the drafts are right. Pricing is about $0.40 a ticket, and that includes setup and a dedicated success manager who handles your changes. Learn more about Macha →

Zendesk
5.0 on Zendesk Marketplace

Loved by support teams worldwide

See what support teams are saying about Macha AI.

The application seems excellent to me! We are still testing, and we need support for some details and they were extremely efficient too!

Daniela Costa

Daniela Costa

Head of Support, Seabra

Macha has been a great addition to our support toolkit. It generates clear, well-organized responses that fit naturally into our workflow. One feature we particularly appreciate is its ability to automatically reply in the same language as the ticket.

Marius F

Marius F

Support Head, Zentana

We've been using Macha for a little while now and it's been really great addition so far! It's powerful, convenient, and makes getting work done a lot easier for our agents.

Alexander Wedén

Alexander Wedén

Head of Support

Support team is very helpful and responsive. Really enjoy how lightweight this is within Zendesk itself vs other more intrusive tools.

Cathleen Wright

Cathleen Wright

Zendesk Admin, Cortex IO

So far it's pretty good! Our queries are a little nuanced, so we can't always use it, but it's got enough utility for us. It can even incorporate our bilingual country with greetings in a second language.

Jae Oliver

Jae Oliver

Head of Support, Wise

Really enjoying using Macha, it has made a noticeable difference to our support team in a short amount of time. I really like the ticket summary feature, saves us a lot of time.

Harry Jackson

Harry Jackson

Head of Support, Crumb

Macha AI is a great addition to my workspace! It's powerful, convenient, and it really makes productivity so much easier for our agents!

Dave G

Dave G

Head of Support, Cyber Power Systems

Very impressed! AI integration for Zendesk has certainly come a long way and Macha seems to set the standard for now. This will for sure save lot of time in our support team.

Pauli Juel

Pauli Juel

Head of CS, Dokument24

Macha has been working great for us so far! The auto-responses are accurate and our resolution time has dropped significantly.

Lana T

Lana T

Zendesk Admin, Swotzy

Macha AI is a great addition. The knowledge base feature means our agents always have the right answers at their fingertips.

Mischa Wolf

Mischa Wolf

Head of Support, Topi

We're enjoying this integration so far. It's made our support team more efficient and our customers get faster responses.

Paula G

Paula G

Head of Customer Support, Xly Studio

The team enjoys using it. It saves considerable time on common questions and the integration options are excellent.

Kilian Leister

Kilian Leister

Support Head, Didriksons

Get your AI agents set up for you.

Book a 30-minute call with our team. We'll show you where we would start on your help desk and how the setup works. Setup and a dedicated success manager come with the trial and every plan.

Live in under a week
Safe mode until you approve
About $0.40 a ticket