To set user agent use “Set Header” action:
After using this action, not only http headers will be modified, but also navigator.userAgent property.