> ## Documentation Index
> Fetch the complete documentation index at: https://agno-v2.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Confluence Tools

> List Confluence spaces, read page content, and create new pages with ConfluenceTools.

```python confluence_tools.py theme={null}
"""
Confluence Tools
=============================

Demonstrates confluence tools.
"""

from agno.agent import Agent
from agno.tools.confluence import ConfluenceTools

# ---------------------------------------------------------------------------
# Create Agent
# ---------------------------------------------------------------------------


agent = Agent(
    name="Confluence agent",
    tools=[ConfluenceTools()],
    markdown=True,
)

## getting space details

# ---------------------------------------------------------------------------
# Run Agent
# ---------------------------------------------------------------------------
if __name__ == "__main__":
    agent.print_response("How many spaces are there and what are their names?")

    ## getting page_content
    agent.print_response(
        "What is the content present in page 'Large language model in LLM space'"
    )

    ## getting page details in a particular space
    agent.print_response("Can you extract all the page names from 'LLM' space")

    ## creating a new page in a space
    agent.print_response("Can you create a new page named 'TESTING' in 'LLM' space")
```

## Run the Example

<Snippet file="create-venv-step.mdx" />

**1. Install dependencies**

```bash theme={null}
uv pip install -U agno atlassian atlassian-python-api openai requests urllib3
```

**2. Export environment variables**

```bash Mac/Linux theme={null}
export CONFLUENCE_API_KEY="your_confluence_api_key_here"
export CONFLUENCE_PASSWORD="your_confluence_password_here"
export OPENAI_API_KEY="your_openai_api_key_here"
```

```bash Windows theme={null}
$Env:CONFLUENCE_API_KEY="your_confluence_api_key_here"
$Env:CONFLUENCE_PASSWORD="your_confluence_password_here"
$Env:OPENAI_API_KEY="your_openai_api_key_here"
```

**3. Run the example**

Save the code above as `confluence_tools.py`, then run:

```bash theme={null}
python confluence_tools.py
```

Full source: [cookbook/91\_tools/confluence\_tools.py](https://github.com/agno-agi/agno/blob/v3.0.4/cookbook/91_tools/confluence_tools.py)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.