In 1688 Gotti was professor of philosophy at the Dominican College of Saint Thomas, the future Pontifical University of Saint Thomas Aquinas, Angelicum. He also taught in Mantua and Bologna. In 1708, Gotti was elected Prior of the Dominican monastery in Bologna.
On April 30, 1728, Pope Benedict XIII made him Cardinal Priest and appointed him Patriarch of Jerusalem.
Together with Charles René Billuart, Gotti was the leading proponent of the Thomistic school in his time. Gotti was seen as a serious contender to be elected Pope at the Papal conclave of 1740, when Cardinal Lambertini said to the College of Cardinals "If you wish to elect a saint, choose Gotti.
A statesman, Aldrovandi. An honest man, me".