While attending Bergen County Academies, Viswanathan showed her writing – including a several-hundred-page novel on Irish history she had already completed – to Katherine Cohen of IvyWise, a private college admissions consultancy which Viswanathan's parents had hired to help with their daughter's application process. Through Cohen, Viswanathan was signed by the William Morris Agency under senior agent and William Morris partner Jennifer Rudolph Walsh and referred to book packaging company 17th Street Productions (now called Alloy Entertainment), a media firm responsible for packaging the "Gossip Girl" and "The Sisterhood of the Traveling Pants" book series, among others. On the basis of an outline and four chapters of the novel that would become "Opal Mehta", Viswanathan eventually signed a two-book deal with Little, Brown and Company for an advance originally reported to be $500,000. She began writing the book the summer before college, and finished it during her freshman year at Harvard College, while taking a full course load. "Opal Mehta" was published on April 4, 2006, and Viswanathan was profiled by "The New York Times" on April 6, 2006.