User input in custom action

hello @ravikrcs could you please help me to find solution for below issue. I want to make encryption when user inputs and click on submit button it has to call python function and make encryption then display on chatbot window.