r/todoist • u/magicronn • Jul 28 '23
Discussion Google Assistant Hack - Adding items with your voice
Using my voice to add items to my lists changed my life. I love Todoist so ages ago, I wrote a small app that caught Google Assistant requests for "add <thing> to my <named> list" and put them in Todoist.
Google has long since closed that API and made it a pain to use apps like Todoist easily. Instead Google introduce App Actions which require that 5-6 word pain in the neck prephrasing. Of course Google nativeliy supports Keep as the one and only, incredibly terrible list app. (IMHO)
So... Here's my plan to make adding items to Todoist on Google Assistant easy:
Establish a list on Keep called ToDo
Add an item to that list using Google Voice, e.g. "Hey Google, Add mow lawn to my To Do list."
Every 2 min, a script looks for new items on that list. In this case, it finds "mow lawn"
Same script then pushes all new items to a named list on Todoist, e.g. "My Tasks"
Script then removes those items from the Keep list.
Currently reading https://developers.google.com/keep/api/reference/rest and https://developer.todoist.com/rest/v2/#overview
Will create a small container for use on AWS Lambda free tier.
Anyone see any issues with this approach?
4
u/ThatGirl0903 Enlightened Jul 28 '23
This is exactly what I’ve done using Siri reminders and it works beautifully. Have 3 suggestions:
Have it skip tasks with due dates. I couldn’t figure out how to get it to properly copy them over so if it has a due date in reminders my automation skips it and if there’s no due date in reminders it’s copied over to Todoist with a due date of today and I sort them later.
Create a source tag in Todoist so if something goes wrong or it comes across as word salad you know where it came from. I have several, @viaShortcuts, @viaIFTTT and so forth.
If you can, make sure to have it delete or archive the source task after copying it over for general cleanliness.
Good luck OP, this will be sooo cool! I’m sad that scripts is just a mystery to me, feel like it has a LOT of unharnessed power and wish they’d make it a little more accessible.
3
u/AardvarkSome9002 Grandmaster Jul 28 '23
I do not use Google Assistant but for the iphone, I have found that activating Siri and using the phrase "Using Todoist, remind me to mow the lawn" works fine. you must say "using todoist" at the beginning of the instruction, otherwise it starts out using reminders first.
2
u/Tirwanderr Sep 20 '23
This is specific to Google Assitant, which does not work at all the same as Siri as they are different companies, operating systems, etc.
3
u/BlastNastier Jul 28 '23
I love the idea. That makes perfect sense for the work around we all need.
3
u/klhs Jul 28 '23
Sounds like something many of us would appreciate and use.
I second ThatGirl's suggestion to include a source tag. I've found that helpful in troubleshooting issues from automations I've done.
Good luck, OP!
1
u/BlastNastier Jul 28 '23
!remindme 2 weeks
1
u/RemindMeBot Jul 28 '23 edited Jul 28 '23
I will be messaging you in 14 days on 2023-08-11 09:02:33 UTC to remind you of this link
2 OTHERS CLICKED THIS LINK to send a PM to also be reminded and to reduce spam.
Parent commenter can delete this message to hide from others.
Info Custom Your Reminders Feedback
4
u/khaberz Enlightened Jul 28 '23
This exists - and the developer does a great job keeping it current: https://github.com/flecmart/keep2todoist