He was educated in Rome and received a doctorate in philosophy. On 16 December 1641, the day his uncle became a cardinal, Raggi was appointed a cleric of the Apostolic Chamber. He later became that body's treasurer-general. He was appointed Commissary of the papal troops during the Wars of Castro and Intendant-General of the galleys of the Papal State.[1]
At times when Cardinal Fausto Poli was not in Rome, Raggi acted at Majordomo of the papal household. Some historians have suggested that Urban intended to elevate Raggi to the cardinalate but was unable to prior to his illness and subsequent death in 1644.[1]
In 1646, as treasurer of the Apostolic Chamber, Raggi ushered-in major changes to the way fees were calculated and collected, reforming processes that had been the subject of concern during Urban's reign and increasing accountability.[2]