Earlier quoted context omitted.
Why can't shotguns be automated. Building a personal "anti-aircraft/drone" gun should be feasible.
They are. They're usually called CRAM or CIWS on ships (Close in weapons system).[0] They are used as the last line of defense on modern warships against missiles and other threats. Here you can see one of them in action: https://www.youtube.com/watch?v=KsVUISS8oHs [0] https://en.wikipedia.org/wiki/Close-in_weapon_system
They work okay against mortars and dumb munitions, though.