Automatic fill types of urn are designed to be plumbed in to a water supply and contain an electrically actuated stop cock. There will be sensors to detect the water level and temperature, feeding into some sort of controller which switches the element and operates the stop cock.