From 028b950bb65d54efd4526517b4dd10d74ed90d92 Mon Sep 17 00:00:00 2001 From: Martijn van der Pol Date: Fri, 22 Dec 2023 10:55:07 +0100 Subject: [PATCH] Update intent_script docs to use correct service call (#30461) --- source/_integrations/intent_script.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/_integrations/intent_script.markdown b/source/_integrations/intent_script.markdown index 7c60a76dc92..9cf1b9f6817 100644 --- a/source/_integrations/intent_script.markdown +++ b/source/_integrations/intent_script.markdown @@ -98,7 +98,7 @@ conversation: intent_script: EventCountToday: action: - - service: calendar.list_events + - service: calendar.get_events target: entity_id: calendar.my_calendar data_template: @@ -108,7 +108,7 @@ intent_script: - stop: "" response_variable: result # and return it 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 %}