Putting a Chatbot on Confluence for Non-Logged-In Users

By Ryan

Putting a Chatbot on Confluence for Non-Logged-In Users

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

Choose the Pattern

How ScaleIT handles this: See plans and pricing

Before You Start

Step 1: Turn On Anonymous Access for the Site

  1. Select the gear icon in the top-right corner to open Confluence administration.
  2. Under Settings, open Security.
  3. Select the Security tab, then the Anonymous access tab.
  4. Select Edit.
  5. Check the box under Use Confluence.
  6. 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

  1. Go to the space and select More actions (•••) next to the space name → Space settings.
  2. Open Space access → Anonymous access.
  3. Select the toggle to enable anonymous access, then confirm in the dialog.
  4. Go to Users in Space settings.
  5. 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

  1. Open a private browser window with no Atlassian session.
  2. 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.
  3. Confirm the JSON response lists pages from the public space only.

Step 4: Build the Serverless Answer Function

  1. Create an HTTPS function that accepts a visitor's question.
  2. Build a CQL query scoped to the public space, such as space = HELP and type = page and text ~ "vpn setup".
  3. Call /wiki/rest/api/content/search with that CQL and expand=body.storage.value, keeping the limit small, since expanded results cap at 50.
  4. Convert the storage-format markup to plain text and pass the top pages to the model with an instruction to answer only from them.
  5. Return the answer with links to the source pages.
  6. Store the model API key in the platform's secret store and add per-visitor rate limiting.

Step 5: Add the Chat Widget

  1. Add a chat widget script to your website or help center that posts questions to the function URL.
  2. Allow only your site's domain in the function's CORS settings.
  3. Show the source page links under each answer so readers can open the full article.

Step 6: Connect an MCP-Backed Agent (Optional)

  1. Have an organization admin enable API token authentication for the Atlassian Rovo MCP server in the organization's settings.
  2. Create a dedicated service account with the Viewer role on the public space only.
  3. Connect the agent to the MCP server with that account's API token.
  4. 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

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/.