user12348683
user12348683

Reputation:

Defining intents and entities in RASA

What is the correct way of defining intents and entities in RASA NLU data?

  - intent: inform
    
       examples: |
    
    my name is [ny_name](name)

or

- intent: inform

my name is [my_name](name)

Upvotes: 1

Views: 753

Answers (2)

mpriya
mpriya

Reputation: 893

Yes, the intent should be of type-1. Also, be mindful of the indentation, it is very important & if anything misaligns then you will get error while execution of the bot. Attached is the example intent screenshot.

Example intent

Upvotes: 1

Brookie_C
Brookie_C

Reputation: 437

As per the latest update of Rasa (which is currently 2.x), you should be using the first one.

Upvotes: 1

Related Questions