Connect the integration
Connecting your Confluence account to Relevance AI is a straightforward process:- Go to the Integrations & API Keys page in the sidebar of your Relevance AI dashboard.
- Click on “Confluence” from the available integrations.
- Click on the “Add Integration” button.
- In the pop-up window, sign into your Atlassian account.
- Grant the necessary permissions for Relevance AI to access your Confluence workspace.
- Once authenticated, your Confluence account will appear as a connected integration.
Tool steps for Confluence
The Confluence integration provides a rich set of actions that your agents can use to interact with your Confluence workspace. These actions can be incorporated into your agent’s workflows as tool steps, enabling sophisticated knowledge management capabilities.Create Post
Use a Tool step to add a blog post to your Confluence space.
Search Content
Use CQL to search through Confluence in Relevance AI.
Use the integration’s API tool step (Advanced)
In addition to the pre-built actions available in the tool directory, you can build custom tools that perform Confluence-specific activities using the Confluence API Call tool step:- Create a new tool in Relevance AI.
- Scroll down to Tool-steps.
- Add the Confluence API Tool step.
- Select your connected Confluence account in the dropdown.
- Configure the API endpoint, method, and parameters according to your needs.
Adding Required Headers
When using the Confluence API Call Tool step, you must manually add any headers required by the endpoint you’re calling. The tool does not add these automatically.1
Check the API documentation
Before configuring your API call, visit the Confluence REST API documentation and find your specific endpoint. Look for the “Request” section to see which headers are required.Many endpoints require the
accept: application/json header, but requirements vary by endpoint.2
Add the API Call Tool step
In your tool configuration, add the Confluence API Call Tool step and select your connected Confluence account.
3
Configure the endpoint
Set up your API endpoint and method. For example, to get a page by ID:
- Method: GET
- Endpoint:
/wiki/api/v2/pages/{id}?body-format=storage
4
Add required headers manually
In the Headers section of the API Call Tool step, add any headers specified in the API documentation. For most Confluence REST API v2 endpoints, this includes:This header tells the Confluence API to return responses in JSON format. Without it, many endpoints will fail with errors.
Why is this header needed?The
accept: application/json header tells the Confluence API what format you want the response in. Most REST API v2 endpoints require this header to return data in JSON format, which the tool can then process. Without this header, the API may return an error or data in an unexpected format.Example API Call Configuration
Here’s a complete example of calling the Confluence API to retrieve a page by ID. This endpoint requires theaccept: application/json header according to the Atlassian documentation:
- Configuration
- Expected Response
API Method: GETEndpoint: Path Parameters:
/wiki/api/v2/pages/{id}?body-format=storageHeaders (must be added manually):id: The ID of the Confluence page you want to retrieve
Example use cases
Here are some ways you can leverage the Confluence integration with your agents:- Documentation Assistant: Create an agent that automatically updates technical documentation in Confluence when new features are released or code changes are made.
- Knowledge Summarizer: Build an agent that monitors specific Confluence spaces and creates executive summaries of new content added during the week.
- Content Organizer: Deploy an agent that automatically adds appropriate labels to new Confluence pages based on their content analysis.
- Meeting Notes Processor: Create an agent that takes meeting notes, formats them according to your team’s template, and posts them to the relevant Confluence space.
- Knowledge Gap Identifier: Build an agent that analyzes your Confluence content and identifies areas where documentation is missing or outdated.
Related Features
- Knowledge Integration - Use Confluence as a knowledge source for your agents, enabling them to access and reference your team’s documentation when responding to queries.
- Slack Integration - Combine Confluence and Slack integrations to create powerful workflows where agents can update documentation and notify team members about changes.
- Document Processing - Leverage document processing tools alongside Confluence integration to extract, analyze, and organize information from various sources into your knowledge base.
Frequently asked questions (FAQs)
What permissions does the Confluence integration require?
What permissions does the Confluence integration require?
The integration requires permissions to read and write content, access spaces, and manage page properties in your Confluence workspace. You can review the specific permissions during the authentication process.
Can I restrict my Agent to only access certain spaces in Confluence?
Can I restrict my Agent to only access certain spaces in Confluence?
Yes, you can configure your tools and triggers to only interact with specific spaces by setting the appropriate filters and parameters.
Why am I getting errors when using the Confluence API Call Tool?
Why am I getting errors when using the Confluence API Call Tool?
The most common issue is missing required headers. The API Call Tool does not automatically add headers to your requests.To troubleshoot:
- Check the API documentation: Visit the Confluence API documentation for your specific endpoint and verify which headers are required. Most REST API v2 endpoints require
accept: application/json. - Add headers manually: In the Headers section of the API Call Tool step, add all required headers as specified in the documentation.
- Verify your connection: Ensure your Confluence account is properly connected in Relevance AI.
- Check permissions: Confirm you have the necessary permissions for the endpoint you’re calling.
- Validate the endpoint: Make sure your endpoint URL and parameters are correctly formatted according to the API documentation.
- Use the correct API version: The REST API v2 is recommended for new integrations.
Do I need to add the accept header for all Confluence API endpoints?
Do I need to add the accept header for all Confluence API endpoints?
Not necessarily. While many Confluence REST API v2 endpoints require the
accept: application/json header, requirements vary by endpoint.Always check the official Confluence API documentation for your specific endpoint to see which headers are required. The documentation will clearly specify all required headers in the “Request” section of each endpoint.Remember: The API Call Tool does not add any headers automatically, so you must manually add all required headers specified in the documentation.
