What is the purpose of your document? Is it already defined by the assignment or by needs of your workplace or client? Often the purpose is already known–a professor will give you the assignment and explain the not only the purpose but the requirements for the assignment. Or perhaps you need to create advertising to attract clients.
If the purpose is not already defined then you need to determine the purpose yourself. To do this you need to understand your audience and the context for the document.