It's my belief that
Prototaxites, an ancient group of organisms that would make massive tree-like fossils just when plants were first starting to colonize land(and there were no plants taller than a few inches if even that at many points in their existence), was actually a kind of slime mold.

They used to be believed to be massive mushrooms/fungi, due to the structure of their fossils at a cellular level. However, this had been turned on its head due to analyses revealing that the fossils were laden with phenolic residues(iirc), which you find with woody fossils but not with fungi or mushrooms as the phenolic compounds come from the breakdown of lignin. Phenols are actually very extensively used by slime molds for various other purposes and some even produce cellulose too for their sporangia, their equivalent of a mushroom. The myxogastria also have lots of adaptations that would've made them dominant organisms on land long before the rise of land plants and likely they would've been so at their dawn too. I did a longer post about my idea
here, if you wanna read more.
I also wonder how much you can train a slime mold. How much they can learn. If I ever get the opportunity to then I want to do some tests with various chemical markers in petri dishes. I'd place the slime mold right next to the marker and the cell in which the chemical marker is trailed towards is where their treat is. Then for the next step I'd repeat the process but without any oats for them to eat at the spot, but once they got to the spot I'd feed them. In that sense I'd be able to see if they anticipated a reward based on that chemical marker.