Please I need an explanation on how to fill a slot with a button

Please I need a good explanation on how to fill a slot automatically with a button, cause I’ve tried but no way…Pleaseeeeeeeee

The docs have an example under buttons. This fills the entity insurance and you would configure a slot mapping to fill a slot from the entity.

responses:
  utter_greet:
  - text: "Hey! Would you like to purchase motor or home insurance?"
    buttons:
    - title: "Motor insurance"
      payload: '/inform{"insurance":"motor"}'
    - title: "Home insurance"
      payload: '/inform{"insurance":"home"}'