> ## Documentation Index
> Fetch the complete documentation index at: https://agno-v2-service-account.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

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

  <Step title="Install dependencies">
    ```bash theme={null}
    uv pip install -U agno atlassian atlassian-python-api openai requests urllib3
    ```
  </Step>

  <Step title="Export environment variables">
    <CodeGroup>
      ```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"
      ```
    </CodeGroup>
  </Step>

  <Step title="Run the example">
    Save the code above as `confluence_tools.py`, then run:

    ```bash theme={null}
    python confluence_tools.py
    ```
  </Step>
</Steps>

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