AI powered TODOs
This experiment started with a simple enough thought:
What if I could incorporate AI in my workflow to help me kickstart or even save time on my tasks?
For example, what if I had the following task:

An example workflow leveraging AI
and I could automatically get a suggestion about a possible recipe that satisfies that prompt? That feels like magic and is exactly what we'll have by the end of this post.
Prerequisites
You'll need the following:
Now, you absolutely don't need to leverage the same tools. Do note though that this tutorial and it's project files are tailored to the tools presented here.
You'll either need a trial OpenAI account or a paid account to use OpenAI's APIs. You can find more information here.
Overview
The workflow is simple enough:
Let's go about implementing it.
Todoist Setup
- Log into Todoist's Developer Portal by visiting https://developer.todoist.com
- Navigate to the app console
- Create a new app named n8n
- Navigate to the App settings section
- Take note of the app's Client secret
- Navigate to the Test token section and create a test token
- Take note of Your access token
- Navigate to the Installation section
- Install the app on your Todoist account

Todoist Developer Portal setup walkthrough
OpenAI API Setup
- Log into your OpenAI account by visiting https://openai.com/api/login
- View your API Keys
- Create a new secret key
- Take note of the SECRET KEY

Generating an OpenAI API Key
Summary of credentials
By now, you have 3 credentials:
- Todoist's n8n app client secret
- Todoist's n8n app access token
- OpenAI's API secret key
Run back through the previous steps again if one of those is missing.
n8n Setup
- Download the n8n workflow
- Open it up in your favourite text editor
- Search and replace for all instances of [TODO: Replace by your CREDENTIAL]
- Save the file
- Log into your n8n's account by visiting https://app.n8n.cloud/login
- Import the workflow in one of your instance by clicking Import from File...
- Name your workflow by clicking the title on the top left of your screen
- Save the workflow by clicking save on the top right
- Activate the workflow by toggling the status from inactive to active
- Open the Todoist Webhook node by double-clicking on it
- Take note of the Production URL
Your workflow won't be ready to test yet! One last step left and you'll be on your way.

n8n workflow import and setup
Setup Todoist's Webhook
- Navigate back to Todoist's app console and open your n8n app
- Navigate to the Webhook section
- In the Webhook callback URL, paste in n8n's Production URL previously copied over
- In the Watched Events section, select:
- item:added
- item:updated
- Save your webook configuration by clicking on Save webhook configuration

Configuring Todoist webhook to trigger n8n
Test it out!
- Open up Todoist
- Create a new Todo with the following characteristics:
- A meaningful title
- A description to which the AI will respond
- The @ai-help label
- Wait and observe the comment added on your task (it'll take a few seconds to appear)
- Marvel at how much technology has advanced
Here are some ideas of prompts:
Prepare dinner
What is a tasty chicken recipe that I can prepare for 2 people, in less than 1 hour?
Start exercising
What is a good daily 30 minutes exercise routine for beginners?
Email Mr. Smith
Follow-up with Mr. Smith about next meeting. My availabilities are Mon-Fri 9
- 11 EST. Send regards.
Protips
Customizing OpenAI's parameters
By default, the prompt sent to OpenAI uses the text-davinci-003 model to generate a response. This parameter and others can be changed by customizing the OpenAI prompt request node in n8n, under the body field. Learn more about OpenAI's API here.
Note that the Davinci language model is the most powerful and the most costly. See alternatives here.
Self Hosted n8n
n8n, like most workflow automation platforms, isn't cheap! Luckily, you can self host it if you're a bit tech savvy. I opted to host it on Digital Ocean and got it up and running within a few minutes using n8n's handy guides.
Alternative Tooling
Truly, this workflow can be adapted to any number of tools, including alternative task management software, workflow automation platforms or AI Tools that produce text from prompts. Though the exact process will differ, the overall idea is still the same.
Project Files
You are free to use the workflow under the GNU GPLv3 license.
Happy hacking!
Show your interest by sharing the page and following me on social media!