AutoVoice Natural language contexts - Help please!

Discussion in 'AutoApps' started by VacuumTube, May 7, 2017.

  1. VacuumTube

    VacuumTube New Member

    Joined:
    Sep 24, 2015
    Messages:
    7
    Likes Received:
    0
    I have a natural language intent called Querytasks. It is triggered by phrases like "what are my tasks" etc. It triggers a Tasker natural language event profile that runs a task that sets a natural language context called 'tasks' with a field called 'list' that is populated with my Wunderlist task list.

    The intent has a response #tasks.list

    In order for that response value to work the intent must have an input context of 'tasks'.

    My problem is that with the input context set to 'tasks' the intent will not trigger when I make a natural language query. I can only get it to trigger if the input context is blank.

    Am I missing something here? This is driving me nuts!
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,477
    Likes Received:
    806
    Can you please export your profile and tasks' description (not xml) so I can take a look? Long-click the profile in Tasker->export description Thanks in advance
     
  3. VacuumTube

    VacuumTube New Member

    Joined:
    Sep 24, 2015
    Messages:
    7
    Likes Received:
    0
    Thanks for looking at this :)

    Profile: NL Tasks (609)
    Event: AutoVoice Natural Language [ Configuration:Commands: Query Tasks ]
    Enter: TodoAnnounce (38)
    <Version 1.3.1>
    A1: Anchor
    A2: If [ %Nexttodolist Set ]
    A3: Variable Set [ Name:%list To:%Nexttodolist Recurse Variables:Off Do Maths:Off Append:Off ]
    A4: Variable Split [ Name:%list Splitter:=== Delete Base:Off ]
    A5: Variable Join [ Name:%list Joiner:: Delete Parts:Off ]
    A6: AutoVoice Natural Language Context [ Configuration:Context Name: tasks
    Field Names: list
    Field Values: Here are your tasks: %list Timeout (Seconds):60 ]
    A7: Else
    A8: AutoVoice Natural Language Context [ Configuration:Context Name: tasks
    Field Names: list
    Field Values: You have no notable tasks for today Timeout (Seconds):60 ]
    A9: End If
     
  4. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,477
    Likes Received:
    806
  5. VacuumTube

    VacuumTube New Member

    Joined:
    Sep 24, 2015
    Messages:
    7
    Likes Received:
    0
    Thanks for that. I just have to work out whether I want the extra dialog with Home or alternatively just use Autocast speak to say the results. I have a bunch of other projects that have more complex interactions so all the extra voice steps would be a bit cumbersome.
    It's such a shame there is no way for Tasker to trigger Google Home to start listening without the need for you to speak to it first.
     
  6. e1miran

    e1miran New Member

    Joined:
    May 18, 2017
    Messages:
    6
    Likes Received:
    0
    I'm trying to achieve the same as above. I read up on the "events" functionality of api.ai (https://docs.api.ai/docs/concept-events). And appear to be able to trigger an intent without a query by running an action to send a GET request. According the json response, it looks like it triggers. But it does not speak it on my google home. Is there any way to get this to work?
     

Share This Page