custom-autotype

Custom Autotype Commands | Automate Repetitive Tasks | AI Keyboard

The Use of Custom Commands

PolyCast5 can use custom commands to automate repetitive tasks on your device. Basically, it is a specific Auto Keyboard script that gets executed whenever the AI hears a specific word.


For example, "My GitHub":

You must prefix each with "Custom" to tell the device to execute it as a custom command.

This can be super useful whenever you do something a lot. For example, I need to turn off my desktop every night, so I created a custom command that does it for me. I only need to say something like "Custom, sleep" and I can walk away! Other examples may be something like "Custom, break time" in which it pulls up your favorite show for you, or really anything.

Here's how it works:

  • One time setup (discussed later)
  • Then, simply say "custom" followed by a description of what it is for (e.g. "GitHub")
  • AI matches your description to the custom script names available
  • AI returns an index to the chosen name, then the firmware executes it over Bluetooth LE

It's as easy as that. You may have also noticed this is super similar to the way the password manager works. This is because it is! This provides a reliable way to run custom commands without anything getting misinterpreted, since the AI only finds the name and doesn't touch the payload.


Let's go over how to get this working on your PolyCast5.Β 



One-Time Setup

This is super similar to how the password manager is set up, so if you've already done that just do the same thing but with the category name "Custom". If not, just follow the steps below!


All you need to do is create an Auto Keyboard category named "Custom" and then save any custom commands that you want to be searchable to that category.


Just go to Bluetooth > Auto Keyboard > Add/Edit Script, then connect to the advertised network with your phone or PC. Once you're connected, you'll see the script editor in your browser. From here, create a new category with the "Add New" button and name it exactly "Custom", then click save. You should then see it appear below in "Existing Categories".

My custom is at index 1 since I added "Passwords" before it. Yours would be at 0 if this is your first.

While you're here, you can also create one named "Passwords" to set up the password manager. ButΒ more on that here. You can also create other categories and name them whatever you want, but only these two are built-in to be AI searchable.


Next, scroll down to "Existing Scripts" and select the category "Custom" you just created. From here you can click on any existing scripts to edit them or just click "+ Add New" to add a new one.

I have existing custom commands which I can select to edit if needed.

After clicking, you'll be brought to the "Edit Script" option and prompted to enter a name. This is the name of the specific custom command that you/the AI will use to identify which entry executes which command.


This said, give it a clear, descriptive name that you'll easily remember when speaking. I want to also point out that the beauty of AI here is that you don't have to say exactly the name of the command. AI simply picks theΒ closest one.

I'm at index 14 because I already saved 13 other commands.

So if the password name is "Break Time" for example, but you just say "Break", the AI would likely pick "Break Time" to auto-fill. So feel free to add a few easy-to-remember keywords.


After putting in the name, put the actual script as the payload and hit save. If you don't know how to write a script, there is a simple tutorial available here.

In this case, the script opens a new tab, waits 150ms, then types https://my-favorite-show and presses enter. Of course, you would replace the URL with something you actually want to search for a "break time" command. Feel free to get creative since there are a lot of possibilities:

That's it!


Happy casting!

Back to blog