leon icon indicating copy to clipboard operation
leon copied to clipboard

Custom Commands

Open squirrelboot opened this issue 6 years ago • 6 comments

Hello,

I have seen many of these kinds of AI/Assistants.

What I am always looking for though, is a way to get them to perform specific actions on specific commands. I never see documentation on them. This is the kind of thing I mean:

"Leon, turn the lights on in the kitchen." == Leon will execute a pre-defined script I have to do this task. "Leon, wake up MOHAWK." == Leon can execute a pre-defined script which sends a magic packet to a remote PC named MOHAWK. "Leon, open my development tools." == Executes a simple batch file which launches App1, App2, App3.

squirrelboot avatar Feb 21 '19 14:02 squirrelboot

This sounds like an excellent idea. Virtual Assistants are lacking in this feature and on the chance I can figure out how Leon works, I'll try adding it.

nogarcia avatar Feb 21 '19 23:02 nogarcia

Hello @squirrelboot,

Thanks for your suggestion. This is indeed something that I would like to do with Leon later on. And Actually, for the:

Leon, open my development tools.

This is something that can be done easily today already. You can simply create a new Leon's module and set the paths of the tools you want to open in the configuration file of a Leon package.

Regarding the two other commands, we can technically do it, but it'll be quite tricky, so better to wait for this improvement.

@Shrubhog, contributions are very welcome 😉

louistiti avatar Feb 22 '19 00:02 louistiti

How can ı do this ? or is it possible ı dont know but its very good idea and basic logic is like this Actionkeyword(Run,Open,Wakeup etc)+Keywords(pycharm,terminal,googlecloud,asw)+followingProject(Project1,MailServer,create game server )+config(specific config or config script etc) At first starting this module just define keyword and script match and after run command (to be sure that desired keyword) can be use this model start leon source code /// do you want to open leon source code/// Yes

On Fri, 22 Feb 2019 at 02:45, Shrubhog [email protected] wrote:

This sounds like an excellent idea. Virtual Assistants are lacking in this feature and on the chance I can figure out how Leon works, I'll try adding it.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/leon-ai/leon/issues/34#issuecomment-466215330, or mute the thread https://github.com/notifications/unsubscribe-auth/AcoyctZ-KN_WgPsv6HE66fBtMurE6cWZks5vPy-YgaJpZM4bHh2A .

nto4 avatar Feb 22 '19 00:02 nto4

For commands like

"Leon, turn the lights on in the kitchen." == Leon will execute a pre-defined script I have to do this task.

It might be better to integrate with tools such as OpenHAB? Or shall I open a new issue for OpenHAB?

kominoshja avatar May 04 '19 14:05 kominoshja

Not sure that OpenHAB will be used or not. For the moment I would consider to implement a whole dedicated system for Leon. I've added few notes on the roadmap that you can check it out.

louistiti avatar May 04 '19 15:05 louistiti