Key 'intent' was not defined. Path: '/nlu/19'

version: "3.1"

nlu:
- 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: goodbye
  examples: |
    - cu
    - good by
    - cee you later
    - good night
    - bye
    - goodbye
    - have a nice day
    - see you around
    - bye bye
    - see you later

- intent: affirm
  examples: |
    - yes
    - y
    - indeed
    - of course
    - that sounds good
    - correct

- intent: deny
  examples: |
    - no
    - n
    - never
    - I don't think so
    - don't like that
    - no way
    - not really

- intent: mood_great
  examples: |
    - perfect
    - great
    - amazing
    - feeling like a king
    - wonderful
    - I am feeling very good
    - I am great
    - I am amazing
    - I am going to save the world
    - super stoked
    - extremely good
    - so so perfect
    - so good
    - so perfect

- intent: mood_unhappy
  examples: |
    - my day was horrible
    - I am sad
    - I don't feel very well
    - I am disappointed
    - super sad
    - I'm so sad
    - sad
    - very sad
    - unhappy
    - not good
    - not very good
    - extremly sad
    - so saad
    - so sad

- intent: bot_challenge
  examples: |
    - are you a bot?
    - are you a human?
    - am I talking to a bot?
    - am I talking to a human?

- intent: leave_details
  examples: |
    - My leave balance
    - Leave details
    - may i know about my leave details?
    - my name is [Debasmita](name)
    - my name is [Akoparna](name), leave details please
    - Leave details of [Ankita](name)
    - [Sana](name) , my leave details 
    - my name is [Vedant](name)
    - I would like to know you about my leave details
    - i want to know about my leave details.
    - tell me about my leave details
    - show my leave details
    - How many sick leaves have i taken this year?
    - how many leave left for this year?
    - show leave count
    - How many casual leaves have i taken this year?

- intent: applyleave
  examples: 
    - I want a leave
    - Leave 
    - apply for leave
    - How can I apply for leave?
    - I want leave for 2 days
    - I want leave for some days
    - where can I apply for leaves
    - I would like to apply for leaves
    - where to apply for leaves
    - can you tell me where to apply for leave
    - I want to apply for leave
    - show me where to apply for leaves
    - I wanna apply for a leave.

- intent: faq
  examples:
    - What are some faqs are there?
    - Tell me about some frequently asked questions 
    - faqs please
    - FAQs
    - faqs
    - F.A.Qs
    - frequently asked questions
    - Frequently asked questions

- intent: leave_types
  examples:
    - What are the types of leave?
    - leave types
    - what type of leaves can I take?
    - tell me about some leaves

- intent: holidays
  examples:
    - show me the list of holidays
    - holidays details
    - what are the holidays
    - may i know about holidays?
    - holidays list
    - show the details for holidays of the company

- intent: sl
  examples:
    - What is sick leave?
    - when can I take sick leave?
    - sick leave

- intent: cl
  examples:
    - What is casual leave?
    - when can I take casual leave?
    - casual leave

- intent: employee_id
  examples: |
    - [A101](ids)
    - [B102](ids)
    - [C103](ids)
    - [D104](ids)
    - [E105](ids)
    - [F106](ids)
    - [G107](ids)
    - [H108](ids)
    - [I119](ids)
    - [K265](ids)
    - [J765](ids)
    - [L934](ids)
    - [M7647](ids)
    - [N3456](ids)
    - [O325](ids)
    - [P9845](ids)
    - [Q349](ids)
    - [R100](ids)
    - [S593](ids)
    - [A765](ids)
    - [Q567](ids)

- intent: no_of_leaves
  examples: |
    - [1](days)
    - [2](days)
    - [3](days)
    - [10](days)
    - [12](days)
    - [4](days)
    - [5](days)
    - [6](days)
    - [7](days)
    - [8](days)
    - [9](days)
    - [11](days)
    - [13](days)
    - [14](days)
    - [15](days)
    - [16](days)
    - [17](days)
    - [18](days)
    - [19](days)
    - [20](days)

- intent: thanks
  examples:
    - Thanks
    - Thanks a lot
    - thanks
    - thanks a lot
    - thank you very much
    - Thank you very much
    - Thank you
    - thank you
    - thankie
    - thanku
    - Thanks bot
    - thanks dear
    - thank u dear
    - Thank you for your help
    - thanks for your service
    - thank you very much for your service
    - thank you so much 
    - Thank you so much
    - Thank you so much for your help
    - You helped me a lot . Thank you
    - hey thanks bro
    - thanks you helped me

- intent: complaint
  examples:
    - I want to report
    - I want to complain
    - Complain
    - report
    - complain
    - Do complain
    - do report
    - I have something secret to tell you
    - i'm angry with someone
    - need to complain for something

- intent: reports
  examples: |
    - [there is too much paper-work in this company](report)
    - [Director sir abused his employees](report)
    - [All the time,employees get salary lately](report)
    - [HR is not a good person](report)
    - [Mr. Sen slapped an employee](report)
    - [Mrs. Roy slapped an employee](report)

- intent: meeting
  examples: 
    - I want to schedule a meeting
    - Schedule a meeting for me
    - Can I schedule a meeting with HR?
    - meeting
    - schedule a meeting
    - meeting schedule

- intent: emp_id
  examples: |
    - my ID is [ABC12](id)
    - [BCD18](id)
    - [CDE21](id)
    - [PQR67](id)
    - [STG19](id)
    - [ABG45](id)
    - [GTY09](id)
    - [QWE18](id)

- intent: meet_whom
  examples: |
    - [Mr. Suresh Chowdhury](person)
    - [mr. Romil Roy](person)
    - [Mr. Satyajit Roy](person)
    - [Mr. Soham Chakraborty](person)
    - [Mr. Debabrata Dutta](person)
    - [Mr. Ambar Mukherjee](person)
    - [Miss Sonia Sengupta](person)
    - [Mrs. Sharmi Banerjee](person)
    - [Mrs. Rekha paul](person)
    - [Miss Sara Singh](person)

- intent: designation
  examples: |
    - [HR manager](post)
    - [HR](post)
    - [Accounts Head](post)
    - [Head Project Manager](post)
    - [Director](post)
    - [Chairman](post)
    - [Accountant](post)
    - [CEO](post)
    - [COO](post)

- intent: reason
  examples: |
    - [Salary Issue](rsn)
    - [Operational Review Discussion](rsn)
    - [Promotion](rsn)
    - [Creative Ideas](rsn)
    - [Team Development](rsn)
    - [Personal Issue](rsn)
    - [Others](rsn)

- intent: week
  examples: |
    - [Monday](day)
    - [Tuesday](day)
    - [Wednesday](day)
    - [Thursday](day)
    - [Friday](day)
    - [Saturday](day)

This is my NLU.yml file. I’m getting this error.

YamlValidationException: Failed to validate 'data\nlu.yml'. Please make sure the file is correct and all mandatory parameters are specified. Here are the errors found during validation:
  in data\nlu.yml:114:
      Value '['I want a leave', 'Leave', 'apply for leave', 'How can I apply for leave?', 'I want leave for 2 days', 'I want leave for some days', 'where can I apply for leaves', 'I would like to apply for leaves', 'where to apply for leaves', 'can you tell me where to apply for leave', 'I want to apply for leave', 'show me where to apply for leaves', 'I wanna apply for a leave.']' is not of type 'str'. Path: '/nlu/8/examples'
  in data\nlu.yml:114:
      Value 'I want a leave' is not a dict. Value path: '/nlu/8/examples/0'
  in data\nlu.yml:114:
      Value 'Leave' is not a dict. Value path: '/nlu/8/examples/1'
  in data\nlu.yml:114:
      Value 'apply for leave' is not a dict. Value path: '/nlu/8/examples/2'
  in data\nlu.yml:114:
      Value 'How can I apply for leave?' is not a dict. Value path: '/nlu/8/examples/3'
  in data\nlu.yml:114:
      Value 'I want leave for 2 days' is not a dict. Value path: '/nlu/8/examples/4'
  in data\nlu.yml:114:
      Value 'I want leave for some days' is not a dict. Value path: '/nlu/8/examples/5'
  in data\nlu.yml:114:
      Value 'where can I apply for leaves' is not a dict. Value path: '/nlu/8/examples/6'
  in data\nlu.yml:114:
      Value 'I would like to apply for leaves' is not a dict. Value path: '/nlu/8/examples/7'
  in data\nlu.yml:114:
      Value 'where to apply for leaves' is not a dict. Value path: '/nlu/8/examples/8'
  in data\nlu.yml:114:
      Value 'can you tell me where to apply for leave' is not a dict. Value path: '/nlu/8/examples/9'
  in data\nlu.yml:114:
      Value 'I want to apply for leave' is not a dict. Value path: '/nlu/8/examples/10'
  in data\nlu.yml:114:
      Value 'show me where to apply for leaves' is not a dict. Value path: '/nlu/8/examples/11'
  in data\nlu.yml:114:
      Value 'I wanna apply for a leave.' is not a dict. Value path: '/nlu/8/examples/12'
  in data\nlu.yml:112:
      Key 'intent' was not defined. Path: '/nlu/8'
  in data\nlu.yml:130:
      Value '['What are some faqs are there?', 'Tell me about some frequently asked questions', 'faqs please', 'FAQs', 'faqs', 'F.A.Qs', 'frequently asked questions', 'Frequently asked questions']' is not of type 'str'. Path: '/nlu/9/examples'
  in data\nlu.yml:130:
      Value 'What are some faqs are there?' is not a dict. Value path: '/nlu/9/examples/0'
  in data\nlu.yml:130:
      Value 'Tell me about some frequently asked questions' is not a dict. Value path: '/nlu/9/examples/1'
  in data\nlu.yml:130:
      Value 'faqs please' is not a dict. Value path: '/nlu/9/examples/2'
  in data\nlu.yml:130:
      Value 'FAQs' is not a dict. Value path: '/nlu/9/examples/3'
  in data\nlu.yml:130:
      Value 'faqs' is not a dict. Value path: '/nlu/9/examples/4'
  in data\nlu.yml:130:
      Value 'F.A.Qs' is not a dict. Value path: '/nlu/9/examples/5'
  in data\nlu.yml:130:
      Value 'frequently asked questions' is not a dict. Value path: '/nlu/9/examples/6'
  in data\nlu.yml:130:
      Value 'Frequently asked questions' is not a dict. Value path: '/nlu/9/examples/7'
  in data\nlu.yml:128:
      Key 'intent' was not defined. Path: '/nlu/9'
  in data\nlu.yml:141:
      Value '['What are the types of leave?', 'leave types', 'what type of leaves can I take?', 'tell me about some leaves']' is not of type 'str'. Path: '/nlu/10/examples'
  in data\nlu.yml:141:
      Value 'What are the types of leave?' is not a dict. Value path: '/nlu/10/examples/0'
  in data\nlu.yml:141:
      Value 'leave types' is not a dict. Value path: '/nlu/10/examples/1'
  in data\nlu.yml:141:
      Value 'what type of leaves can I take?' is not a dict. Value path: '/nlu/10/examples/2'
  in data\nlu.yml:141:
      Value 'tell me about some leaves' is not a dict. Value path: '/nlu/10/examples/3'
  in data\nlu.yml:139:
      Key 'intent' was not defined. Path: '/nlu/10'
  in data\nlu.yml:148:
      Value '['show me the list of holidays', 'holidays details', 'what are the holidays', 'may i know about holidays?', 'holidays list', 'show the details for holidays of the company']' is not of type 'str'. Path: '/nlu/11/examples'
  in data\nlu.yml:148:
      Value 'show me the list of holidays' is not a dict. Value path: '/nlu/11/examples/0'
  in data\nlu.yml:148:
      Value 'holidays details' is not a dict. Value path: '/nlu/11/examples/1'
  in data\nlu.yml:148:
      Value 'what are the holidays' is not a dict. Value path: '/nlu/11/examples/2'
  in data\nlu.yml:148:
      Value 'may i know about holidays?' is not a dict. Value path: '/nlu/11/examples/3'
  in data\nlu.yml:148:
      Value 'holidays list' is not a dict. Value path: '/nlu/11/examples/4'
  in data\nlu.yml:148:
      Value 'show the details for holidays of the company' is not a dict. Value path: '/nlu/11/examples/5'
  in data\nlu.yml:146:
      Key 'intent' was not defined. Path: '/nlu/11'
  in data\nlu.yml:157:
      Value '['What is sick leave?', 'when can I take sick leave?', 'sick leave']' is not of type 'str'. Path: '/nlu/12/examples'
  in data\nlu.yml:157:
      Value 'What is sick leave?' is not a dict. Value path: '/nlu/12/examples/0'
  in data\nlu.yml:157:
      Value 'when can I take sick leave?' is not a dict. Value path: '/nlu/12/examples/1'
  in data\nlu.yml:157:
      Value 'sick leave' is not a dict. Value path: '/nlu/12/examples/2'
  in data\nlu.yml:155:
      Key 'intent' was not defined. Path: '/nlu/12'
  in data\nlu.yml:163:
      Value '['What is casual leave?', 'when can I take casual leave?', 'casual leave']' is not of type 'str'. Path: '/nlu/13/examples'
  in data\nlu.yml:163:
      Value 'What is casual leave?' is not a dict. Value path: '/nlu/13/examples/0'
  in data\nlu.yml:163:
      Value 'when can I take casual leave?' is not a dict. Value path: '/nlu/13/examples/1'
  in data\nlu.yml:163:
      Value 'casual leave' is not a dict. Value path: '/nlu/13/examples/2'
  in data\nlu.yml:161:
      Key 'intent' was not defined. Path: '/nlu/13'
  in data\nlu.yml:216:
      Value '['Thanks', 'Thanks a lot', 'thanks', 'thanks a lot', 'thank you very much', 'Thank you very much', 'Thank you', 'thank you', 'thankie', 'thanku', 'Thanks bot', 'thanks dear', 'thank u dear', 'Thank you for your help', 'thanks for your service', 'thank you very much for your service', 'thank you so much', 'Thank you so much', 'Thank you so much for your help', 'You helped me a lot . Thank you', 'hey thanks bro', 'thanks you helped me']' is not of type 'str'. Path: '/nlu/16/examples'
  in data\nlu.yml:216:
      Value 'Thanks' is not a dict. Value path: '/nlu/16/examples/0'
  in data\nlu.yml:216:
      Value 'Thanks a lot' is not a dict. Value path: '/nlu/16/examples/1'
  in data\nlu.yml:216:
      Value 'thanks' is not a dict. Value path: '/nlu/16/examples/2'
  in data\nlu.yml:216:
      Value 'thanks a lot' is not a dict. Value path: '/nlu/16/examples/3'
  in data\nlu.yml:216:
      Value 'thank you very much' is not a dict. Value path: '/nlu/16/examples/4'
  in data\nlu.yml:216:
      Value 'Thank you very much' is not a dict. Value path: '/nlu/16/examples/5'
  in data\nlu.yml:216:
      Value 'Thank you' is not a dict. Value path: '/nlu/16/examples/6'
  in data\nlu.yml:216:
      Value 'thank you' is not a dict. Value path: '/nlu/16/examples/7'
  in data\nlu.yml:216:
      Value 'thankie' is not a dict. Value path: '/nlu/16/examples/8'
  in data\nlu.yml:216:
      Value 'thanku' is not a dict. Value path: '/nlu/16/examples/9'
  in data\nlu.yml:216:
      Value 'Thanks bot' is not a dict. Value path: '/nlu/16/examples/10'
  in data\nlu.yml:216:
      Value 'thanks dear' is not a dict. Value path: '/nlu/16/examples/11'
  in data\nlu.yml:216:
      Value 'thank u dear' is not a dict. Value path: '/nlu/16/examples/12'
  in data\nlu.yml:216:
      Value 'Thank you for your help' is not a dict. Value path: '/nlu/16/examples/13'
  in data\nlu.yml:216:
      Value 'thanks for your service' is not a dict. Value path: '/nlu/16/examples/14'
  in data\nlu.yml:216:
      Value 'thank you very much for your service' is not a dict. Value path: '/nlu/16/examples/15'
  in data\nlu.yml:216:
      Value 'thank you so much' is not a dict. Value path: '/nlu/16/examples/16'
  in data\nlu.yml:216:
      Value 'Thank you so much' is not a dict. Value path: '/nlu/16/examples/17'
  in data\nlu.yml:216:
      Value 'Thank you so much for your help' is not a dict. Value path: '/nlu/16/examples/18'
  in data\nlu.yml:216:
      Value 'You helped me a lot . Thank you' is not a dict. Value path: '/nlu/16/examples/19'
  in data\nlu.yml:216:
      Value 'hey thanks bro' is not a dict. Value path: '/nlu/16/examples/20'
  in data\nlu.yml:216:
      Value 'thanks you helped me' is not a dict. Value path: '/nlu/16/examples/21'
  in data\nlu.yml:214:
      Key 'intent' was not defined. Path: '/nlu/16'
  in data\nlu.yml:241:
      Value '['I want to report', 'I want to complain', 'Complain', 'report', 'complain', 'Do complain', 'do report', 'I have something secret to tell you', "i'm angry with someone", 'need to complain for something']' is not of type 'str'. Path: '/nlu/17/examples'
  in data\nlu.yml:241:
      Value 'I want to report' is not a dict. Value path: '/nlu/17/examples/0'
  in data\nlu.yml:241:
      Value 'I want to complain' is not a dict. Value path: '/nlu/17/examples/1'
  in data\nlu.yml:241:
      Value 'Complain' is not a dict. Value path: '/nlu/17/examples/2'
  in data\nlu.yml:241:
      Value 'report' is not a dict. Value path: '/nlu/17/examples/3'
  in data\nlu.yml:241:
      Value 'complain' is not a dict. Value path: '/nlu/17/examples/4'
  in data\nlu.yml:241:
      Value 'Do complain' is not a dict. Value path: '/nlu/17/examples/5'
  in data\nlu.yml:241:
      Value 'do report' is not a dict. Value path: '/nlu/17/examples/6'
  in data\nlu.yml:241:
      Value 'I have something secret to tell you' is not a dict. Value path: '/nlu/17/examples/7'
  in data\nlu.yml:241:
      Value 'i'm angry with someone' is not a dict. Value path: '/nlu/17/examples/8'
  in data\nlu.yml:241:
      Value 'need to complain for something' is not a dict. Value path: '/nlu/17/examples/9'
  in data\nlu.yml:239:
      Key 'intent' was not defined. Path: '/nlu/17'
  in data\nlu.yml:263:
      Value '['I want to schedule a meeting', 'Schedule a meeting for me', 'Can I schedule a meeting with HR?', 'meeting', 'schedule a meeting', 'meeting schedule']' is not of type 'str'. Path: '/nlu/19/examples'
  in data\nlu.yml:263:
      Value 'I want to schedule a meeting' is not a dict. Value path: '/nlu/19/examples/0'
  in data\nlu.yml:263:
      Value 'Schedule a meeting for me' is not a dict. Value path: '/nlu/19/examples/1'
  in data\nlu.yml:263:
      Value 'Can I schedule a meeting with HR?' is not a dict. Value path: '/nlu/19/examples/2'
  in data\nlu.yml:263:
      Value 'meeting' is not a dict. Value path: '/nlu/19/examples/3'
  in data\nlu.yml:263:
      Value 'schedule a meeting' is not a dict. Value path: '/nlu/19/examples/4'
  in data\nlu.yml:263:
      Value 'meeting schedule' is not a dict. Value path: '/nlu/19/examples/5'
  in data\nlu.yml:261:
      Key 'intent' was not defined. Path: '/nlu/19'

I already have validated this file in yamlchecker.com, it’s valid.

You forgot to add | after examples: for some intents

1 Like