Skip to main content
"""
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

# Clone and setup repo
git clone https://github.com/agno-agi/agno.git
cd agno/cookbook/91_tools

# Create and activate virtual environment
./scripts/demo_setup.sh
source .venvs/demo/bin/activate

python confluence_tools.py