First of all, you want to insert an Instr. Automation device in the track where you want to automate the plugin.
This can be any track, but it’s good practice to keep the notes and automation together.
Next, consider how you want to automate the device. Is it a requirement that this goes through the pattern editor?
Because, even as this is possible I would still prefer to use graphical automation.
Once you are comfortable with this, consider going one step further and use something like the LFO device to “automate” the parameter (e.g. make the LFO modulate the parameter, and then automate the offset of the LFO instead). You can go pretty crazy with meta-devices