Linking forms with word docs in data set

Question:
How to link Forms with Database (an agreement template) to generate an output ( a word document of the agreement incorporating the inputs in Forms)?

Product:
Wix Editor

What are you trying to achieve:
I am developing a website where the users can fill the form and based on these inputs (like names, addresses) the users will get an agreement customised as per their requirement.

What have you already tried:
I am new to this so I have tried to build a dataset by uploading the word firmat of agreements but I am not able to link the Forms with placeholders in word doc.

Additional information:
[Include any other pertinent details or information that might be helpful for people to know when trying to answer your question.]