If the machine intelligence is sentient, Id probably go with creating a character as a robot of sorts. One that's slightly malfunctioned, mainly due to gaining free will that created free will(the cause of the malfunction was created by the malfunction)