Use AI to organize your Todoist Inbox
Automatically organize your Todoist Inbox by leveraging the power of AI to categorize and prioritize tasks. This n8n workflow connects your Todoist account with OpenAI, allowing you to intelligently process new tasks as they arrive. The workflow starts with a Schedule Trigger, which periodically fetches new tasks from your Todoist Inbox using the "Get inbox tasks" node. It then uses an "If task is not a subtask" filter to ensure only top-level tasks are processed before sending them to the "Categorize" node, powered by OpenAI, which assigns categories or determines priority based on task content. Should the AI categorize a task as "other" or if there's an AI hallucination, the "If other or ai hallucinates" filter directs these tasks to the "Update priority in todoist" node to ensure they receive appropriate attention. This automation is ideal for busy professionals, project managers, or anyone overwhelmed by a constantly growing Todoist Inbox, saving significant time and mental effort spent manually sorting tasks. By automating task categorization and prioritization, you ensure important items are always visible and actionable, reducing the risk of missed deadlines and improving overall productivity.
Workflow JSON
{"nodes": [{"id": "d45cf237-dbbc-48ed-a7f0-fa9506ae1d67", "name": "Update priority in todoist", "type": "n8n-nodes-base.todoist", "position": [2060, 520], "parameters": {"taskId": "={{ $('Get inbox tasks').item.json.id }}", "operation": "update", "updateFields": {"priority": "={{ $('Your Projects').first().json.projects[$json.message.content] }}"}}, "credentials": {"todoistApi": {"id": "", "name": "[Your todoistApi]"}}, "retryOnFail": true, "typeVersion": 2, "waitBetweenTries": 5000}, {"id": "4d0ebf98-5a1d-4dfd-85df-da182b3c5099", "name": "Schedule Trigger", "type": "n8n-nodes-base.scheduleTrigger", "position": [600, 520], "parameters": {"rule": {"interval": [{}]}}, "typeVersion": 1.2}, {"id": "a950e470-6885-42f4-9b17-7b2c2525d3e4", "name": "Get inbox tasks", "type": "n8n-nodes-base.todoist", "position": [1020, 520], "parameters": {"filters": {"projectId": "938017196"}, "operation": "getAll", "returnAll": true}, "credentials": {"todoistApi": {"id": "", "name": "[Your todoistApi]"}}, "retryOnFail": true, "typeVersion": 2, "waitBetweenTries": 5000}, {"id": "093bcb2e-79b7-427e-b13d-540a5b28f427", "name": "Sticky Note", "type": "n8n-nodes-base.stickyNote", "position": [540, 200], "parameters": {"color": 3, "width": 358.6620209059232, "height": 256.5853658536585, "content": "## \ud83d\udcab To setup this template\n\n1. Add your Todoist credentials\n2. Add your OpenAI credentials\n3. Set your project names and add priority"}, "typeVersion": 1}, {"id": "430290e7-1732-46fe-a38d-fa6dc7f78a26", "name": "Sticky Note1", "type": "n8n-nodes-base.stickyNote", "position": [800, 700], "parameters": {"width": 192.77351916376313, "height": 80, "content": " \ud83d\udc46\ud83c\udffd Add your projects and priority here"}, "typeVersion": 1}, {"id": "6d5a1b7e-f7fa-4a1b-848c-1b4e79f6f667", "name": "Sticky Note2", "type": "n8n-nodes-base.stickyNote", "position": [1020, 420], "parameters": {"width": 192.77351916376313, "height": 80, "content": " \ud83d\udc47\ud83c\udffd Add your Todoist credentials here"}, "typeVersion": 1}, {"id": "feff35d2-e37d-48a5-9a90-c5a2efde688f", "name": "Sticky Note3", "type": "n8n-nodes-base.stickyNote", "position": [2060, 420], "parameters": {"width": 192.77351916376313, "height": 80, "content": " \ud83d\udc47\ud83c\udffd Add your Todoist credentials here"}, "typeVersion": 1}, {"id": "e454ebfe-47f6-4e39-8b89-d706da742911", "name": "Sticky Note4", "type": "n8n-nodes-base.stickyNote", "position": [1540, 700], "parameters": {"width": 192.77351916376313, "height": 80, "content": " \ud83d\udc46\ud83c\udffd Add your OpenAI credentials here"}, "typeVersion": 1}, {"id": "a79effcb-6904-4abf-835b-e1ccd94ca429", "name": "Your Projects", "type": "n8n-nodes-base.set", "position": [820, 520], "parameters": {"options": {}, "assignments": {"assignments": [{"id": "50dc1412-21f8-4158-898d-3940a146586b", "name": "projects", "type": "object", "value": "={{ {\n apartment: 1,\n health: 2,\n german: 3\n} }}"}]}}, "typeVersion": 3.4}, {"id": "b5988629-2225-455f-b579-73e60449d2a3", "name": "Categorize", "type": "@n8n/n8n-nodes-langchain.openAi", "position": [1460, 520], "parameters": {"modelId": {"__rl": true, "mode": "list", "value": "gpt-4o-mini", "cachedResultName": "GPT-4O-MINI"}, "options": {}, "messages": {"values": [{"role": "system", "content": "=Categorize the user's todo item to a project. Return the project name or just \"other\" if it does not belong to a project."}, {"content": "=Projects:\n{{ $('Your Projects').first().json.projects.keys().join('\\n') }}\n\nTodo item:\n{{ $('Get inbox tasks').item.json.content }}"}]}}, "credentials": {"openAiApi": {"id": "", "name": "[Your openAiApi]"}}, "typeVersion": 1.4}, {"id": "0dca3953-c0ac-4319-9323-c3aed9488bfb", "name": "If task is not a subtask", "type": "n8n-nodes-base.filter", "position": [1240, 520], "parameters": {"options": {}, "conditions": {"options": {"leftValue": "", "caseSensitive": true, "typeValidation": "strict"}, "combinator": "and", "conditions": [{"id": "36dd4bc9-1282-4342-89dd-1dac81c7290e", "operator": {"type": "string", "operation": "empty", "singleValue": true}, "leftValue": "={{ $json.parent_id }}", "rightValue": ""}]}}, "typeVersion": 2.1}, {"id": "12e25a81-dbde-4542-a137-365329da415e", "name": "If other or ai hallucinates", "type": "n8n-nodes-base.filter", "position": [1820, 520], "parameters": {"options": {}, "conditions": {"options": {"leftValue": "", "caseSensitive": true, "typeValidation": "strict"}, "combinator": "and", "conditions": [{"id": "c4f69265-abe1-451c-8462-e68ff3b06799", "operator": {"type": "array", "operation": "contains", "rightType": "any"}, "leftValue": "={{ $('Your Projects').first().json.projects.keys() }}", "rightValue": "={{ $json.message.content }}"}]}}, "typeVersion": 2.1}], "pinData": {}, "connections": {"Categorize": {"main": [[{"node": "If other or ai hallucinates", "type": "main", "index": 0}]]}, "Your Projects": {"main": [[{"node": "Get inbox tasks", "type": "main", "index": 0}]]}, "Get inbox tasks": {"main": [[{"node": "If task is not a subtask", "type": "main", "index": 0}]]}, "Schedule Trigger": {"main": [[{"node": "Your Projects", "type": "main", "index": 0}]]}, "If task is not a subtask": {"main": [[{"node": "Categorize", "type": "main", "index": 0}]]}, "If other or ai hallucinates": {"main": [[{"node": "Update priority in todoist", "type": "main", "index": 0}]]}}}How to Import This Workflow
- 1Copy the workflow JSON above using the Copy Workflow JSON button.
- 2Open your n8n instance and go to Workflows.
- 3Click Import from JSON and paste the copied workflow.
Don't have an n8n instance? Start your free trial at n8nautomation.cloud
Related Templates
Visualize your SQL Agent queries with OpenAI and Quickchart.io
Visualize your SQL Agent queries with OpenAI and Quickchart.io empowers you to instantly transform complex SQL Agent query results into insightful charts and graphs, all through a simple chat interface. This workflow connects an OpenAI Chat Model to interpret your chat messages, determine if a chart is needed using a Text Classifier, and then leverages Quickchart.io by generating a chart definition with structured output via an HTTP Request node. It automates the entire process from receiving a chat message to extracting the user's question, passing it to an AI Agent, and then conditionally generating and displaying a chart, saving significant time and effort for data analysts, developers, and business intelligence professionals who frequently need to visualize their SQL data. By automating chart generation, this workflow eliminates the manual steps of data extraction, chart selection, and configuration, allowing users to quickly gain visual insights from their SQL Agent queries without needing to switch between multiple tools or possess advanced charting skills.
Analyze the sentiment of feedback and send a message on Mattermost
Automatically analyze customer feedback sentiment and notify your team on Mattermost with this n8n workflow. This automation connects Typeform submissions directly to Google Cloud Natural Language for sentiment analysis, then routes the results to your Mattermost channel. When a user submits a form through Typeform, the workflow extracts the feedback, sends it to Google Cloud Natural Language for sentiment scoring, and based on that score, sends a message to a designated Mattermost channel, allowing for immediate team awareness of positive, negative, or neutral feedback. This workflow is ideal for product managers, customer support teams, or marketing departments who need to quickly gauge public opinion or customer satisfaction from surveys, support tickets, or product reviews, enabling faster response times to critical feedback and reducing the manual effort of monitoring and reporting. It saves significant time and ensures that important customer insights are never missed, fostering a more responsive and customer-centric operation.
Qualify replies from Pipedrive persons with AI
Automate the qualification of inbound email replies from Pipedrive contacts using artificial intelligence. This workflow connects Gmail and OpenAI to your Pipedrive CRM, streamlining your lead nurturing process. When a new email arrives in either of your specified Gmail inboxes (Email box 1 or Email box 2), the workflow searches for the sender as a person in Pipedrive. It then retrieves their full person details and sends the email content to OpenAI for an AI-powered assessment of interest (Is interested?). Based on OpenAI's response, if the person is deemed interested, a new deal is automatically created in Pipedrive, ensuring hot leads are immediately acted upon. This is ideal for sales teams, marketers, and business development professionals who receive a high volume of email replies and need to quickly identify and prioritize genuinely interested prospects, saving significant manual review time and accelerating sales cycles.