Rasa x - In talk to your bot, buttons show "New Button" instead of provided text in domain.yml

When I try testing my bot in rasa x, in Talk to your bot section, the buttons show “New Button” instead of the actual text. However, on click, the bot sends the proper payloads.

Can I have a look on your domain file?

responses:
  utter_greet:
  - buttons:
    - payload: /ai_chat_bot
      text: AI chat-bot 
    - payload: /contact_us
      text:  Contact Us
    - payload: /pricing
      text: Pricing
    text: Hey! I am Eva. How can I help you?
  utter_cheer_up:
  - image: https://i.imgur.com/nGF1K8f.jpg
    text: 'Here is something to cheer you up:'
  utter_did_that_help:
  - text: Did that help you?
  utter_happy:
  - text: Great, carry on!

Can you try the below responses ?

responses:
  utter_greet:
  - buttons:
    - text: "AI chat-bot" 
      payload: /ai_chat_bot    
    - text:  "Contact Us"
      payload: /contact_us
    - text: "Pricing"
      payload: /pricing
      
    text: Hey! I am Eva. How can I help you?
  utter_cheer_up:
  - image: https://i.imgur.com/nGF1K8f.jpg
    text: 'Here is something to cheer you up:'
  utter_did_that_help:
  - text: Did that help you?
  utter_happy:
  - text: Great, carry on!

I tried the response you suggested. It did not work. Still the button name is “New Button”. When running rasa x, it modifies the domain.yml file again to below response. It removes quotes too.

responses:
  utter_greet:
  - buttons:
    - payload: /ai_chat_bot
      text: AI chat-bot
    - payload: /contact_us
      text: Contact Us
    - payload: /pricing
      text: Pricing
    text: Hey! I am Eva. How can I help you?
  utter_cheer_up:
  - image: https://i.imgur.com/nGF1K8f.jpg
    text: 'Here is something to cheer you up:'
  utter_did_that_help:
  - text: Did that help you?
  utter_happy:
  - text: Great, carry on!

I see. What are the version od Rasa and Rasa X are you using?

Rasa - 2.1.3

Rasa x - 0.34.0

Hmmm. Interesting. Can you downgrade to Rasa 2.0.X and see if the same error occurs? It seems like a bug

I tried the following.

  • Downgraded to rasa==2.0.8 and rasa-x==0.34.0 – Didn’t work
  • Downgraded to rasa==2.0.2 and rasa-x==0.33.1 – Didn’t work

The above both didn’t work. Still “New Button” comes instead of button name.

Also, along with above problem, In all versions,the story visualisation flow chart shows “None” instead of intent name.

That’s strange. I think it is better to raise an issue to report this bug.

Okay, sure. Thank you.

Hey @ChikkaUdayaSai

The issue’s fixed. Turns out, it was a mistake in domain file.

The problem was, I was using text instead of title. The correct key for buttons is title.

2 Likes

Gotcha… :grinning:

Hey the intent name is visible now instead of none? In rasa visualize?

Nope.