You can also use IFTTT.com for the variable type flows. I realize it’s not local / preferred, but they do make it possible. [IFTTT - Home Assistant]
I also realize it’s now a paid service if you have more than 1 (2?, 3?) applets. To get around this, and FWIW, I’ve created an Execute $ Google Assistant → Home Assistant applet that passes the $ variable to HA - I can then parse that result and execute different scripts.
IFTTT portion:

And then an automation in HA to parse:
- id: '1555877822388'
alias: Webhook from IFTTT w/Execute Text
trigger:
- event_data:
action: execute
event_type: ifttt_webhook_received
platform: event
condition:
condition: template
value_template: '{{ trigger.event.data.service == ''script.ifttt_execute'' }}'
action:
- service: input_text.set_value
data:
entity_id: input_text.ifttt_execute
value: '{{ trigger.event.data.ifttt_text }}'
- service_template: '{% set text = trigger.event.data.ifttt_text.lower() %} {% if
''pool'' in text and ''fill'' in text %} {% set what = ''pool_filler'' %} {%
elif ''pool'' in text and ''put'' in text %} {% set what = ''pool_filler'' %}
{% elif ''gate'' in text and ''open'' in text %} {% set what = ''front_gate_open''
%} {% elif ''gate'' in text and ''close'' in text %} {% set what = ''front_gate_close''
%} {% elif ''set'' in text and ''alarm'' in text %} {% set what = ''set_home_alarm_click_ui''
%} {% elif ''outside lights'' in text and ''off'' in text %} {% set what = ''outside_lights_off''
%} {% elif ''pool light'' in text and ''on'' in text %} {% set what = ''pool_light_turn_on''
%} {% elif ''pool light'' in text and ''off'' in text %} {% set what = ''pool_light_turn_off''
%} {% else %} {% set what = ''do_nothing'' %} {% endif %} script.{{what}}'
I have some setup for pool filler, front gate, etc. Hope this helps and gives a different perspective on how this is possible.