How to make Automation controller part-1