written agreement: a legal document summarizing the agreement between parties
agreement: the statement (oral or written) of an exchange of promises
scriptwriter: someone who writes scripts for plays or movies or broadcast dramas