Tokens can be understood as a placeholder that will be filled in at the time an automation runs with actual data. The Transform step heavily relies on tokens to run an automation. 

It is important to use the correct token in order to pass through or have the automation understand the data from the action. 

When clicking on the {+} Insert or {+} button, you can search through numerous tokens that are available for the previous trigger or action. 

You will also notice that you will see examples of each token on the right hand side. 

Advanced usage

You may also use Shopify's Liquid syntax with tokens. This can be useful when you wish to manipulate data before saving. 

Here's an example, where we want to replace all tags with 'Spring Range' with 'Summer Range':

1. Select the tags token you want to use:

2. Double click on the grey area, to reveal the full path of the token:

3. Add Liquid's replace filter, to replace all tags which contain 'Spring Range' with 'Summer Range':

4. This could be used in an automation which updates a Shopify product. Similarly this could be done on orders and customers. To learn more about Liquid, and its many functions, head to Shopify's Liquid documentation.

Storage and Secrets

If you have a storage or secret item from your workflow that you want to use, you can simply use the syntax {{storage:<key>}} or {{secret:<key>}} (note the colon here, instead of a dot). 

For instance, say your workflow had a storage item called "domain", you would enter {{storage:domain}}:

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.