The manufacturing industry is moving toward intelligent manufacturing, in which intelligent machines will replace workers to perform repetitive tasks. Currently, there are still some issues with the automation applications: (1) it is necessary for workers to neatly line up workpiece before robot arm can grab the workpiece; (2) the routing path created by offline programming software needs to be adjusted accordingly to the workpiece condition by workers on factory floor; (3) it is difficult to achieve good machining quality due to workpiece positioning errors, tool wear and so on. This paper focuses on the development of intelligent automation modules to solve automation application problems, including predicting machining quality, automatic routing path generation, random picking, and automatic compensation of errors. In addition, this paper integrates the modules into an automatic gear edge grinding system to solve the problem of needing additional manual grinding after gear machining, and also aims to improve the machining efficiency.