Input Dialog script runs in studio but not in Control Tower

I have a custom script for an input dialog. It runs well in studio but does not run in control tower. Kindly advise.