Set user input as intent after button click

and this is done by what you told me? for slack for example I have to use dialogs?

is it easy to do? I’am new to this.

Any examples?