How to create an automated route