An automated external defibrillator (AED) is a portable device that analyzes the heart rhythm and delivers an electric shock to restore normal rhythm if needed. It provides audio and visual instructions to guide the user on how to use it.