How can Rasa Form realize customer_name when user answers the question "What's your name?"?

Hi all, I have trouble in make Rasa Form understand the answer of user when I ask “What’s your name?”. It’s my nlu.yml

- intent: inform
  examples: |
    - My name is [ABC](customer_name)
    - I am [mai](customer_name)
    - Call me [Mai](customer_name)

My form only realizes customer_name when it’s similar with the names were trained before, and another names are not. So, how can I train my model to help Rasa knows exactly customer_name when user inputs? Thanks a lot <3.

Welcome to the forum, Mai! :slight_smile:

You can use lookup tables such as this one.

Also look at from_text mapping.

1 Like

Thanks @ChrisRahme. But, although I tried using from_text mapping, it didn’t work :joy: With lookup tables, I scare that it will miss some cases which aren’t listed in nlu.

1 Like

Oh, can you show what you did with the mapping?

I don’t think you have to worry about that! Look how big the table is! Names in all languages!

And even if a name isn’t listed there somehow, if another one is close enough, it will detect it.

@mai_bui please you can watch this video tutorial : Custom Queries for Rasa Forms | Rasa Tutorials - YouTube and even the related GitHub repo : https://github.com/RasaHQ/rasa-form-examples/tree/main/04-asking

You can even see all the related form examples with the code in the references Github repo and even the video on Rasa Youtube channel. Good Luck!

1 Like

When I use from_text mapping, it didn’t show any error, but rasa answered wrong questions. I also tried with lookup tables, by the the time, there aren’t mistakes. I’m just scare about it in the future.

1 Like