You can look at the link below for all the information that you need:
Essentially, the person must have a valid reason for visiting, must have a way to support themselves without working illegally, must have significant ties to their home country, and must have the intent to return home.
A letter of invitation helps with some of this as it will help to show why the person is coming to the U.S., how much time they will need and that perhaps they will have a place to stay so they don't have to spend money. Usually you want to show that the person is going just for a few weeks or so. If it is longer than that, immigration will wonder why and will become suspicious. They are almost sure to deny someone that says they want to visit for 5 or 6 months unless they have very strong evidences of everything else I listed above.
So a letter of invitation should state why you are inviting them and that you will provide room and board while they are here visiting.
Now as to some of the ties, they will need to show that they have significant close family at home, property not easily sold, and a good job for a good company that they have had for awhile that a person would not normally abandon.
So if the person is young (or elderly and retired), without much money or any property, they could be denied. They would be a risk for staying illegal. Also, persons that are planning to travel with their spouse and children are a risk as well because some of their significant ties are actually going with them.
I mean some people have been approved with less, but I am trying to give you the idea for the best chance.
DISCLAIMER: Answers from Experts on JustAnswer are not substitutes for the advice of an attorney. JustAnswer is a public forum and questions and responses are not private or confidential or protected by the attorney-client privilege. The Expert above is not your attorney, and the response above is not legal advice. You should not read this response to propose specific action or address specific circumstances, but only to give you a sense of general principles of law that might affect the situation you describe. Application of these general principles to particular circumstances must be done by a lawyer who has spoken with you in confidence, learned all relevant information, and explored various options. Before acting on these general principles, you should hire a lawyer licensed to practice law in the jurisdiction to which your question pertains.
The responses above are from individual Experts, not JustAnswer. The site and services are provided “as is”. To view the verified credential of an Expert, click on the “Verified” symbol in the Expert’s profile. This site is not for emergency questions which should be directed immediately by telephone or in-person to qualified professionals. Please carefully read the Terms of Service (last updated February 8, 2012).