You should take a look at Tutorial - Ping Command
At the beginning, it shows the process of creating a slash command flow.