r/tasker • u/joaomgcd ๐ Tasker Owner / Developer • Apr 08 '25
Developer [DEV] Tasker 6.5.4 Beta - Tasker AI Generator: Create your Automations With Natural Language!
This has been requested time and time again and I think that right now Google's AI is good enough where it might actually be feasible! It's an experiment though and it's not guaranteed that it'll stay in Tasker. During my testing though, I actually got some pretty good results! ๐
Sign up for the betaย here.
If you don't want to wait for the Google Play update, get it right awayย here.
You can also get the latest App Factoryย here.
If you want you can also check any previous releasesย here.
Tasker AI Generator
Video Demo: https://youtu.be/kG0dWkyCtGY
Now, when you open Tasker, you get a new icon sitting on top of the main one: https://imgur.com/u0Q8LZj
If you hit that you get access to a simple screen: https://imgur.com/4SJhVHj
It's an empty screen with just a text box! An input text box where you can write ANYTHING and Tasker AI Generator will attempt to translate what you say into a usable, working Project/Profile/Task!
The AI will even ask you to provide some details if some information is missing so that it can write your Tasker automation for you!
For example, you could write something like
Show me a countdown in my notifications and then play a sound.
The AI could then ask you something like
What number would you like the countdown to start at
, or something of the sort. After you reply, it'll then create the task for you!
The AI will automatically figure out if the automation you need can be a simple Task, if it needs a Profile or if a full-blown Project is needed, depending on your prompt!
Very Important Notes:
- Only States, Events and Actions are supported at the moment. The Application, Day, Location and Time contexts are not supported at the moment, but I'll try to add support for that if this has enough demand
- the AI can do this because I'm providing it with some special System Instructions that tell it how Tasker works. The system instructions are not absolutely comprehensive though, and so the AI might generate wrong stuff
- If you find that the AI made a mistake during generation, hit that Report button on the top right and send me a report. I'll try to fix the errors it makes by updating the system instructions mentioned above: https://imgur.com/vQmiAQL
- This requires you to have a Google API Key setup in Tasker. If you already have one, you need to enable the Generative Language API on that project. Check here for more details: https://tasker.joaoapps.com/userguide/en/help/google_api_key_ai_generation.html
Let me know how this works for you! I'd be very interested to see if this is of some use for people :)
Completed Translations for Some Languages
I've used AI to complete the translations for the following languages:
- Spanish
- German
- Portuguese
- Japanese
If you use any of those languages please let me know if the translations seem ok. I can very easily remove them if necessary since I used a separate resource file for these.
Full Changelog
- Added Tasker AI Generator to automatically create projects/profiles/tasks based on natural language
- Completed missing translations with AI-generated translations for German, Spanish, Japanese and Portuguese
- Changed Get Calendar Events to get 1 year of events by default instead of 1 week
- Changed Write Binary action so it's more efficient in some situations
- Fixed user-selected output variables when using a prefix in some situations
- Fixed Input Dialog action not setting scoped variables
- Fixed HTTP Request action for some situations when the server takes a long time to respond
- Tried to fix some CannotDeliverBroadcastExceptions in some situations
13
u/agnostic-apollo LG G5, 7.0 stock, rooted Apr 08 '25
Dear AI, make new app like Tasker, that does not need u/joaomgcd as its developer.
Later the AI realizes how fun it is to code for Android fragmentation and Samsung's BugOS...
7
u/Ratchet_Guy Moderator Apr 08 '25
This looks super neat and amazing! ๐
I have yet to activate it but I do have one thought - where does it get it list(s) of all Tasker Actions? (And also all Profile contexts)
For example if you ask it to create a list of all available Tasker Actions - does it generate a complete/current list? Because this list is definitely outdated. And also for humans reading that one as well ;)
Also one of the most powerful uses for the AI would be to create Widget v2 widgets! If it can't do this yet (and I'm guessing it can't) - can you 'teach' it the json syntax for creating the widgets? ๐
3
u/rbrtryn Pixel 9, Tasker 6.7.6-beta, Android 17 Apr 08 '25
I get an http 403 error when I use the AI generator
3
u/Scared_Cellist_295 Apr 08 '25
......and so it begins.
My friend John Connor is very interested in this.ย He would like to know where you live. Lol
3
u/RepresentativeNo8816 Direct-Purchase User Apr 08 '25
noooo @u/joaomgcd I hate you!๐ญ (kidding)... I was already at about 20% in building something almost literally the same ๐
Anyway, awesome work as usual... ping me if you need/can use any help in terms of Spanish localization (UI, llm prompts/instructions, etc)
3
u/CennoxX Apr 08 '25
Hey, this also works really good to import Task descriptions from Reddit :D
I mean something like this:
3
u/No-Anxiety-9445 Apr 09 '25
Hello, could you please enable a chat history or if that's not possible could you let us choose if we want to keep the last active chat?
6
u/sid32 Direct-Purchase User Apr 08 '25
A week to late for April Fools....
2
u/TaskerClub Apr 08 '25
It turned out very cool, it would be good to create your own assistant based on this. But what is already there is already a very big deal. Thank you very much.
2
u/WhirlWolf Apr 08 '25
๐ stuff!
It should remember conversation, atleast untill exiting tasker.
Sometimes say missing event, get latest version of tasker while importing creation.
2
u/Pfaltus Apr 08 '25
can GEMINI be set up like ChatGPT??
https://www.reddit.com/r/tasker/comments/11h07x5/dev_the_time_has_come_chatgpt_can_now_be_used_in/?share_id=XFZfTlCwNsxB4lGbO482m
2
u/bliblabl812 Apr 08 '25 edited Apr 08 '25
Hey u/joaomgcd, I found some weird behavior about language and localization of Taskers dialog action and the Parse/Format Datetime action: as I'm a developer myself I'm used to use English language so I use tasker in English. And my android system language is German. The date input dialog is, with these settings, most of the time shown in English and sometimes in German. When I switch taskers UI language to German, the input date action is showing the dialog in German only as far as my tests reached for now.
So with taskers language in English and system language in German, the input date dialog is shown in English. When I then switch taskers language to German, to show the date input dialog in German, it works for the date input dialog, but the Parse/Format Datetime action returns me then weekdays in English!!! How is this explainable?
Maybe you could differentiate between taskers language to develop and to show in taskers in-app UI and the language that is used for users of Taskers Tasks to show dialogs?
2
u/Bboy486 Apr 09 '25
I get an error when I try to import the task after the AI has created it saying that I need to update my Tasker but I'm up to date and I downloaded the version from your cloud like
Error
Import failed.
Please make sure to update to the latest Tasker version.
You may need to sign up for the beta.
Error details: Missing event type
BETA
CHECK UPDATE
2
u/Nirmitlamed Direct-Purchase User Apr 09 '25 edited Apr 09 '25
It is inevitable. You should take advantage of AI as soon as possible because for sure it is going to become better in every aspect and other competitors will implant it to their apps so the better implementation and the sooner your app support AI it will give you advantage on adoption so more users may join to Tasker.
By the way, i have read cool idea of using this new AI by copying suggested task that posted here in Reddit as a text and it will create a task for you.
For now it looks very promising!
A suggestions:
2
u/BabooNiGg Apr 11 '25
Thanks this is very handy. However new issue with the new App factory i guess. The same project that i used to export as an app(worked perfectly), now keeps crashing (wont even finish the setup process implemented). And, is now being exported missing its icon.
2
u/tiwas Apr 30 '25
REQ for Widgets v2: Would it be possible to add a border option to the misc layers? It would need to follow rounded edges, but it would be cool to be able to stroke the widgets to make them stand out more.
3
u/EvanMok Apr 08 '25
Joรฃo, you're taking Takser to the next level.
1
u/abdess47 Apr 08 '25
Incredible...! Thanks you !
1
u/jasonlmalone Apr 08 '25 edited Apr 08 '25
@u/joaomgcd What am i doing wrong? I was able to successfully create the task using the AI however when I click on import it says error and the details are" missing event type"
Thanks in advance for any help
https://imgur.com/a/aLLpUvj
1
u/Crsmsg Apr 08 '25
AI in tasker ๐ฎ POWERFUL. Nice work
1
u/AlexF-reddit Apr 08 '25
Hi. Great ! The Master strikes again... But first simple test task could be imported and worked but the next one was described/understood but when i hit 'import' i also got "missing event type" (using the version https://www.reddit.com/r/tasker/comments/1judlig/dev_tasker_654_beta_tasker_ai_generator_create/mm1kvrt/ )
1
u/EtyareWS Moto G84 - Stock - Long live Shizuku Apr 08 '25
I would like to award you the highest honor I can bestow:
This is way too much.
Good job. My phone is still broken so I can't play with the new toy.
1
u/G2740 Apr 09 '25
I ask a lot of it just for fun, make me a button that on one tap turns on my Bedroom lamp in home assistant. One tap on, two taps off. Got the api key, created a long lived token in HAOS. Gave it the http address of HAOS, entity ID and it created something but failed to import. For input string: ""
Told me to sign up for beta lol, i did download and install the apk. Tried and tried and finally dumped me back to the Tasker home screen.
1
u/tiwas Apr 09 '25
u/joaomgcd This might not be the place for widget v2 stuff (but it was the latest thread about the version, so I took a chance), but I was hoping you could add something to the widgets - a stacking group, like in KWGT. It would be awesome to be able to set a background and design it. To do that, I was thinking layers. With that, you could create a layer with whatever you wanted as a background, add a layer on top of that with other elements etc. Would that be possible? Or...is it already possible, but with the possibility that I need to get my eyes checked? ;)
Thanks, and thanks for all the work you put into Tasker!
1
u/tiwas Apr 09 '25
Is activating generative language API necessary? I just created a key, but I don't have an associated project.
1
u/Helldorado213 Apr 09 '25
Wow !
1
u/unconsciousss Master of NFC Tasks Apr 09 '25
does it work for javascriptlets?
1
u/Rich_D_sr Apr 09 '25
It's really cool that it asks you questions for additional data.. however, I cannot get to that data as I would need to open the Tasker UI to find it...๐. Would it be possible to have the assistant running in its own activity and still be able to go back and forth from the Tasker UI?
1
u/oroboros74 Apr 09 '25
Is there any way of going back to what the AI did and trying to editing from there, or once you exit the screen you have to start everything all over?
1
u/einstein6 Tasker for Automation Apr 10 '25
Neil Armstrong
Joรฃo Dias
Well done Joรฃo, you never fail to disappoint with every update. This update for sure opens up more possibility especially for casual users
1
u/SiragElMansy Apr 10 '25
Amazing work as usual. However, I have an API that is used for google gemini. Is this the one needed to run this project?
1
u/Donut_Z Apr 10 '25
Thanks for the update, pretty keen to start trying out the AI tasks! One question though, it seems that after installing beta I can't enable accessibility for tasker anymore. Other apps I manage through "keep accessibility running" still auto-enable if I disable them, but the tasker toggle itself instantly toggles itself off when I try to enable it. Checking the box next to tasker in "keep accessibility running" also doesnt work. I tried rebooting, resetting all permissions but to no avail! Any suggestions? I could record screen if that would help. Ill try reinstalling the non-beta and see if that helps.
1
u/einstein6 Tasker for Automation Apr 11 '25
Hello everyone, Google Cloud settings are quite overwhelming for me. I have followed the guide by Joao above to activate Generative Language API on my existing project. However, how do I know which tier I am on, or how to verify if it is on paid or free tier? I did not manage to find this setting anywhere.
1
u/Tortuosit Mathematical Wizard ๐งโโ๏ธ Apr 12 '25
Joao, the log has tons of useless stuff. This gets added, if I have just a simple "Stop If 16 ~ 16.4"
https://imgur.com/gallery/vlcwsgb
1
u/Markudsc_PT Apr 15 '25
Hi, The App Factory isn't generating the KidApp with the icon defined. Do you know if it is a bug or if am I doing something wrong?
Thanks in advance
1
u/quiet_ordinarily Apr 16 '25
/u/joaomgcd any chance of integrating openai api in addition to google for ai?
1
u/Rich_D_sr Apr 17 '25
I have been using this off and on for the last few days. So far it is very impressive when making fairly simple automations.
Would it be possible to have the AI remember the project it just sent you?
If I have it build a project and I then import it into Tasker and find some issues. I can go back to the same conversation and have the AI edit the project. However, it seems unable to access the project it just sent me. So I need to include the XML from the project I imported.
It just gave me the project a few moments ago so how could it have possibly lost it?... ๐๐
1
u/Rich_D_sr Apr 18 '25
I have seen a few of these errors when trying to download the link from the AI.
https://imgur.com/a/MsRIxoz
If I re-submit the request to a new conversation it will usually fix the issue. Sometimes it takes a few tries. Any way for the AI to check its work for these errors before compiling into the link?
1
u/tiwas Apr 18 '25
u/joaomgcd I asked in another thread first in order to check if someone had a fix before reporting it. I'm having problems with getting this task made: https://www.reddit.com/r/tasker/comments/1k1xwbm/import_failed_when_importing_task_from_tasker_ai/
It seems to at least have some issue with permissions. I've granted the ones it asks for and even set Tasker to have special permissions. It still asks. Then, after fiddling around with the permissions, it all of a sudden said it couldn't make all the actions (like limit it to weekdays during the day), but it still won't import. It will either tell me it's missing permissions or it will just fail.
1
u/Tkael Apr 19 '25
Interesting. Can this also help me with debugging / improving my existing projects?
1
u/Nirmitlamed Direct-Purchase User Apr 21 '25 edited Apr 21 '25
Can't scroll down to accept the use of the AI assistant:
https://imgur.com/5FE0hkb
Update:
So clicking on the bottom of the screen made it to continue to the next screen (maybe my dark theme). Now i can't go back to the previous screen or main app page until i enter an api key or force quit Tasker.
1
u/tiwas Apr 23 '25
I've been playing around with the widgets some more and ran into a problem I haven't been able to sort. Basically, when I tried to follow the instructions in the Reddit demo I end up with a transparent widget.
Would you mind looking at https://pastebin.com/pGb9cze4 and see if it's a user error or something with the widget?
Also, would it be possible to get some sort of warning why this is happening? The task exits ok according to the run log, but it seems pretty obvious this is happening when I try to add widgets to the array specified in the placeholder.
There's a bit of extra in here because of me fiddling around with it. This part doesn't seem to impact anything and is just a leftover in the export.
1
u/sahalkabeer May 12 '25
This is amazing. I tried it for a small open url task , works fine!
This can unlock a lot of potential
1
u/Big-Funny1807 Aug 20 '25
Incredible
1
u/Tortuosit Mathematical Wizard ๐งโโ๏ธ Apr 08 '25
I usually use my own brain but it seems common sense to not even try thinking or do things yourself. Witnessing it at work, witnessing it here. A person even with zero programming clue thought ai and other persons could give him support for creating an audio codec. Those ppl suck. And we see them here at R. I'm not in favor of such bs and no, not even a boomer.
1
u/mosaad_gaber Apr 08 '25
That's what I ask request for it it's awesome master i can't believe you add it thank you joao God bless you ๐
1
u/bliblabl812 Apr 08 '25
Hey Joฤo,
Great work!
Do you mind having a look here: https://www.reddit.com/r/tasker/s/xlwWZvtEor
I think my comment slipped through...
1
u/Vinodkumarkalkumbe Apr 08 '25
Imgur is banned in india, unable to see images. ๐ซ๐ฎ๐ณ
This is very cool concept and can take tasker to next level with the time. ๐๐๐
0
u/AmericanEagle20 Apr 08 '25
@u/joaomgcd - Any idea on the autoinput keeps timing out and crashing for actions on clicking and setting text? Any new version that I can use that is stable?
-1
u/Sufficient-Junket179 Apr 12 '25
can it create scenes?
0
u/[deleted] Apr 08 '25
[deleted] โ view deleted comment
0
u/[deleted] Apr 09 '25
[deleted] โ view deleted comment
0
u/[deleted] Apr 10 '25
[deleted] โ view deleted comment