I would think you need a Template object by MxTemplate, a Object of type Document Type and a Input object that contains a starting poit for your data. You would also need a edited excel template. Do you have some more details at what point you currently are?
Would it be possible to provide more information about your setting of the template, your creating microflow and propably the data model?