AI - Doors / Navmesh

Can I ask how to make a door open automatically when an NPC is near?