How to create default response?

I want to have default response if my user writes something in different language or ask about some specific car part I want to response him “I do not understand, ask me only about planes”

You can use NLU fallback for this or create an out of scope intent as shown in the rasa-demo bot here.

1 Like

thanks for replying but I still have a problem

I followed the example in my config.yml I have:

pipeline:
- name: FallbackClassifier
  threshold: 0.7

from: pipeline: null

in rules.yml I wrote:

- rule: Ask the user to rephrase whenever they send a message with low NLU confidence
  steps:
  - intent: nlu_fallback
  - action: utter_please_rephrase

and in domain.yml I have:

  utter_please_rephrase:
  - text: "I'm sorry, I didn't quite understand that. Could you rephrase?"

I wrote first “rasa train” then “rasa run actions” in second terminal “rasa shell”

I have this error: ERROR asyncio - Task exception was never retrieved future: <Task finished name=‘Task-33’ coro=<RestInput.on_message_wrapper() done, defined at C:\Users\MYPC\Desktop\holder\vsCode\rasaNLU2\pythonProject.venv\lib\site-packages\rasa\core\channels\rest.py:37> exception=GraphComponentException(‘Error running graph component for node run_FallbackClassifier0.’)>

Fallback and Human Handoff (rasa.com) what is the problem?

I found that my main problem whas wrong config.yml:

pipeline:
- name: WhitespaceTokenizer
- name: RegexFeaturizer
- name: LexicalSyntacticFeaturizer
- name: CountVectorsFeaturizer
- name: CountVectorsFeaturizer
  analyzer: char_wb
  min_ngram: 1
  max_ngram: 4
- name: DIETClassifier
  epochs: 100
- name: EntitySynonymMapper
- name: ResponseSelector
  epochs: 100
- name: FallbackClassifier
  threshold: 0.8
  ambiguity_threshold: 0.1

policies: null