Hello Rasa community,
I’m using custom output payload as outlined here.
Here is a snippet of my domain.yml file which contains the utter_ask_howdoing:
utter_ask_howdoing:
- custom:
intent: ""
message: "I'm doing great. Glad you asked!"
response: []
type: "message"
When sending “How are you” to the bot I get this response:
[
{
"recipient_id": "eee",
"custom": {
"intent": "",
"message": "I'm doing great. Glad you asked!",
"response": [],
"type": "message"
}
}
]
That’s great because this is exactly what I want.
However, when checking the logs, I find this warning:
rasa_1 | 2019-06-20 08:10:06 ERROR rasa.core.nlg.template - Failed to fill utterance template
'{'custom': {'intent': '', 'message': "I'm doing great. Glad you asked!", 'response': [], 'type': 'message'}}'.
Tried to replace 'text' but could not find a value for it.
There is no slot with this name nor did you pass the value explicitly
when calling the template. Return template without filling the template.
rasa_1 | Traceback (most recent call last):
rasa_1 | File "/usr/local/lib/python3.6/site-packages/rasa/core/nlg/template.py", line 114, in _fill_template_text
rasa_1 | text = re.sub(r"{([^\n]+?)}", r"{0[\1]}", template["text"])
rasa_1 | KeyError: 'text'
I think it’s due to me using the ‘type’ property, is that right? How to fix it?