Automating a sprayer

Hi y'all. I am trying to automate a process but I'm looking for a good starting point so I don't have to reinvent the wheel. I am trying to mount a small spray head (with attached airline and water line) on some sort of a rail system moving on an xy axis. I suppose the ability to pivot the spray nozzle would be cool too.

I have done some process automation with Arduino before but nothing mechanical like this. My only idea so far is to modify a 3d printer, but I think that might be overkill.

Thanks for any help!