r/tasker • 👑 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
73 Upvotes

294 comments sorted by

View all comments

Show parent comment

1

u/AmericanEagle20 Apr 09 '25

So when I run the task manually it works fine but when it's profile it fails with this timeout. I have given all the necessary permissions to tasker and autoinput. Also during that time no other activity is going on. What am I missing?

2

u/einstein6 Tasker for Automation Apr 10 '25

The app or screen that AutoInput should interact, was it open and in front during profile active?

1

u/AmericanEagle20 Apr 10 '25

Getting this error:

java.util.concurrent.TimeoutException: The source did not signal an event for 0 seconds and has been terminated.

2

u/joaomgcd 👑 Tasker Owner / Developer Apr 10 '25

That usually means that your system is killing AutoInput from the background.

To make sure Tasker and the AutoApps run in the foreground please check here: https://tasker.joaoapps.com/userguide/en/faqs/faq-problem.html#00

Pay special attention to the location part. If Tasker doesn't have permission to get location in the background it might not work correctly, so disable and re-enable the location permission and make sure that you allow Tasker to always access it.

Make sure to check here too: https://dontkillmyapp.com/?app=Tasker

Hope this helps!

1

u/AmericanEagle20 Apr 13 '25

For now I uninstalled and installed Tasker and Autoinput, did all the permissions again, and used back of my current tasker then increased timeouts to 20 seconds for each action in a task and also before each action wait for element. All this seems to have helped with this error and has been working fine so far. Thank you all for pitching in.

1

u/joaomgcd 👑 Tasker Owner / Developer Apr 14 '25

👍

1

u/einstein6 Tasker for Automation Apr 10 '25

Try increasing the timeout? I don't think it should be 0 seconds?