Amazon Reorder though routine

Hey guys,

I have a few things I want to reorder with automation though Amazon.

I have counters for both washing detergent and dishwasher tablets, once it gets to 5, I wanted to trigger a routine though Alexa Media Player to automatically reorder.

Can this be done?

The other thing I wanted to reorder automatically is filament. I have octoprint set up in HA, but was wondering if anyone had set up a filament counter?

I trying to find out if you can roughly count print hours, still investigating that though