Putting a Chatbot on Confluence for Non-Logged-In Users
By Ryan
A chatbot on your public Confluence space answers customer and partner questions around the clock, straight from the documentation your team already maintains. The setup below opens one space to anonymous readers, connects a small serverless function to Confluence search, and places a chat widget on your website or help center, with an optional MCP-backed agent for teams that want more tools behind the bot.
Benefits of a Public Confluence Chatbot
- Visitors get answers in seconds without creating an account
- Answers stay current because the bot reads live pages, not an exported copy
- Only spaces you open to anonymous access are reachable
- Your team keeps writing in Confluence, with no second knowledge base to maintain
Choose the Pattern
How ScaleIT handles this: See plans and pricing
- Serverless widget: a chat widget on your site calls a serverless function, which searches public Confluence content through the REST API and sends the matching pages to a language model. Best fit for customer-facing help.
- MCP-backed agent: an AI agent reaches Confluence through an MCP server, such as the Atlassian Rovo MCP server, using a dedicated service account. Best fit when the agent also works with other tools.
Before You Start
- Confluence admin access for the site-level setting
- Space admin access on the space you will publish
- A content review of that space, because anonymous access covers every open page in it and search engines can index it
- A serverless platform, such as Cloudflare Workers, AWS Lambda, or Vercel, plus a model API key kept server-side
Step 1: Turn On Anonymous Access for the Site
- Select the gear icon in the top-right corner to open Confluence administration.
- Under Settings, open Security.
- Select the Security tab, then the Anonymous access tab.
- Select Edit.
- Check the box under Use Confluence.
- Select Save.
The site setting exposes nothing on its own. Each space still needs anonymous access turned on by a space admin.
Step 2: Open One Space to Anonymous Readers
- Go to the space and select More actions (•••) next to the space name → Space settings.
- Open Space access → Anonymous access.
- Select the toggle to enable anonymous access, then confirm in the dialog.
- Go to Users in Space settings.
- Keep the Anonymous users class on the default View only role.
Pages with General access set to Restricted, and pages under a restricted parent, stay hidden from anonymous readers. Use that for internal notes that share the space.
Step 3: Confirm Search Works Without a Login
- Open a private browser window with no Atlassian session.
- Request
https://your-domain.atlassian.net/wiki/rest/api/content/search?cql=space=HELP and type=page, with the CQL URL-encoded and HELP replaced by your space key. - Confirm the JSON response lists pages from the public space only.
Step 4: Build the Serverless Answer Function
- Create an HTTPS function that accepts a visitor's question.
- Build a CQL query scoped to the public space, such as
space = HELP and type = page and text ~ "vpn setup". - Call
/wiki/rest/api/content/searchwith that CQL andexpand=body.storage.value, keeping the limit small, since expanded results cap at 50. - Convert the storage-format markup to plain text and pass the top pages to the model with an instruction to answer only from them.
- Return the answer with links to the source pages.
- Store the model API key in the platform's secret store and add per-visitor rate limiting.
Step 5: Add the Chat Widget
- Add a chat widget script to your website or help center that posts questions to the function URL.
- Allow only your site's domain in the function's CORS settings.
- Show the source page links under each answer so readers can open the full article.
Step 6: Connect an MCP-Backed Agent (Optional)
- Have an organization admin enable API token authentication for the Atlassian Rovo MCP server in the organization's settings.
- Create a dedicated service account with the Viewer role on the public space only.
- Connect the agent to the MCP server with that account's API token.
- Add the agent's outbound IP address to your organization's IP allowlist, if one is configured.
The agent can then search and read exactly what the service account can, which keeps its reach matched to the public space.
Keep Answers Accurate
- Name an owner for the public space on its overview page
- Set internal pages to Restricted before they go live in the space
- Log questions the bot could not answer and turn them into new pages
ScaleIt sets up public Confluence spaces, AI chatbots, and MCP connections as part of managed IT support. Book a free call and we will put your documentation to work for your customers.
Verified against Confluence Cloud on 2026-10-19. Vendor docs: https://support.atlassian.com/confluence-cloud/docs/set-up-public-access/, https://support.atlassian.com/confluence-cloud/docs/make-a-space-public/, https://developer.atlassian.com/cloud/confluence/advanced-searching-using-cql/, https://support.atlassian.com/security-and-access-policies/docs/understand-atlassian-rovo-mcp-server/.