Skip to content

Add original message as dialogflow_query to parameters#15304

Merged
fabaff merged 1 commit intohome-assistant:devfrom
quazzie:patch-1
Jul 7, 2018
Merged

Add original message as dialogflow_query to parameters#15304
fabaff merged 1 commit intohome-assistant:devfrom
quazzie:patch-1

Conversation

@quazzie
Copy link
Copy Markdown
Contributor

@quazzie quazzie commented Jul 5, 2018

Description:

Add original message from dialogflow to the parameters as dialogflow_query so you can access for example sessionId as {{ dialogflow_query.sessionId }} in intent templates.
Another example is contexts, access them like {{ dialogflow_query.result.contexts[0].test }}

Related issue (if applicable): fixes #12437

Checklist:

  • The code change is tested and works locally.

So you can access for example sessionId as {{ dialogflow_query.sessionId }} in intent templates.
@ghost ghost added the in progress label Jul 5, 2018
Copy link
Copy Markdown
Member

@fabaff fabaff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me 🐦

@fabaff fabaff merged commit bd62248 into home-assistant:dev Jul 7, 2018
@ghost ghost removed the in progress label Jul 7, 2018
awarecan pushed a commit to awarecan/home-assistant that referenced this pull request Jul 16, 2018
)

So you can access for example sessionId as {{ dialogflow_query.sessionId }} in intent templates.
@balloob balloob mentioned this pull request Jul 20, 2018
girlpunk pushed a commit to girlpunk/home-assistant that referenced this pull request Sep 4, 2018
)

So you can access for example sessionId as {{ dialogflow_query.sessionId }} in intent templates.
@home-assistant home-assistant locked and limited conversation to collaborators Dec 10, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Process DialogFlow sessionId

3 participants