Forms | Rules | Entity from_text | Not able to make it work

hi - I am trying to write a very simple bot by using a form and a single entity. However, it seems the combination of slots - from_entity and from_text is not working. Would appreciate if someone can help and suggest how to achieve this.

Rasa Version      :         3.4.0
Minimum Compatible Version: 3.0.0 
Rasa SDK Version  :         3.4.0 
Python Version    :         3.8.11
Operating System  :         Windows-10-10.0.19044-SP0

Here is my nlu.yml

version: "3.1"
- intent: greet
  examples: |
    - hey
    - hello
    - hi
    - hello there
    - good morning
    - good evening
    - moin
    - hey there
    - let's go
    - hey dude
    - goodmorning
    - goodevening
    - good afternoon

- intent: check_component_status
  examples: |
    - is [daemonA](component) up
    - is [daemonA](component) working
    - [daemonB](component) running
    - check [daemonB](component) service
    - what is the status of [daemonC](component)
    - check service [daemonC](component)
    - is anything wrong with [daemonD](component)
    - [daemonD](component) is running
    - [daemonE](component)
    - what about [daemonE](component)
    - check [daemonF](component)
    - is [daemonF](component) ok

- lookup: component
  examples: |
    - daemonA
    - daemonB
    - daemonC
    - daemonD
    - daemonE
    - daemonF

Here is my rules.yml

version: "3.1"


- rule: Welcome Message
  - intent: greet
  - action: utter_greet

- rule: Activate Component Form
  - intent: check_component_status
  - action: component_form
  - active_loop: component_form

- rule: Submit Component Form
  - active_loop: component_form
  - action: component_form
  - active_loop: null
  - slot_was_set:
    - requested_slot: null
  - action: utter_component

Here is my domain.yml

version: '3.1'
- check_component_status
- greet
- component

    - component
    - hostname

    type: text
    influence_conversation: true
    - type: from_entity
      entity: component
    type: text
    influence_conversation: true
    - type: from_text

  - text: Hi. I can help with general queries.
  - text: Please provide the component
  - text: Please enter the host name
  - text: Checking status of {component} on {hostname}

  session_expiration_time: 60
  carry_over_slots_to_new_session: true

- utter_ask_hostname
- utter_component

Here is my stories.yml

version: "3.1"


- story: happy path
  - intent: greet
  - action: utter_greet

Here is my config.yml

# The config recipe.
recipe: default.v1

# Configuration for Rasa NLU.
language: en

# # No configuration for the NLU pipeline was provided. The following default pipeline was used to train your model.
# # If you'd like to customize it, uncomment and adjust the pipeline.
# # See for more information.
  - name: WhitespaceTokenizer
  - name: RegexFeaturizer
  - name: RegexEntityExtractor
  - name: LexicalSyntacticFeaturizer
  - name: CountVectorsFeaturizer
  - name: CountVectorsFeaturizer
    analyzer: char_wb
    min_ngram: 1
    max_ngram: 4
  - name: DIETClassifier
    epochs: 100
    constrain_similarities: true
  - name: EntitySynonymMapper
  - name: ResponseSelector
    epochs: 100
    constrain_similarities: true
  - name: FallbackClassifier
    threshold: 0.3
    ambiguity_threshold: 0.1

# Configuration for Rasa Core.
# # No configuration for policies was provided. The following default policies were used to train your model.
# # If you'd like to customize them, uncomment and adjust the policies.
# # See for more information.
  - name: MemoizationPolicy
  - name: RulePolicy
  - name: UnexpecTEDIntentPolicy
    max_history: 5
    epochs: 100
  - name: TEDPolicy
    max_history: 5
    epochs: 100
    constrain_similarities: true

After I run this bot with the below user message:

status of daemonA

it is able to pick the entity component correctly. However, it is not asking for the second slot hostname. i believe as the slot is marked as from_text, it is simply taking previous user message “status of daemonA” as the input and showing me outout as below:

Checking status of daemonA on status of daemonA

Any idea s to how I can make it work in a form ?

I also observed that even if I don’t pass the entity initially and simply say:

want to check service

it asks for component. However once I provide the component it does not prompt for hostname. It just uses my last response for component as hostname as seen below.

2023-03-10 16:53:02 INFO     root  - Connecting to channel 'cmdline' which was specified by the '--connector' argument. Any other channels will be ignored. To connect to all given channels, omit the '--connector' argument.
2023-03-10 16:53:02 INFO     root  - Starting Rasa server on
2023-03-10 16:53:02 INFO     rasa.core.processor  - Loading model models\20230310-150853-rude-fusion.tar.gz...
2023-03-10 16:53:46 WARNING  rasa.shared.utils.common  - The UnexpecTED Intent Policy is currently experimental and might change or be removed in the future 🔬 Please share your feedback on it in the forum ( to help us make this feature ready for production.
2023-03-10 16:53:56 INFO     root  - Rasa server is up and running.
Bot loaded. Type a message and press enter (use '/stop' to exit): 
Your input ->  check service                                                                                                                         
Please provide the component
Your input ->  daemonB                                                                                                                               
Checking status of daemonB on daemonB
Your input ->   

Not sure why it is not prompting for hostname although I have defined -

  • hostname as required slot under component_form
  • also defined hostname in slots
  • also added a rule for activating and submitting the component_form in rules.yml

What am I missing ?

any suggestions? on first look this is looking like a bug to me ?

Anyone please ?

hostname must have already had a value. Are you resetting slots at the end of the form?

Also, you should have influence_conversation: false for all of your slots.