Automatic filament drying in AMS 2 before/after print?

As per title, since one can’t print and dry filament at the same time, I would love a feature that will either:

  1. Automatically dry the filament once the print finishes.
  2. Automatically start the print once the drying timer is up.