Here is instructions to let user set output filename:
First, create resource with writeonly file:
Now you can use “Add Element” action from resource module:
Following video shows, how it can be done: