I've been missing this ability since Now On Tap was replaced with Google Assistant. It was the function I thought most useful and I was very salty when I found out they didn't carry it over. This setup is perfect and does exactly the same thing that I've been missing. It brought a smile to my face running it the first time. It's so nice that you even create a quick settings tile as part of it all.
Great work, you're a true hero!
Bringing Back Now On Tap 2018-10-02
Remember Now on Tap and how Google removed it from Android? It's back!