I wanted to try to build an assist action for adding products to a shopping list. However, it seems that custom conversation intents do not support wildcard strings. In other words, I have to define the list of possible inputs beforehand, which is not very convenient for this usecase.
I got the following working already, to illustrate my point:
In /config/custom_sentences/en/picnic.yaml
:
language: "en"
intents:
AddProductToPicnic:
data:
- sentences:
- "Add {product} to shopping list"
lists:
product:
values:
- in: "bananas"
out: "bananen"
- in: "tomatoes"
out: "tomaten"
In my main config:
intent_script:
AddProductToPicnic:
action:
- service: script.dynamic_telegram_notification
data:
message: "Adding {{product}} to shopping list!"
- service: picnic.add_product
data:
config_entry_id: "*redacted*"
product_name: "{{product}}"
speech:
text: "Adding {{product}} to shopping list!"
This works as long as I add a product from the predefined list, however there does not seem to currently be a way to use any product I want.
This is the support I would like to have added, being able to ingest any string value for the conversation intents.