Automatic form processing


I heard that with workflow external script it is possible to make an automatic form processing. So I’m trying to create one but don’t know how to do it. In forms, you can only export the csv so which events am I supposed to chose in workflow external script ? Also don’t know which run script to specified to save the file on a postgresql db.

thank you in advance,