How to Display Button Inside Button in Chatbot in Rasa x

I am Making A chatbot where i want 3 button ie

  1. Equipment Financing
  2. Input Financing
  3. Invoice Financing

and Two More more buttons

  1. Book a New Loan
  2. Status Of Your Loan so these 2 Buttons should get display when a customer click on those 3 buttons Means If Customer select Equipment Financing Then These 2 Buttons Should get Displayed or input or invoice any button he should click these 2 button should get displayed how its possible please help me out

I had written but i am getting this output

@murtuza Hello, you just need to create the same process as you have done for the above mention buttons, but this time you need to mention the payload for the new buttons and the utterance for the same, I’d recommend to please see the code of buttons which I have suggested in our previous thread, it just the matter of syntax that’s it :slight_smile:

@nik202 i am sending you the screen shot if any correction please suggest

@murtuza Do you required the hyperlink of the Equipment Financing to? or when user click the EF buttons, he will see the two new buttons Book a New Loan and Status of your Loan?

PS: I will recommend to please delete the older model, as it will kill your storage and even sometime, it confuse the new model, max 1 or 2 previous models is fine.

Dont Need Hyperlink If Customers Click EF these 2 Buttons should get Displayed

@murtuza Then first create the buttons utterance for the new buttons such as:

intents:
 - book_loan
 - status_loan


responses:
  utter_book_status_loan:
    - buttons:
        - payload: /book_loan
          title: 'Book a Loan'
        - payload: /status_loan
          title: 'Status of Loan'
      text: Select the menu.
  utter_ask_book_loan:
    - text: you selected [Book a Loan](https://rasa.com)
  utter_ask_status_loan:
    - text: you selected [Status of Loan](https://rasa.com)

Now, I want to see how you will add this process on the link of 1. Equipment Financing ; I can do the complete code, but I guess you should try it first its your learning and project. I hope you understand. PS: Just see the previous code, how we have used the payload and even stories. Good Luck!

i had done the same thing @nik202 but not working actually its working till 1st part ie 3 buttons once we EF it should display These 2 buttons its not working

@nik202 i had done it and its running also need one help if u can see and verify it so you can also get whats the problem is

@murtuza sure please share!

stories:

  • story: equipment_financing menu

    steps:

    • intent: greet

    • action: utter_greet

    • action: utter_menu

    • intent: equipment_financing

    • action: utter_ask_equipment_financing

    • action: utter_menu1

    • intent: book

    • action: utter_ask_book

    • intent: status

    • action: utter_ask_status

    • action: utter_menu

  • story: input_financing menu

    steps:

    • intent: greet

    • action: utter_greet

    • action: utter_menu

    • intent: input_financing

    • action: utter_ask_input_financing

    • action: utter_menu1

    • intent: book

    • action: utter_ask_book1

    • intent: status

    • action: utter_ask_status1

    • action: utter_menu

  • story: invoice_financing menu

    steps:

    • intent: greet

    • action: utter_greet

    • action: utter_menu

    • intent: invoice_financing

    • action: utter_ask_invoice_financing

    • action: utter_menu1

    • intent: book

    • action: utter_ask_book2

    • intent: status

    • action: utter_ask_status2

    • action: utter_menu

version: β€˜2.0’

config:

store_entities_as_slots: true

session_config:

session_expiration_time: 60

carry_over_slots_to_new_session: true

intents:

  • equipment_financing:

    use_entities: true

  • input_financing:

    use_entities: true

  • invoice_financing:

    use_entities: true

  • book:

    use_entities: true

  • status:

    use_entities: true

  • greet:

    use_entities: true

  • goodbye:

    use_entities: true

  • affirm:

    use_entities: true

  • deny:

    use_entities: true

  • mood_great:

    use_entities: true

  • mood_unhappy:

    use_entities: true

  • bot_challenge:

    use_entities: true

entities: []

slots: {}

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_menu1:

  • buttons:

    • payload: /book

      title: Book A New Loan

    • payload: /status

      title: Status Of Your Loan

    text: Please Select Your Option

utter_ask_equipment_financing:

  • text: You Selected Equipment Financing

utter_ask_book:

utter_ask_status:

utter_ask_input_financing:

  • text: You Selected Input Financing

utter_ask_book1:

utter_ask_status1:

utter_ask_invoice_financing:

  • text: You Selected Invoice Financing

utter_ask_book2:

utter_ask_status2:

@nik202 this is the code nik

@murtuza please formate the code for me.

Means i didnt get you

i m still confused @nik202

version: '2.0'
config:
  store_entities_as_slots: true
session_config:
  session_expiration_time: 60
  carry_over_slots_to_new_session: true
intents:
- equipment_financing:
    use_entities: true
- input_financing:
    use_entities: true
- invoice_financing:
    use_entities: true
- book:
    use_entities: true
- status:
    use_entities: true
- greet:
    use_entities: true
- goodbye:
    use_entities: true
- affirm:
    use_entities: true
- deny:
    use_entities: true
- mood_great:
    use_entities: true
- mood_unhappy:
    use_entities: true
- bot_challenge:
    use_entities: true
entities: []
slots: {}
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_menu1:
  - buttons:
    - payload: /book
      title: Book A New Loan
    - payload: /status
      title: Status Of Your Loan
    text: Please Select Your Option
  utter_ask_equipment_financing:
  - text: You Selected Equipment Financing
  utter_ask_book:
  - text: You Selected [Book A New Loan](https://www.jai-kisan.com)
  utter_ask_status:
  - text: You Selected [Status Of Your Loan](https://www.jai-kisan.com)
  utter_ask_input_financing:
  - text: You Selected Input Financing
  utter_ask_book1:
  - text: You Selected [Book A New Loan](https://www.jai-kisan.com)
  utter_ask_status1:
  - text: You Selected [Status Of Your Loan](https://www.jai-kisan.com)
  utter_ask_invoice_financing:
  - text: You Selected Invoice Financing
  utter_ask_book2:
  - text: You Selected [Book A New Loan](https://www.jai-kisan.com)
  utter_ask_status2:
  - text: You Selected [Status Of Your Loan](https://www.jai-kisan.com)
stories:
- story: equipment_financing menu
  steps:
  - intent: greet
  - action: utter_greet
  - action: utter_menu
  - intent: equipment_financing
  - action: utter_ask_equipment_financing
  - action: utter_menu1
  - intent: book
  - action: utter_ask_book
  - intent: status
  - action: utter_ask_status
  - action: utter_menu

- story: input_financing menu
  steps:
  - intent: greet
  - action: utter_greet
  - action: utter_menu
  - intent: input_financing
  - action: utter_ask_input_financing
  - action: utter_menu1
  - intent: book
  - action: utter_ask_book1
  - intent: status
  - action: utter_ask_status1
  - action: utter_menu

- story: invoice_financing menu
  steps:
  - intent: greet
  - action: utter_greet
  - action: utter_menu
  - intent: invoice_financing
  - action: utter_ask_invoice_financing
  - action: utter_menu1
  - intent: book
  - action: utter_ask_book2
  - intent: status
  - action: utter_ask_status2
  - action: utter_menu

@nik202 done

@murtuza I will give you the solution in the night, as I am busy a lot. I hope you understand mean while you proceed with other code. Thanks.

@nik202 for ticket id na