I quickly show how I built the autotap flowchart using the automate app. The flow is configured to tap right where the raid: Shadow Legends replay button is.
Thanks for watching! Let me know if there's anything specific that you would like to see. If it's easy or quickly to do, I'll likely do it.