I just started with the n8n this week to automate a task in my Notion database.
I’m trying to make simple bot to see what is in my task list on Notion.
The objective is simple:
- I send “/hoje” and the bot returns the tasks to today. If there are no today’s tasks I get a congratulation message.
- I send “/semana” and a get the task for this week. If there are no more tasks to this week, I get a congratulation message.
- I send “/atraso” and I get the late tasks. And also if there are no late tasks I get a congratulation message.
The problem with the IF Statement
And I can get the first part of all commands, if my “IF statement” return positive, but I can’t get an answer if there is no task.
I tried many ways to make this work, but I still don’t get a response.
I ready a lot of pages of tutorials on internet, but nothing helped me to understand how works the “IF” in n8n.
Right below you can see my workflow and someone knows how to make it works properly, please help me.
It’s just a personal use bot, but I realy want to make this work.
My workflow
Screenshots
Notion tasks to today exists:
Telegram Return
Notion tasks to today don’t exists:
No Telegram Returns
- Running n8n via [desktop app]: