How do I add an action to watson conversation response?

I’ve created intent, entity and dialog without a problem. But right now I’m trying to make it so when the user send “goodbye”, the application would close. According to the doc, I’ll have to name an action that goes along with an intent. How do I do that? Is it through code or through the conversation workspace platform?