Is a gun responsible for a shooting? If I build a Rube-Goldberg machine to drop a rock on your head, is the machine responsible?
In this case, doing harm was the intent of the machine and/or it's programming. As such, the maker is clearly responsible. If the harm was unintended/unexpected and there were no clear negligence, then I'd have a completely different conversation on this.
Things get more difficult as you get further away from the original source, but -- generally speaking -- if the result is generally what you intended from an action (or series of actions), then it's pretty clear that you're responsible. This is even true where there is a human intermediary. If I pay a hitman to kill my ex wife, I can still be arrested for first degree murder -- even if he kills the wrong person by mistake.