how to build an automated zme