The "chitchat and FAQs" guide generates warning messages

Rasa version: 2.1.3 Python version: 3.8.5 Operating system (windows, osx, …): Windows 10 Issue: The “chitchat and FAQs” guide generates warning messages

Hi. I am new to Rasa. I am trying to run the code described in Chitchat and FAQs

I do manage to get it running but it produces the following warning.

c:\workspace\py-pip-workspaces\rasa2-examples\.venv\lib\site-packages\rasa\shared\utils\io.py:93: UserWarning: Action 'utter_chitchat' is listed as a response action in the domain file, but there is no matching response defined. Please check your domain.
  More info at https://rasa.com/docs/rasa/responses
c:\workspace\py-pip-workspaces\rasa2-examples\.venv\lib\site-packages\rasa\shared\utils\io.py:93: UserWarning: Action 'utter_faq' is listed as a response action in the domain file, but there is no matching response 
defined. Please check your domain.
  More info at https://rasa.com/docs/rasa/responses

I found the following workaround but I don’t understand why it works. I added two lines to the responses section of the domain.yml, here they are:

  utter_faq:
  - text: say default
  utter_chitchat:
  - text: say default

Just for clarity here is the full domain.yml with these lines added:

version: "2.0"

intents:
  - faq
  - chitchat
  - bot_challenge

responses:
  utter_faq:
  - text: say default
  utter_faq/policy:
  - text: We charge 7 percent interest on all avian lending
  utter_faq/wisdom:
  - text: If a woodchuck could chuck wood, and no reason why it should, it would chuck all the wood that a woodchuck chucks when a woodchuck chucks the woodchuck wood.
  utter_chitchat:
  - text: say default
  utter_chitchat/ask_name:
  - image: "https://i.imgur.com/zTvA58i.jpeg"
    text: Hello, my name is Retrieval Bot.
  - text: I am called Retrieval Bot!
  utter_chitchat/ask_weather:
  - text: Oh, it does look sunny right now in Berlin.
    image: "https://i.imgur.com/vwv7aHN.png"
  - text: I am not sure of the whole week but I can see the sun is out today.
  utter_iamabot:
  - text: "I am a bot, powered by Rasa."

session_config:
  session_expiration_time: 60
  carry_over_slots_to_new_session: true

Am I doing something wrong? Or is this a known issue?

Hi @gpn1998! I suggest you to add

actions:
- utter_faq
- utter_chitchat

in your domain.yml. Actions is evertyhing your assistant can do. You can also add the other actions on this section, retrain your model and talk with it again. Hope it works :smiley:

Thanks, it does.

I met the same warning and adding retrieval utter actions does not work for me. However, the trained model works normally. Then I just ignore that warning.

1 Like