Rpi zero w to replace rpi3

hello, i want to replace rpi3 by rpi zero w on my pilot gateway, help please