Examples
- Introduction
- Getting Started
- Agents
- Workflows
- Applications
Agent Concepts
- Multimodal
- RAG
- Knowledge
- Memory
- Teams
- Async
- Hybrid Search
- Storage
- Tools
- DuckDuckGo Search
- Calculator
- Airflow Tools
- Apify Tools
- ArXiv Tools
- AWS Lambda Tools
- Baidu Search Tools
- Cal.com Tools
- Composio Tools
- Confluence Tools
- Crawl4ai Tools
- CSV Tools
- DALL-E Tools
- Desi Vocal Tools
- Discord Tools
- DuckDB Tools
- Email Tools
- Exa Tools
- Fal Tools
- File Tools
- Firecrawl Tools
- Giphy Tools
- GitHub Tools
- Google Calendar Tools
- Google Maps Tools
- Google Search Tools
- Hacker News Tools
- Jina Reader Tools
- Jira Tools
- Linear Tools
- Luma Labs Tools
- MLX Transcribe Tools
- Models Labs Tools
- Newspaper Tools
- Newspaper4k Tools
- OpenBB Tools
- Pandas Tools
- Postgres Tools
- PubMed Tools
- Python Tools
- Replicate Tools
- Resend Tools
- SearxNG Tools
- SerpAPI Tools
- Shell Tools
- Slack Tools
- Sleep Tools
- Spider Tools
- SQL Tools
- Tavily Tools
- Todoist Tools
- Twilio Tools
- X (Twitter) Tools
- Website Tools
- Wikipedia Tools
- YFinance Tools
- YouTube Tools
- Zendesk Tools
- Vector Databases
- Embedders
Models
- Anthropic
- AWS Bedrock
- AWS Bedrock Claude
- Azure AI Foundry
- Azure OpenAI
- Cohere
- DeepSeek
- Fireworks
- Gemini
- Groq
- Hugging Face
- Mistral
- NVIDIA
- Ollama
- OpenAI
- Perplexity
- Together
- xAI
Tools
Todoist Tools
Code
cookbook/tools/todoist_tools.py
"""
Example showing how to use the Todoist Tools with Agno
Requirements:
- Sign up/login to Todoist and get a Todoist API Token (get from https://app.todoist.com/app/settings/integrations/developer)
- pip install todoist-api-python
Usage:
- Set the following environment variables:
export TODOIST_API_TOKEN="your_api_token"
- Or provide them when creating the TodoistTools instance
"""
from agno.agent import Agent
from agno.models.openai import OpenAIChat
from agno.tools.todoist import TodoistTools
todoist_agent = Agent(
name="Todoist Agent",
role="Manage your todoist tasks",
instructions=[
"When given a task, create a todoist task for it.",
"When given a list of tasks, create a todoist task for each one.",
"When given a task to update, update the todoist task.",
"When given a task to delete, delete the todoist task.",
"When given a task to get, get the todoist task.",
],
agent_id="todoist-agent",
model=OpenAIChat(id="gpt-4o"),
tools=[TodoistTools()],
markdown=True,
debug_mode=True,
show_tool_calls=True,
)
# Example 1: Create a task
print("\n=== Create a task ===")
todoist_agent.print_response("Create a todoist task to buy groceries tomorrow at 10am")
# Example 2: Delete a task
print("\n=== Delete a task ===")
todoist_agent.print_response(
"Delete the todoist task to buy groceries tomorrow at 10am"
)
# Example 3: Get all tasks
print("\n=== Get all tasks ===")
todoist_agent.print_response("Get all the todoist tasks")
Usage
1
Create a virtual environment
Open the Terminal
and create a python virtual environment.
python3 -m venv .venv
source .venv/bin/activate
2
Set your API Token
export TODOIST_API_TOKEN=xxx
export OPENAI_API_KEY=xxx
3
Install libraries
pip install -U todoist-api-python openai agno
4
Run Agent
python cookbook/tools/todoist_tools.py