Immediate medical attention is required if a cough is severe, persistent, or accompanied by symptoms like chest pain, difficulty breathing, or coughing up blood. These could indicate serious respiratory issues or significant chemical exposure symptoms.