Reinforcement learning designs quantum repeater protocols for complex networks, moving beyond simple chain scenarios.