Programmer Lin Wanzhou transformed into the princess of the late Tang Dynasty. In order to change her destiny, she used modern technology to restore the machine skills and created the AI "Xuanji". However, Xuanji gradually awakens her sense of autonomy and becomes involved in the undercurrent of imperial power with the older AI "Huntian". When the cold algorithm tries to prune human variables, she must choose between code and emotion to protect the last "human redundancy".