Update intent_script docs to use correct service call (#30461)

This commit is contained in:
Martijn van der Pol 2023-12-22 10:55:07 +01:00 committed by GitHub
parent 12bc5e1edd
commit 028b950bb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -98,7 +98,7 @@ conversation:
intent_script: intent_script:
EventCountToday: EventCountToday:
action: action:
- service: calendar.list_events - service: calendar.get_events
target: target:
entity_id: calendar.my_calendar entity_id: calendar.my_calendar
data_template: data_template:
@ -108,7 +108,7 @@ intent_script:
- stop: "" - stop: ""
response_variable: result # and return it response_variable: result # and return it
speech: speech:
text: "{{ action_response.events | length }}" # use the action's response text: "{{ action_response['calendar.my_calendar'].events | length }}" # use the action's response
``` ```
{% endraw %} {% endraw %}