AutoVoice Chaining Natural Language Commands

Discussion in 'AutoApps' started by JayKay, Mar 9, 2018.

  1. JayKay

    JayKay New Member

    Joined:
    Mar 9, 2018
    Messages:
    29
    Likes Received:
    0
    Hey there,

    im trying to enable some sort of quereing commands in Autovoice natural language.

    Examples:
    Turn Light A on AND Turn Light B off.
    Turn Light A on, Start my Computer and Toggle Light B.

    I thought i saw a tutorial on this some time ago, but i cant find it anymore.

    Possible solution:
    just write down any number of sentences in the natural language settings for 2 or 3 commands linked. This should be getting very messy over time.

    Another (better) idea:
    Create a intent like this: "$command AND $command"
    somehow create another natural language processing on the different commands.
    Maybe with these follow-up intents-function?

    Before i try out everything:
    Someone already achived that?
    Are there some tutorials on that matter?
    Is there a better way to do this better?

    I didnt find anything about this matter (with natural language)

    LG Jay
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Is this the tutorial? :) Unfortunately it's not possible to do what you want in a generic way. You'll always have to create specific intents for each situation. Sorry!
     
  3. JayKay

    JayKay New Member

    Joined:
    Mar 9, 2018
    Messages:
    29
    Likes Received:
    0
    Hmm.. if i just want to connect two phrases with an and, how would i do that?
    If i create an intent with
    Do $light $toggle AND $light1 $toggle1. How can i react to that in tasker? there has to be better way.

    Maybe i can process the text first with your normal voice recognization and and split it at the end and ask the natural language process for both splits?
     
  4. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Did you see the tutorial I posted? :) It shows an example.
     
  5. JayKay

    JayKay New Member

    Joined:
    Mar 9, 2018
    Messages:
    29
    Likes Received:
    0
    Sorry, following it now, but the beginning seems like its what i meant xD
     
  6. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
  7. JayKay

    JayKay New Member

    Joined:
    Mar 9, 2018
    Messages:
    29
    Likes Received:
    0
    It worked.
    Now i have to implement a logic that supports also:

    turn off the computer and turn bathroom and bedroom light on.

    But that should be no problem. Consider this thread as solved! :)
     
  8. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Awesome :D
     

Share This Page