10x your productivity, featuring Todoist, n8n (a task automation platform) and magic ✨
Posted by
modernmaker
on December 19, 2022 ·
7 mins read
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:
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.
An OpenAI account to produce the
text from the TODO’s description1
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.
1: You’ll either need a trial OpenAI account or a paid account to use OpenAI’s APIs. You can find more
information here.
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.
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
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:30am - 11:30am 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.