DataWeave can be used in Mule to transform message payloads. The Transform Message element allows writing DataWeave code to take the incoming message and produce an output. The editor provides input/output previews and auto-completion. DataWeave expressions can also be used elsewhere in Mule flows using the dw() function.