# Rasa x Checking List and replying Customers

**URL:** <https://forum.rasa.com/t/rasa-x-checking-list-and-replying-customers/48388>\
**Category:** \[Deprecated\] Rasa X Community Edition\
**Created:** [October 11, 2021, 8:12am UTC](https://forum.rasa.com/t/rasa-x-checking-list-and-replying-customers/48388 "2021-10-11T08:12:22Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![murtuza](https://avatars.discourse-cdn.com/v4/letter/m/4491bb/32.png) [@murtuza](https://forum.rasa.com/u/murtuza)\
**Post date:** [October 11, 2021, 8:12am UTC](https://forum.rasa.com/t/rasa-x-checking-list-and-replying-customers/48388/1 "2021-10-11T08:12:22Z")

</div>

Hi This Is Murtuza Kantawala here Now if we created an intent in which it consist of List of Equipment’s so when the User type the Equipment name so the bot should check the intent list of Equipments and should reply in response that whether we provide loan for that Equipment or not hows that possible

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [October 11, 2021, 8:26am UTC](https://forum.rasa.com/t/rasa-x-checking-list-and-replying-customers/48388/2 "2021-10-11T08:26:17Z")

</div>

Hi @murtuza can you please share the intent list or file or share some example like bot/user conversation what is your use case?

---

<div class="post-metadata">

**Author:** ![murtuza](https://avatars.discourse-cdn.com/v4/letter/m/4491bb/32.png) [@murtuza](https://forum.rasa.com/u/murtuza)\
**Post date:** [October 11, 2021, 8:27am UTC](https://forum.rasa.com/t/rasa-x-checking-list-and-replying-customers/48388/3 "2021-10-11T08:27:21Z")

</div>

“Automatic Feeding system”, “Baler”, “Blower”, “Brooder Equipment”, “Cattle”, “Chaff Cutter”, “Chemical Nutrients”, “Chilling machine”, “Combine Harvester”, “Compost Spreader”, “Compressed Air System”, “Cream Separator”, “Cultivator”, “Daal Mill”, “Disc Harrow”, “Disc Plough”, “Dozer Blade”, “Drip Irrigation”, “Egg Handling Equipment”, “Farm Packer”, “Farm Pond Paper”, “Fertilizer”, “Fertilizer + Chemical Nutrients”, “Fertilizer Broadcaster”, “Flour Mill”, “Fogger System”, “Haramba Thresher”, “Harrow”, “Hatcher”, “Insulated van”, “Land Leveler”, “Laser Leveler”, “Loader”, “Maize Thresher”, “Mechanical Seed Driller”, “Milking Machine”, “Mini Chilli Plant”, “Mini Dal Plant”, “Mini Groundnut Plant”, “Mini Harvester”, “Mini Millets Plant”, “Mini Rice Plant”, “Mini Turmeric Plant”, “Normal Pump”, “Oil Mill”, “Pedal Cart”, “Piston Pump”, “Plough”, “Poly House”, “Power Harrow”, “Power Tiller”, “Power Weeder”, “Push Cart”, “Reaper”, “Reaper Binder”, “Rethela Cart”, “Reverse Plough”, “Rice Mill”, “Roller”, “Rotary Mulcher”, “Rotary Slasher”, “Rotary Tiller”, “Rotavator”, “Seed”, “Seed + Chemical Nutrients”, “Seed + Fertilizer”, “Seed Grader”, “Shade”, “Shade net”, “Shrub Cutter”, “Shrub master”, “Solar Fencing”, “Solar Heater”, “Solar Pump”, “Solar light”, “Sprayer”, “Sprinkler Set”, “Straw Reaper”, “Stubble Shaver”, “Submersible pump”, “Sugarcane Harvester”, “Threshing Machine”, “Trailer”, “Trailer, Rotavator, Disc harrow”, “Turbine Pump”, “Ventilation Controller”, “Water Equipment”, “Water Tanker”

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [October 11, 2021, 8:29am UTC](https://forum.rasa.com/t/rasa-x-checking-list-and-replying-customers/48388/4 "2021-10-11T08:29:01Z")

</div>

@murtuza What is this ? are you using lookup table? this is just the list, where you have mention this can you share the screenshot please?

---

<div class="post-metadata">

**Author:** ![murtuza](https://avatars.discourse-cdn.com/v4/letter/m/4491bb/32.png) [@murtuza](https://forum.rasa.com/u/murtuza)\
**Post date:** [October 11, 2021, 8:29am UTC](https://forum.rasa.com/t/rasa-x-checking-list-and-replying-customers/48388/5 "2021-10-11T08:29:22Z")

</div>

@nik202 now this is the list Now what i want is When the Customers Enters the Equipment Name Which doesnt Exist in this list so bot should reply that we dont provide loan for this equipment

---

<div class="post-metadata">

**Author:** ![murtuza](https://avatars.discourse-cdn.com/v4/letter/m/4491bb/32.png) [@murtuza](https://forum.rasa.com/u/murtuza)\
**Post date:** [October 11, 2021, 8:36am UTC](https://forum.rasa.com/t/rasa-x-checking-list-and-replying-customers/48388/6 "2021-10-11T08:36:30Z")

</div>

Here is how i am adding Equipments

 ![Rasa X - Google Chrome 11-10-2021 14_00_26](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/6/e/6e4c1c2f18a5b307237335545ffb34c38a901e4a.png)

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [October 11, 2021, 8:38am UTC](https://forum.rasa.com/t/rasa-x-checking-list-and-replying-customers/48388/7 "2021-10-11T08:38:52Z")

</div>

@murtuza mean you only want to reply for the equipment which is in your list? and apart from that you want to trigger the fall back right?

---

<div class="post-metadata">

**Author:** ![murtuza](https://avatars.discourse-cdn.com/v4/letter/m/4491bb/32.png) [@murtuza](https://forum.rasa.com/u/murtuza)\
**Post date:** [October 11, 2021, 8:40am UTC](https://forum.rasa.com/t/rasa-x-checking-list-and-replying-customers/48388/8 "2021-10-11T08:40:24Z")

</div>

yes means if customers enters the Equipment name which is not on the list then will response Sorry we dont provide loan for this Equipment

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [October 11, 2021, 8:42am UTC](https://forum.rasa.com/t/rasa-x-checking-list-and-replying-customers/48388/9 "2021-10-11T08:42:57Z")

</div>

@murtuza Can I share you one solution, I trust you; you will be able to customise as per your use case, you just need to change the location value to equipment and some basic training example. Please first see this video, if you able to archive then its fine, else I will guide you other process. **Ref:** [HOW TO EXTRACT NAMES IN RASA X | LOOKUP TABLE | INNOVATE YOURSELF - YouTube](https://youtu.be/gvyfQZMnHPY)

---

<div class="post-metadata">

**Author:** ![murtuza](https://avatars.discourse-cdn.com/v4/letter/m/4491bb/32.png) [@murtuza](https://forum.rasa.com/u/murtuza)\
**Post date:** [October 11, 2021, 8:53am UTC](https://forum.rasa.com/t/rasa-x-checking-list-and-replying-customers/48388/10 "2021-10-11T08:53:12Z")

</div>

First of all @nik202 In this Video he is working on domain and nlu file right and its working in my case i m writing such things then its not working at all so how to solve that problem first

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [October 11, 2021, 8:54am UTC](https://forum.rasa.com/t/rasa-x-checking-list-and-replying-customers/48388/11 "2021-10-11T08:54:16Z")

</div>

@murtuza share some related files for our reference then, we can comment and suggest you!

---

<div class="post-metadata">

**Author:** ![murtuza](https://avatars.discourse-cdn.com/v4/letter/m/4491bb/32.png) [@murtuza](https://forum.rasa.com/u/murtuza)\
**Post date:** [October 11, 2021, 9:24am UTC](https://forum.rasa.com/t/rasa-x-checking-list-and-replying-customers/48388/12 "2021-10-11T09:24:51Z")

</div>

@nik202 Can we do one thing Nik and please help me out with this First we will proivde 3 Buttons that is our company product

1. Equipment Financing
2. Input Financing
3. Invoice Financing these 3 Buttons Should get displayed on the chatbot and if customer click on any of these 3 buttons we can provide an link or navigation to that particular page where he can book a loan so how to do that please help me out with that

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [October 11, 2021, 9:32am UTC](https://forum.rasa.com/t/rasa-x-checking-list-and-replying-customers/48388/13 "2021-10-11T09:32:50Z")

</div>

@murtuza Yeps, that make a lot of sense and can minimise the overhead coding, and that will be the clean process for the end users and you not need to maintain any further database; re-directing always help 🙂 You want some code for that? Yes or No?

---

<div class="post-metadata">

**Author:** ![murtuza](https://avatars.discourse-cdn.com/v4/letter/m/4491bb/32.png) [@murtuza](https://forum.rasa.com/u/murtuza)\
**Post date:** [October 11, 2021, 9:33am UTC](https://forum.rasa.com/t/rasa-x-checking-list-and-replying-customers/48388/14 "2021-10-11T09:33:58Z")

</div>

Yes Obviously

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [October 11, 2021, 9:36am UTC](https://forum.rasa.com/t/rasa-x-checking-list-and-replying-customers/48388/15 "2021-10-11T09:36:03Z")

</div>

@murtuza Sure, give me some time for your code customisation 🙂

In **domain.yml**

```auto

intents:
 - equipment_financing
 - input_financing
 - invoice_financing 

responses:
  utter_menu:
    - buttons:
        - payload: /equipment_financing
          title: 'Equipment Financing'
        - payload: /input_financing
          title: 'Input Financing'
        - payload: /invoice_financing 
          title: 'Invoice Financing'
      text: Select the menu.

  utter_ask_equipment_financing:
    - text: you selected [Equipment Financing](https://rasa.com)
  utter_ask_input_financing:
    - text: you selected [Input Financing](https://rasa.com)
  utter_ask_invoice_financing :
    - text: you selected [Invoice Financing](https://rasa.com) 

```

In **stories.yml**

```auto
version: '2.0'
stories:
  - story: equipment_financing menu
    steps:
      - intent: get_started
      - action: utter_welcome_message
      - action: utter_menu
      - intent: equipment_financing
      - action: utter_ask_equipment_financing

  - story: input_financing menu
    steps:
      - intent: get_started
      - action: utter_welcome_message
      - action: utter_menu
      - intent: input_financing
      - action: utter_ask_input_financing

  - story: invoice_financing menu
    steps:
      - intent: get_started
      - action: utter_welcome_message
      - action: utter_menu
      - intent: invoice_financing
      - action: utter_ask_invoice_financing

```

Please, do check the code and syntax again and if you not able to run, please buzz me @ nik202 and good luck!

**Note:** Can language and stories as per your use case, I have just provided the demo code for your reference (just copy and paste at your own risk 😉 )

---

<div class="post-metadata">

**Author:** ![murtuza](https://avatars.discourse-cdn.com/v4/letter/m/4491bb/32.png) [@murtuza](https://forum.rasa.com/u/murtuza)\
**Post date:** [October 11, 2021, 11:50am UTC](https://forum.rasa.com/t/rasa-x-checking-list-and-replying-customers/48388/16 "2021-10-11T11:50:42Z")

</div>

@nik202 I am getting an error ie Training Failed (Your Model Training Has Failed)

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [October 11, 2021, 12:31pm UTC](https://forum.rasa.com/t/rasa-x-checking-list-and-replying-customers/48388/17 "2021-10-11T12:31:10Z")

</div>

@murtuza can you please share the error? and even share the logs?

---

<div class="post-metadata">

**Author:** ![murtuza](https://avatars.discourse-cdn.com/v4/letter/m/4491bb/32.png) [@murtuza](https://forum.rasa.com/u/murtuza)\
**Post date:** [October 11, 2021, 12:59pm UTC](https://forum.rasa.com/t/rasa-x-checking-list-and-replying-customers/48388/18 "2021-10-11T12:59:24Z")

</div>

See i am sending you the screen shot

 ![Rasa X - Google Chrome 11-10-2021 18_26_01](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/9/6/96d9bcdf3c14a84e0ecca1fc7b4d670fd5e02f7b.png)

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [October 11, 2021, 1:04pm UTC](https://forum.rasa.com/t/rasa-x-checking-list-and-replying-customers/48388/19 "2021-10-11T13:04:25Z")

</div>

@murtuza can you train the model, while using command prompt using rasa train --debug ?

**Step:1** Activate environment

**Step:2** Go to project folder

**Step:3** run `rasa train --debug`

Please delete all the previous trained model and if you see any error, please share me the logs screenshot.

---

<div class="post-metadata">

**Author:** ![murtuza](https://avatars.discourse-cdn.com/v4/letter/m/4491bb/32.png) [@murtuza](https://forum.rasa.com/u/murtuza)\
**Post date:** [October 11, 2021, 1:06pm UTC](https://forum.rasa.com/t/rasa-x-checking-list-and-replying-customers/48388/20 "2021-10-11T13:06:14Z")

</div>

i had done that also but the initial model get trained and the changes which i do as per requirement gets deleted automatically

[Next page](https://forum.rasa.com/t/rasa-x-checking-list-and-replying-customers/48388.md?page=2)
