Input and Custom Fields in Process Email Notifications

Looking through many support articles, there was a way to pull in custom fields when sending action notifications using <custom_n>. But this functionality seems to have been removed. What method do we use when triggering an action notification and want to include input and custom form fields?

When we receive the initial ticket I can see all the input fields listed under attributes, how can I reference these as variables?