How to get the button Payload or Title value

You can use,

button = { 'title': word, 'payload': '/intent_name{'entity_name':"'+word+'"}'}

Add a custom action after this step where you can use,

doctor_name = next(tracker.get_latest_entity_values('entity_name'))