How do i display data fetched from database in a button format?

i did convert it…and am facing the same issue still cant display the doctor list

please isnt there a better way to communicate?

here i found new error

I don’t know if using str(d) is the right approach.

Looking at the new error message, try using d[0] instead of str(d).

You basically just need to check that the string is formatted in the correct way - check what d looks like when it is printed and use that to convert to a string in the right way.

I also did that and nothing change…maybe could it be the slot having space

From your last screenshot it looks like the slot is being filled, just with the incorrect value, and your sql query is failing because of this.

Have you checked:

  • that the d variable is the correct string value - if your print the d value to the terminal what does it look like?
  • if the doctor slot is actually being filled or not

Run your bot using rasa shell --debug and have a look at what it’s doing.

here is the error that i dont understand

hi there can give an example for that the domain file and the rule and stories files find hard to do that :sweat: :sweat: