Skip to content

Instantly share code, notes, and snippets.

@Jacksonngabonziza
Created June 9, 2022 13:43
Show Gist options
  • Select an option

  • Save Jacksonngabonziza/0eeae9db19180e0d9d4dd0822c2e8db0 to your computer and use it in GitHub Desktop.

Select an option

Save Jacksonngabonziza/0eeae9db19180e0d9d4dd0822c2e8db0 to your computer and use it in GitHub Desktop.
Getting Started with Rasa Chatbot
utter_shipping_duration:
- text: "Standard Shipping usually takes about 5-7 business days. Premium Shipping takes about 2-3 business days."
utter_payment_modes:
- text: "Payment mode we are supporting:\nCOD\nDebit/Credit cards\nEMI\nWallets."
utter_track_product:
- text: "You can track your product from accounts -> Orders. There you will find list of orders and select one of them to track."
utter_return_policy:
- text: "If you received a product and want to return it. You can return within 14 days of delivery date."
Install python
Create virtual environment: python3 -m venv ./venv or virtualenv venv_name
Activate the virtual environment: source ./venv/bin/activate
Install Rasa : pip3 install rasa
Bootstrap rasa project: Rasa init
Start developing
nlu:
- intent: shipping_duration
examples: |
- how much time does it take for delivery
- what's shipping duration
- shipping time and duration
- how long does it take for product to ship
- when will my product be delivered
- for how long can i wait for it?
- will you deliver with in two days?
- does it take a month ?
- shipping time?
- how long will it take?
- i need it five days
- intent: payment_modes
examples: |
- what are payment modes you support
- do you support UPI payments?
- can I pay on delivery?
- is COD available
- wallet payment mode
- can pay using mobile money
- can i pay by cash
- do you accept visa card?
- will i use master card for payment?
- intent: return_policy
examples: |
- what are rules for returning a product
- how do I return a product
- am I eligible to return a product
- when can I return something
- guidelines for returning a product
- return policy
- i need to return the product
- am i allowed to return the product after two days
- i need to return the product
- is returning the product back allowed?
- intent: track_product
examples: |
- how do I track my product
- where can I track my product
- can you track my product
- product tracking
- process for tracking my product
- how can i know when my product arrives
- is there any way of tracking the product?
- how far is my product now
- is my product on the way?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment