We show that neural networks trained by evolutionary reinforcement learningcan enact efficient molecular self-assembly protocols. Presented with molecularsimulation trajectories, networks learn to change temperature and chemicalpotential in order to promote the assembly of desired structures or choosebetween competing polymorphs. In the first case, networks reproduce in aqualitative sense the results of previously-known protocols, but faster andwith higher fidelity; in the second case they identify strategies previouslyunknown, from which we can extract physical insight. Networks that take asinput the elapsed time of the simulation or microscopic information from thesystem are both effective, the latter more so. The evolutionary scheme we haveused is simple to implement and can be applied to a broad range of examples ofexperimental self-assembly, whether or not one can monitor the experiment as itproceeds. Our results have been achieved with no human input beyond thespecification of which order parameter to promote, pointing the way to thedesign of synthesis protocols by artificial intelligence.