Skip to main content
Composio enables your Griptape agents to connect with many tools!
Goal: Star a repository on GitHub with natural language & Griptape Agent

Install Packages & Connect a Tool

These commands prepare your environment for seamless interaction between Griptape and GitHub.
pip install composio_griptape
# Connect your GitHub so agents can use it. 
composio add github
# Check all different apps which you can connect with
composio show-apps

Goal: Use Agent to Interact with GitHub using Composio

1

Import Base Packages

from griptape.structures import Agent
from griptape.utils import Chat
from composio_griptape import App, Action, Tag, ComposioToolSet
import dotenv

dotenv.load_dotenv()
2

Add Tools to agent

composio_toolset = ComposioToolSet()
tools = composio_toolset.get_tools(apps = [App.GITHUB])

agent = Agent(
tools=tools
)
3

Start Agent Chat

Chat(agent).start()
4

Talk with Agent

Star composiohq/composio repository