lay it down in your track and open it up the same way you would a piano roll. Then any slider or knob anywhere in LMMS can be dragged into the automation track by holding ctrl.
Here is a video that breaks it down quick and easy clearly
https://www.youtube.com/watch?v=7-vRYgPTSYY