Shangguan Sui, a modern woman who died from overwork, transmigrates into the body of a three-year-old princess in a novel she once read. She awakens in the palace during a critical moment when an imperial physician, bribed by Consort Li, is preparing to administer poisoned medicine under the guise of treatment. Through telepathic communication, Shangguan Sui reveals the conspiracy to her mother, Consort Chen, who is currently out of favor in the imperial harem. Consort Chen acts swiftly, replacing the physician and summoning the Chief Imperial Physician, who exposes the tampered medicine. The Emperor, Shangguan Lin, who can also hear his daughter's inner thoughts, discovers that Consort Li orchestrated the assassination attempt. He punishes Consort Li and Physician Zhang, securing his daughter's safety and beginning to favor Consort Chen.
As Shangguan Sui spends more time with her father in the Imperial Study, she uses her knowledge of the original plot to prevent future disasters. She reveals that the Marquis of Zhenbei, a trusted general, plans to rebel in two years and that the Emperor will eventually be assassinated, leading to the kingdom's decline. Acting on her warnings, Shangguan Lin investigates the Marquis and uncovers embezzlement of military funds. He also learns that his eldest son, Shangguan Jue, is being slowly poisoned by a woman named Xiao Yun, who is secretly working for Consort Xian. Shangguan Jue uses this information to trap his enemies, exposing Consort Xian's involvement in the poisoning plot.
The story further develops when Shangguan Sui's maternal uncle, Lou Changqing, is falsely accused of murder by the Marquis's son, Lü Yuan. Shangguan Lin personally intervenes at the Jingzhao Prefecture, where Shangguan Sui's telepathic insights help identify the true killer and the corrupt prefect. Lou Changqing is exonerated and promoted, strengthening the Emperor's military ranks. Meanwhile, Consort Xian attempts to frame Consort Chen for causing a miscarriage during a garden outing. However, the Emperor sees through the scheme, punishes Consort Xian, and grants Consort Chen authority over the harem.
Throughout these events, Shangguan Sui navigates palace intrigue while enjoying a luxurious life free from the corporate slavery of her past. Her father, once viewed as a tyrant, becomes a protective and doting parent who relies on his daughter's foresight to stabilize the kingdom. The narrative follows the gradual dismantling of the Marquis's power and the exposure of various conspiracies within the harem, as the royal family works together to prevent the tragic fate outlined in the original novel.