Emergent Behavior

Emergent Behavior is Curie's companion quest in Fallout 4.

Detailed walkthrough
After gaining 250 affinity points with Curie, she will ask the Sole Survivor if they have a moment to speak. She claims that her robotic nature and its lack of "Human Inspiration" prevents her from progressing any further in her research, and then asks for the Sole Survivor's help to become more human so that she may further her research.

Once the quest Dangerous Minds has been completed, the player can then suggest asking Doctor Amari, a memory specialist and affiliate of the Railroad at the Memory Den, for help.

After dialogue with Doctor Amari, it seems that this kind of transfer could work by using a synth body. Doctor Amari tells the player that she has performed risky memory-wiping procedures on willing synths desperate to escape the Institute, and that those whose procedures have failed are now in a persistent vegetative state as a result, giving the opportunity for Curie to use one of these synths if their caretaker consents.

After waiting 24 hours, one will find either Glory or an NPC named Caretaker with a female synth, designated G5-19, waiting with Curie and Doctor Amari in the basement of the Memory Den. Upon talking with Glory or the caretaker, the process will commence and Curie's mind will be transferred into the generation 3 synth body where she experiences new and confusing human feelings, leaving her old Miss Nanny body empty and deactivated.

Bugs

 * If Doctor Amari is killed in any way, the objective may stay on "Bring Curie to Doctor Amari" and will not fail, making it impossible to complete the quest. This effectively eliminates the chances to get not only synth Curie, but her companion affinity perk as well.
 * Sometimes upon successfully transferring her to her new body, Curie will have a glitched smoking animation while idle with no weapon equipped. No workaround has been identified yet.
 * This may be fixed by reloading an old save and traveling to the Railroad. Glory will then be the caretaker of Curie's synth, and Curie will not be smoking.
 * This can be fixed through the use of console commands by selecting her and typing.
 * If the Miss Nanny version of Curie has been flagged as protected somehow, the script will fail to kill the Miss Nanny. If one speaks to it, it will speak lines from the stage of the quest where Curie waits with Doctor Amari.
 * Sometimes, when the scene begins for Curie to be transferred to her new body, the old Curie (Miss Nanny) is not present, but the voice is heard. After completing the transferral, the old Curie body can be found upstairs in the main room of the Memory Den.
 * Upon completion of the quest, one can get two instances of experience being awarded.
 * Doctor Amari will go to the basement to wait for the caretaker. Sometimes the caretaker will already be there, though Amari won't acknowledge her existence unless the player first waits 24 hours.