You can reference a variable in an email template by using the following format: *|variablename|* e.g. *|CustomerName|*
This field needs to then be referenced in the Automator action. See example below:
'Variable Name' will match what was captured in the template and the 'Variable Value' would be the referenced value as per the payload received.