Shotguns can be found from expeditions in the wasteland. They require shotgun ammo to fire.
Shotguns can be fired as a single shot (1) or in a clip (6)
Shotguns can also be turned into a shotgun trap (workbench level 3) this will require trip wire and 2 shotgun shells to arm and use. They must be armed while you are under attack.