Hi Salvatore,
As described in many tickets about passing variables from/to delivery template/workflow, you can use the Variables tab of Deliveries, and/or manage the syntax in the Javascript:
delivery.variables._var[0].stringValue = vars.productName;
Regards.
JS