In the advanced library of draw.io, there are 4 auto-layout containers at the end of the library. There are vertical/horizontal tree/flow layout. When you connect shapes within these containers they are automatically laid out. Ideal if you want to create a quick org chart.

Vertical tree layout container animation

Vertical tree layout container animation