The invention relates to an automatic box pasting machine. The automatic box pasting machine solves the problems that due to the fact that during working of an existing automatic box pasting machine, the phenomenon that paper is conveyed slant occurs sometimes and after paperboard is conveyed to a next processing region, errors occur, the product percent of pass is greatly lowered and great economic losses are caused. The automatic box pasting machine comprises supports, installation plates, elastic pieces, swing arms, idler wheels, limiting pieces and baffles. The swing arms are hinged to the installation plates, the idler wheels are hinged to the swing arms, the limiting pieces are matched with the swing arms in a limiting mode, the idler wheels roll the paperboard on a belt, the belt is arranged slant, the baffles are located on the lateral faces of the belt, and the belt drives the paperboard and the idler wheels to be matched to enable the paperboard to move close to the baffles. According to the automatic box pasting machine, a deviation rectifying device is used for rectifying the slant paperboard, the paperboard makes contact with the slant plane belt and a row of parallel bearings, so that tension is generated, the paperboard then moves towards the baffles on the lateral sides and relies on the baffles, therefore, the problem that waste products are generated due to the fact that paper inclines is solved easily, and greater economic benefits are brought to factories.