I need to give separate answers for both language and channel in the answers. I will also add a button for replies on the web channel. I have no problems with the language slot Turkish and I get the answers. I cannot get an answer when the language is English. I see an error like the following in the logs. Can you help me?
Rasa_x_v : 0.42.6 Rasa_v: 2.8.11 Rasa_sdk_v: 2.8.2
2024-01-09 10:46:28 ERROR rasa.core.processor - Encountered an exception while running action 'utter_devices'.Bot will continue, but the actions events are lost. Please check the logs of your action server for more information.
Traceback (most recent call last):
File "/opt/venv/lib/python3.8/site-packages/rasa/core/processor.py", line 772, in _run_action
events = await action.run(
File "/opt/venv/lib/python3.8/site-packages/rasa/core/actions/action.py", line 283, in run
message = await nlg.generate(self.utter_action, tracker, output_channel.name())
File "/opt/venv/lib/python3.8/site-packages/rasa/core/nlg/response.py", line 120, in generate
return self.generate_from_slots(
File "/opt/venv/lib/python3.8/site-packages/rasa/core/nlg/response.py", line 134, in generate_from_slots
self._random_response_for(utter_action, output_channel, filled_slots)
File "/opt/venv/lib/python3.8/site-packages/rasa/core/nlg/response.py", line 100, in _random_response_for
suitable_responses = self._responses_for_utter_action(
File "/opt/venv/lib/python3.8/site-packages/rasa/core/nlg/response.py", line 52, in _responses_for_utter_action
conditional_responses = list(
File "/opt/venv/lib/python3.8/site-packages/rasa/core/nlg/response.py", line 56, in <lambda>
and self._matches_filled_slots(
File "/opt/venv/lib/python3.8/site-packages/rasa/core/nlg/response.py", line 35, in _matches_filled_slots
name = constraint["name"]
KeyError: 'name'
response in domain.yml
utter_devices:
- condition:
- name: language
type: slot
value: en
- type: channel
value: web
buttons:
- title: Devices
type: web_url
url: /devices
text: You can access the Devices page by clicking the devices tab from the menu bar.
- condition:
- name: language
type: slot
value: en
- type: channel
value: mobil
text: You can view your devices from the places where they are registered.
- channel: web
buttons:
- title: Cihazlar
type: web_url
url: /devices
text: Menü çubuğundan cihazlar sekmesine tıklayarak, Cihazlar sayfasına ulaşabilirsiniz.
- channel: mobil
text: Cihazlarınızı, kayıtlı oldukları mekanlardan görüntüleyebilirsiniz.