An AI-driven tool that tailors antidepressant treatment to individual patients was shown to improve outcomes for people with depression, compared to standard treatment, in a major international trial.