Star A Repository on GitHub

In this example, we will use LangGraph Agent to star a repository on GitHub using Composio Tools

1

Install Packages

2

Import Libraries & Initialize ComposioToolSet

3

Connect Your GitHub Account

You need to have an active GitHub Integration. Learn how to do this here

Donโ€™t forget to set your COMPOSIO_API_KEY and OPENAI_API_KEY in your environment variables.

4

Get And Bind Tools

You can get all the tools for a given app as shown below, but you can get specific actions and filter actions using usecase & tags. Learn more here

5

Define the model calling function

6

Define the decision function for workflow routing

7

Define the workflow graph

8

Execute the workflow