It is possible to insert the Piano implementation JS via GTM (Google Tag Manager), but we advise that you add it directly to the website as some systems might block GTM.
You would need to follow the steps of the regular AMP implementation described here.