The input for the generate document action is a entity of system.filedocument.
The best approach here is to create an entity in your domain model that is a generalization of system.filedocument. Then in your microflow first create an object of this entity. After that you can use the newly created object as input for the generate document action.