With Sidr Shopify Macro Gmail Add-on, you can easily access Shopify order while reading emails, and apply macros directly!
Install Sidr Shopify Macro Gmail Add-on from the Google Workspace Marketplace.
The add-on works with any Gmail threads. Go to a thread, and click on the Sidr icon on the right-hand side.
The app will look at the last 5 orders from the customer. You can also change the email address by selecting the email field.
Click on any order to go to the order detail page. You can then select an existing macro. To set up a new macro, check out this help article: Macro Writing Instructions.
Now insert macro. You should be able to see a rendered message in your composer.