Run another python script from Rasa

You can trigger a custom action from a button click, and in your custom action you can implement your own logic.Custom Actions Docs