You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A simple agent that can interact with your Trello boards using natural language. Built with [smolagents](https://github.com/smol-ai/smolagents) - a lightweight framework for building AI agents that can use tools and run code.
4
+
5
+
## Repository Structure
6
+
7
+
```
8
+
.
9
+
├── code/
10
+
│ ├── tools.py # Trello API tool implementations
11
+
│ └── trello_agent.py # Agent setup and configuration
12
+
├── documentation/ # Documentation for smolagents and Trello API
13
+
├── .env.example # Template for environment variables
14
+
└── README.md
15
+
```
16
+
17
+
## Setup
18
+
19
+
1. Install `uv` (Python package manager):
20
+
```bash
21
+
curl -LsSf https://astral.sh/uv/install.sh | sh
22
+
```
23
+
24
+
2. Copy the environment variables file and fill in your credentials:
25
+
```bash
26
+
cp .env.example .env
27
+
```
28
+
29
+
Required environment variables:
30
+
-`TRELLO_API_KEY` & `TRELLO_TOKEN`: Create at [Trello Power-Ups Admin](https://trello.com/power-ups/admin)
31
+
-`TRELLO_BOARD_ID`: ID of your default Trello board
32
+
-`HUGGINGFACE_TOKEN`: Create at [HuggingFace Settings](https://huggingface.co/settings/tokens)
33
+
34
+
3. Install dependencies and run:
35
+
```bash
36
+
uv run code/trello_agent.py
37
+
```
38
+
This command will create a virtual environment and run the agent with an example prompt.
39
+
40
+
Alternatively, you can install dependencies separately:
41
+
```bash
42
+
uv sync
43
+
source .venv/bin/activate
44
+
python code/trello_agent.py
45
+
```
46
+
47
+
The agent can help you with tasks like:
48
+
- Listing your Trello boards, lists, and cards
49
+
- Creating new tickets
50
+
- Finding tasks to work on
51
+
52
+
You can use the `code/test_trello_client.ipynb` Jupyter notebook to test the Trello API directly:
53
+
54
+
## How it Works
55
+
56
+
This project uses:
57
+
-`smolagents`: A lightweight framework for building AI agents
58
+
-`py-trello`: Python wrapper for the Trello API
59
+
60
+
The agent is structured into two main components:
61
+
1.`tools.py`: Contains all the Trello API interactions (creating cards, listing boards, etc.)
62
+
2.`trello_agent.py`: Sets up the AI agent with the tools and handles natural language processing
63
+
64
+
65
+
## Documentation
66
+
67
+
Check the `documentation/` folder for detailed information about:
0 commit comments