This cohort study assesses changes in the volume of medical advice messages between 2019 and 2021, variation among pediatricians, and the association of volume with time spent working on the electronic health record outside clinical hours.