Hi Everyone.
My chatbot is about storing details for purchase order and invoice. Intents are getting correctly classified but the action is getting wrong predicted. How can I make sure to let rasa core do predict correct action. For intent query_po_invoice, it is predicting action utter_tell_new_po_status
This is the stories.yml file.
-
story: greeting
steps:
-
intent: greet
-
action: utter_greet
-
-
story: query invoice po
steps:
-
intent: query_po_invoice
-
action: action_show_details
-
-
story: update invoice status
steps:
-
intent: change_status
entities:
- invoice: invoice
-
action: utter_tell_new_invoice_status
-
checkpoint: check_status
-
-
story: update purchase order status
steps:
-
intent: change_status
-
action: utter_tell_new_po_status
-
checkpoint: check_status
-
-
story: final step
steps:
-
checkpoint: check_status
-
intent: affirm
-
action: action_update_status
-
this is nlu.yml file
-
intent: add_purchase_order
examples: |
-
I want to add a purchase order
-
Can I add a buyer’s purchase order ?
-
I want to have added a po
-
Please add a [purchase order] (po)
-
A purchase order needs to be included.
-
Add one purchase order
-
Add a single po
-
Record one purchase order
-
Register one po
-
Enter a purchase order
-
List down a purchase order
-
-
intent: add_invoice
examples: |
-
synonym: po
examples: |
-
purchase order
-
po
-
-
regex: date
examples: |
- \d{2}-\d{2}-\d{4}
-
regex: invoice_date
examples: |
- \d{2}-\d{2}-\d{4}
-
regex: order_id
examples: |
- (PO[0-9]{2}.*)
-
intent: affirm
examples: |
-
The order id is PO01
-
order id is PO02
-
PO10 is the order id.
-
PO13 is the order number.
-
The customer name is ICICI
-
[HSBC] (customer_name)
-
American Express is customer
-
The order has been shipped via road
-
Shipping method is rail
-
The date is 02-01-2005
-
The status is received
-
The status is cancelled
-
Invoice Date is 17-12-2020
-
The status of invoice is disputed
-
The customer name is ICICI
-
-
lookup: customer_name
examples: |
-
HDFC
-
Bank of America
-
HSBC
-
American Express
-
SBI
-
ICICI
-
-
lookup: invoice_customer_name
examples: |
-
HDFC
-
Bank of America
-
HSBC
-
American Express
-
SBI
-
ICICI
-
-
lookup: po_status
examples: |
-
new
-
released
-
received
-
change order
-
cancelled
-
closed
-
-
lookup: invoice_status
examples: |
-
disputed
-
partial
-
activated
-
overdue
-
draft
-
paid
-
void
-
-
intent: query_po_invoice
examples: |
-
intent: change_status
examples: |
-
Get the purchase order PO25 (status) changed