Quickstart
Get started with using Composio
This guide shows how to build a workflow to star a GitHub repository using AI. Composio discovers and provides the relevant tools to the LLM and handles its execution.
- 🔑 Get your Composio API key
- 🔐 Configure GitHub integration
- 🛠 Discover and fetch relevant tools
- 🧠 Pass tools to an LLM
- ⭐ Execute tools to star a repository
Getting your API key
Before you begin, you’ll need a Composio account. Sign up here if you haven’t yet.
Once done, you can generate the API key through the dashboard or command-line tool.
CLI
Dashboard
Make sure to not leak your Composio API key. Anyone with access to your API key can access your authenticated applications.
Setting up the GitHub integration
Before writing any code, you’ll need to connect your GitHub account. Choose your preferred method:
CLI
Dashboard
Add GitHub integration through the CLI.
Follow the instructions in the CLI to authenticate and connect your GitHub account.
Building the application
After connecting GitHub, create the LLM workflow:
Implement Tool Calling
Breaking down the tool calling process into smaller steps helps understand how it works:
- First, define the task and set up the conversation with the LLM.
- Then, enter a loop to handle the interaction between the LLM and tools.
- Finally, process and store the results of each tool call, and exit the loop when the task is complete.
Send Request to LLM
The LLM examines the task and available tools, then decides which tools to call and in what order.
Full code
Here’s the full code for the workflow.
Need help? Join the Discord community!