Before you start implementing this for your own services, make sure you meet the guidelines[1] for being approved by Google. Specifically, you must have a history of sending hundreds of emails a day to gmail users.
This isn't for small projects (yet, at least).
[1] https://developers.google.com/gmail/actions/registering-with...