Skip to main content

Ask AI assistant widget for Confluence

Use a Biel.ai AI assistant or AI search widget to answer questions from indexed Confluence content on a website you control. You can also connect AI agents through MCP, with or without installing the widget.

Prerequisites​

  • A Biel.ai account and a project.
  • A Confluence Cloud space and credentials for pages you want to index.
  • A website that allows custom JavaScript to host the widget.

Add the assistant widget​

Assistant widget for docs

Confluence Cloud has no native Custom HTML setting for injecting these scripts. Atlassian's Custom HTML feature request documents this limitation.

  1. Connect your space using Confluence as a data source. Save the source and click Refresh sources to index it.

  2. On your external website, add these dependencies inside the head:

    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/biel-search/dist/biel-search/biel-search.css">
    <script type="module" src="https://cdn.jsdelivr.net/npm/biel-search/dist/biel-search/biel-search.esm.js"></script>
  3. Add the assistant before the closing body tag:

    <biel-button project="<YOUR_PROJECT_ID>"
    header-title="Biel.ai assistant"
    button-position="bottom-right"
    modal-position="bottom-right"
    button-style="dark">
    Ask AI
    </biel-button>

    Replace <YOUR_PROJECT_ID> with your project's ID from the Biel.ai installation code.

  4. Publish the external page and test a question about your indexed Confluence content. Link to that page from your space.

Limitations​

  • Indexing Confluence content does not install a widget inside Confluence Cloud.
  • Confluence page permissions are not inherited by the external widget. Configure access control for its readers.
  • Confluence Data Center customization is a separate setup and is not covered by this Cloud guide.

Add the search widget​

Use the same Biel.ai project that indexes your Confluence content. Host the widget on a website that allows custom JavaScript.

  1. On the external website hosting your widget, add these assets inside <head>:

    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/biel-search/dist/biel-search/biel-search.css">
    <script type="module" src="https://cdn.jsdelivr.net/npm/biel-search/dist/biel-search/biel-search.esm.js"></script>
  2. Add the search button where it should appear on that website:

    <biel-search-button project="<YOUR_PROJECT_ID>" button-style="rounded">
    Search
    </biel-search-button>

    Replace <YOUR_PROJECT_ID> with your project ID.

  3. Publish the page and link to it from Confluence. Open Search, enter a term from your documentation, and open a result.

Troubleshooting​

Custom HTML not available

This is expected in Confluence Cloud. Host the widget on a site that permits custom JavaScript.

Assistant not answering questions

Check the project dashboard's loading status and Logs. Verify that the source credentials can read the pages you want indexed.

Assistant not appearing on the external site

Check that its CSS and JavaScript load, and that the project ID matches the installation code.

Connect AI agents with MCP​

Let AI tools search and read your indexed documentation. MCP is available on every plan and during your trial.

  1. In the Biel.ai dashboard, open your project’s Settings > MCP.
  2. Select Enable MCP server and click Save.
  3. In the widget, open Connect via MCP using the <> button. Select your AI client or choose MCP URL to copy the endpoint into its settings.

Without the widget: after enabling MCP, copy MCP endpoint from Settings > MCP and add it to your AI client. No widget installation or website changes are required.

The widget also exposes WebMCP tools to compatible browser agents visiting your site. Use the latest widget release and keep Enable WebMCP selected in Settings > MCP.

Next steps​