Knowledge assistants

Use Confluence and Notion as controlled RAG sources

Reading time
15 minutes
Updated
Published
Written by
modernagents editorial teammodernagents is an AI automation agency from Austria for SMEs, based in the Vienna region.
AI-generated image: Archive drawer with an indigo front and recessed pull on a black rubber mat

Your company knowledge sits in Confluence and Notion, and still your staff ask the one colleague who knows every day. Now you want a Confluence RAG search with Notion as a second source, meaning an AI assistant that takes its answers from your own pages. But does the assistant really find the right, current page, and does every employee see only what they may also see in Confluence or Notion?

Confluence and Notion can be such sources if the import brings the content over completely, together with its origin, its current state and its access rights. A connection that reads a few pages successfully is not yet a complete integration. You need to check nested content, attachments, permissions and later deleted pages separately.

An example: a furniture maker in Liège with 40 employees builds kitchens and furniture to measure and sells standard furniture in an online shop. The old handbook has lived in Confluence for years, and the team now writes new instructions in Notion. When a customer calls today and asks whether they can return their wardrobe, Céline from customer service searches for the answer in two programs. In future, an AI assistant in the company chat should answer such questions and send the link to the right page along with the answer.

Key takeaways

  • An import from Confluence needs the origin of each text, meaning a stable page ID, version, title, space and link to the original.
  • A Notion page with a title in the assistant does not yet show that its whole content arrived. The import must detect further results and indented subsections.
  • What the connector may read does not yet say which employees may see the same content later in the chat.
  • A connector that says honestly what it reads and what it does not is easier to look after than the vague claim "the whole wiki is connected".

01 / 15

Which pages should the assistant read?

If you are planning a Confluence AI knowledge base or a Notion RAG assistant, start with an approved area and clear questions. Choosing the language model is not the most important first step. More important is a clear agreement between Confluence or Notion and the assistant's search, one that sets out which pages and files go in, who may see them and how changes arrive.

"The whole wiki" often contains drafts, personal notes and old pages. At the furniture maker, Confluence still holds the price list from three years ago and a half-finished draft of new delivery terms, for example. Such pages should not count as much in an answer as the valid handbook. So name exactly what the assistant may read: in Confluence, certain areas called spaces, or page trees, and in Notion, certain pages or data sources. If you start small, your experts can check the answers more easily, and IT can troubleshoot more easily.

Also decide whether child pages are included automatically. Under the page "Customer service", the furniture maker has a child page with an important exception for complaints, but next to it sits the child page "Offer Hotel Meuse" with confidential prices for a large customer. So a page hanging under an approved page is not yet approved itself. Also write down whether comments, attachments and content embedded from other programs are included.

Each area needs a person from the business side. At the furniture maker, that is Céline for the customer service pages. She decides which version applies and cleans up when two pages contradict each other. Whoever runs the assistant technically should not decide alone what counts as company knowledge just because the retrieval worked technically.

You can take the first step this week. Sit down with the person who gets asked the most in your business. Write down which areas in Confluence and Notion the assistant should read first, who is responsible for each area and which ten questions it should then answer reliably.

02 / 15

What must a Confluence import preserve?

The assistant should be able to show where each answer comes from. So when importing from Confluence, store with each text a fixed page ID that does not change, together with the version, title, space and link to the original page. When Céline renames the page "Returns" to "Returns and exchanges", the assistant must not automatically turn it into a second page. It still has to take over the new title, because the title can affect whether the page is found in a search.

Check with real pages from your Confluence how the content arrives in the assistant. Tables, macros (built-in Confluence building blocks), embedded content and attachments may be processed differently from plain text. At the furniture maker, for example, the delivery times for kitchens are in a table. If the main page was read, that does not yet mean every embedded piece of information reached the assistant.

While doing this, the import must respect access rights and go through long lists to the end. What the Confluence documentation says about this is in the section for your IT team below.

03 / 15

Why is a Notion page not one text field?

In Notion, a page looks like a document, but technically it comes in two parts. Retrieving the page returns its properties, such as the title. The import has to fetch the actual content separately, building block by building block. Notion calls these building blocks blocks. A block can contain further blocks, for example an indented subsection with an exception in it.

For you, this means that a page ID and a title in the assistant do not yet prove a complete import. The import must detect whether there are further results or child blocks. Otherwise, the indented exception or the back part of a long table may be exactly what is missing.

Nor does the search function of the Notion interface replace the assistant's search. According to the Notion documentation, the search function of the interface (Search by Title) searches the titles of the objects shared with the connection. It is therefore not arbitrary full-text search across everything in the workspace. Finding the pages and later searching them for answers are two different tasks.

04 / 15

When only part of the pages arrives

Programs like Confluence and Notion often hand out larger collections in several portions, similar to a list of search results across several pages. This is called pagination. If the import processes only the first portion, everything still looks fine, because some pages are there. The mistake only shows when someone asks about a later entry. At the furniture maker, a fitter might then ask for the instructions for a particular wardrobe system, and the assistant does not know them, although they are in Notion.

So test with a collection that deliberately contains more entries than fit into one portion. Use the identifiers to compare which entries should have arrived and which did arrive. Do the same for nested blocks and attachments if the assistant is meant to read them. A total count alone helps less than this entry-by-entry comparison.

If an import breaks off halfway, it must remain clear which part is complete. Do not silently present a half-read collection as the current complete state. You can exclude the affected source temporarily or use a clearly limited state, if that is acceptable for the task.

05 / 15

How should Confluence and Notion permissions carry into RAG?

At the furniture maker, only management and sales may open the "Offer Hotel Meuse", and the apprentice in the workshop may not. But the connector, meaning the program that pulls the pages from Confluence and Notion into the assistant, signs in with its own technical account. That account may read more than an individual employee.

The connector sees only what its technical account may reach. That limit is necessary, but it does not establish who may see the same content later in the chat. If the apprentice asks "What does the kitchen for the hotel cost?", the assistant must not take the answer from the confidential offer.

Permissions from Confluence and Notion can reach the assistant's answer in these ways:

  1. Retrieval on behalf of the person asking: the assistant searches with the rights of the employee who is asking.
  2. Its own validated access details: the assistant keeps separately checked details about who may see each piece of content and sticks to them.
  3. Sources for everyone: the assistant reads only content meant for all intended users. This is a possible, limited start when the necessary details about rights are missing.

Choose between the first two ways. If a vendor promises that its connector carries over all rights completely, have them show you with concrete cases. These include a restricted page, a nested area, an employee who moves to another group, guest access and access that is withdrawn later. Throwing confidential and general content together and hoping that the prompt, meaning the instruction to the language model, will keep them apart does not protect equally well.

06 / 15

Which source metadata should a shared RAG index preserve?

The index is the store in which the assistant searches. When content from Confluence and Notion comes together there, each piece of text needs a small label about where it came from. These details are called metadata. A shared index should keep these fields:

Field What you need it for
Source system Tell Confluence and Notion apart clearly
Object identifier A page, block or attachment stays the same entry even after renaming
Parent object Know what a page, block or attachment belongs to
Version or change state Spot outdated derivatives, such as copies and summaries
Original URL and section Open the evidence for the employee
Approval state and audience Decide what the assistant may answer from
Extraction status See which parts were missing when reading

A common format makes searching across both programs easier, but it must not hide differences. That a page was changed yesterday does not mean that Céline approved the change, for example. And a single block from Notion sometimes only makes sense together with the page heading. The sentence "Does not apply here." says nothing without the heading "Custom-made items".

So keep the connections needed to understand the content. An answer should lead to a specific page or passage, not just the home page of the workspace. Test the link with the same user role that receives the answer. If the answer is meant for the workshop, click the link with the account of a workshop employee.

07 / 15

What happens when an exception is missing?

In this example, the furniture maker's Notion handbook states the general returns deadline in an ordinary paragraph, and an indented subsection below it lists the exceptions for custom-made items. Confluence also still holds the old instructions without this exception.

Suppose a customer calls: "I ordered a wardrobe made to measure. Can I return it?" Céline asks the assistant. A superficial import has read the paragraph in Notion, missed the blocks below it and also found the old page in Confluence. The assistant could then promise, convincingly and still wrongly, that the general deadline applies. A stronger language model does not reliably repair this missing structure.

The fix starts with the import and with the question of which page applies. The subsection has to reach the assistant, and the old Confluence page gets the status "historical", so it no longer counts as current guidance. Then you ask exactly the question about the made-to-measure wardrobe and check whether the exception and the valid version reach the answer. This is a test case for your own check and not a result from a real integration.

Got a workflow like this?

Tell me about it. Honest take and a rough price, usually within a day.

08 / 15

Duplicate pages in Confluence and Notion

Many organizations copy content when they change programs, and that is what happened at the furniture maker too. Two nearly identical pages can therefore have different states. For each task, decide which program leads and what happens to the other page. At the furniture maker, for example, only Notion now applies for returns.

A program that detects similar pages can suggest possible duplicates. But it should not decide on its own which legal or internal rule is binding. Versions for different locations can look similar and still differ on purpose. The fitting instructions for the workshop and those for the second branch may differ in a single sentence, and that is the sentence that matters.

If both pages are needed, write down what each applies to and how they relate. The assistant can then choose the right one by task, location and date. A single unlabelled summary of both versions would blur the difference again.

09 / 15

What happens when a page changes?

Céline changes a sentence about returns on Monday. On Tuesday she moves a page to another area, and on Wednesday she archives old instructions. A running connector has to pick up all of this, plus deleted pages and access that was withdrawn from someone. Which notifications it gets directly depends on the program. According to its documentation, Notion offers webhooks, meaning notifications when something changes. Building them in still needs its own programming and its own tests.

Such a notification is a reason to sync the page again, but it does not automatically contain the complete current content. Check whether the connector has to read the page again afterwards. If the same notification arrives twice, the page must not land in the assistant twice or be published twice.

In addition, regularly compare the whole approved collection. This way you find missed notifications and pages that can no longer be reached. If an error occurs, the assistant must not keep using the last confidential version it read indefinitely.

10 / 15

When a page suddenly goes missing

Suppose the connector cannot reach a page on Friday. It may be deleted, restricted or only temporarily unreachable because of a technical problem. The connector should tell these cases apart, using the responses the program returns according to its documentation and its own records. If it removes all content after a brief outage, your staff may afterwards be missing content without need.

Conversely, an unclear state must not mean that the assistant keeps showing the page indefinitely. For sensitive content, agree a cautious rule that blocks it when in doubt, while for low-risk content an older state with a notice may keep running where appropriate. At the furniture maker, the assistant would therefore block the hotel offer but keep giving the workshop's opening hours with a notice that they come from an older state. How important the content is and how long it may be out of date decide what happens.

Show the people who look after the assistant which source and which area are affected, and when the last complete retrieval succeeded. A message saying "synchronization failed" without naming the page helps little when someone is supposed to fix it. A restart should be able to identify the missing part and catch up on it in a traceable way.

11 / 15

At the furniture maker, a PDF with measurements hangs on the page "Kitchen fitting". The page points to this attachment but does not deliver its content. A link to another program, such as the order management system, may need a different account or its own approval of that source. Decide whether the assistant follows such links, only names them or says explicitly that the content lies outside the checked area.

Being allowed to read the main page does not automatically mean being allowed to retrieve every linked destination. A careful import can name the permitted sources and record unsupported content as a visible gap. That tells you more than dropping it quietly and still reporting a complete import.

For each type of attachment the assistant is meant to read, compare what came out of the extraction with the original. Ask a test question that can only be answered from that attachment, such as a measurement from the PDF. That way, the claim that the assistant reads these attachments rests on real behaviour and not just on a list of accepted file extensions. Repeat this test when the method for reading attachments or the interface version in use changes. Attachments with the same name can also have different revisions, so they need a traceable reference to their version.

12 / 15

How do you accept the connector against concrete cases?

Before your staff use the assistant, test it with a test collection. It should include long pages, nested sections, tables, attachments, restricted content and renamed objects, meaning pages, blocks or files with a new name. Ask a question whose answer is only in the last part of a retrieval that comes in several portions. This shows you whether everything really arrived.

Then change an important sentence on a test page, and take away a test user's access. Check fresh search results, stored summaries, source links and conversations that are already running. Measure how long it takes until the change has arrived everywhere, and compare that with the time you allow. Do not take this time from a product description.

Finally, write down which kinds of content the assistant reads and which it does not, for example pages and tables yes, comments no. That way everyone in the team knows what they can rely on. The knowledge-base guide covers how your team looks after the content. The freshness guide explains how the knowledge stays current in daily operation.

13 / 15

For your IT team

Confluence Cloud provides defined endpoints for pages and their metadata. According to the documentation of Atlassian: Confluence Cloud Pages API, there are permission requirements for pages and their spaces, and lists are paginated. Ingestion therefore needs both access handling and complete traversal.

In Notion, retrieving a page object returns the page's properties. The actual page content is obtained separately through blocks, see Notion: retrieve a page.

The Notion documentation on retrieving child blocks describes pagination and potentially recursive retrieval for nested content, see Notion: retrieve block children.

For recovery, keep a manifest of expected source objects and their last processed versions. This lets the people who run the assistant distinguish a deliberately excluded attachment from one lost during a failed run. Reconcile the manifest before reporting the collection complete, especially after changing extraction software or the API version.

Record the API version and the connector configuration together with the tests. Platform capabilities evolve, and an announcement of future features does not establish how an older integration behaves. Recheck typical cases when you upgrade the connection or expand its source scope.

14 / 15

Take the worksheet

Worksheet

Download the editable CSV table

PropertyPreserveTest
Page structureHeading contextAnswer in nested section
TableRow and column meaningSimilar values
AttachmentParent relationshipException in PDF
ChangeVersion and timeUpdated rule
AccessAllowed groupRestricted space

Columns to fill in, in the file: Your value / observation, Owner, Next action.

Download the editable CSV table (CSV). Add your own values, owners and open actions. This worksheet contains no measured client results.

15 / 15

These modernagents guides cover related decisions about AI knowledge assistants:

For a first review of your workflow, start with a short description of the task, the programs involved and typical exceptions. Discuss it with modernagents.

ShareEmail

Related reading

AI knowledge assistants

Got a workflow like this?

Tell me about it. Honest take and a rough price, usually within a day.

Robert Van Ysendyck · Founder & Managing Director