What steps do nations go through in the creation of a treaty?

Generally speaking treaties begin when nations have a common interest in a particular issue. At first low level diplomats from each side or sides begin certain steps to accommodate the location where higher level diplomats will meet to discuss how a situation can be agreed upon. Thus a treaty's steps beginning with lower level officials and diplomats and reach higher levels as progress is made.