Actions through button

How can I run some actions(like hitting API) through the button in rasa?

@sapkotapratik You should be able to achieve that by defining such behaviour in your stories. The payload of the button that is clicked should be passed to Rasa Core so that it would update the conversation state and based on your training stories would know which response would be the most proabable. That response could be a custom action to hit an api. Here is some documeantion on how you can deal with buttons: Interpreters