On the desired flow step, in the PostAction section, call the connection action you created for document generation.
Click Save.