User define templates with fields mapping

Dear All,

I do have a request from user, to automate a letter generation using OL Connect.

However, this letter template is not fixed and fields mapping in the template is required.
Which means, during every batch run, user will provide the template (either in word / pdf file format) and database (OL Connect to retrieve data to map into the template).

Appreciate your advice on how to fulfill this requirement using OL Connect.

Thank you very much.

Regards,
Janice