- intent: credit_account
examples: |
- What's my [credit](account) balance?
- What's the balance on my [credit card account](account)
- I want to check my [credit](account) balance
- check my [credit card account](account) balance
- Kindly check my [credit account](account) balance
- [credit](account)
- intent: my_account_number
examples: |
- my a/c no is [PR567](account_number)
- [PR569](account_number) is my a/c no
- here is my [PR890](account_number)
- regex: account_number
examples: |
- ^(PR)\d{3,9}
- ^(pr)\d{3,9}
--------------------------
actions:
- action_hello_world
entities:
- account
- account_number
slots:
account:
type: text
mappings:
- type: from_entity
entity: account
account_number:
type: text
mappings:
- type: from_entity
entity: account_number
Hi @kalpa916, What is exactly is your problem with the code above? What is the error? What doesn’t work?
when I am using regex for validating the slots it doesn’t validate
(e.g - intent: my_account_number examples: | - my a/c no is PR567 - PR569 is my a/c no - here is my PR890
- regex: account_number
examples: |
- ^(PR)\d{3,9}
- ^(pr)\d{3,9}
it doesn’t verify as per the regex and it also doesn’t show an error when wrong input is provided it goes to the next intent/action.