Take a few minutes to re-read Lester del Rey's 1938 SF classic, "Helen O'Loy":
Two young men, a mechanic, Dave, and a medical student, Phil, collaborate on modifying a household robot, originally meant only to cook and clean. They are more successful than they intended; despite the robot's household programming, it develops emotions. The robot, named "Helen O’Loy", falls in love with Dave. Dave initially avoids her and rejects her advances, but after some time he marries her and they live together on his farm...
Or spin up the ancient VCR and watch "The Lonely":
Or look up the true story of ELIZA:
The question of what it means to be sentient and who does (and does not) count as "human" has always been central to SF. And once you add in loneliness and the human need for love, complicated questions about the true nature of an artifact we ourselves created -- Is it merely mimicking sentient behavior or does it somehow really understands me? Does it really really care about me? -- immediately arise.ELIZA is a computer program and an early example of primitive natural language processing. ELIZA operated by processing users' responses to scripts, the most famous of which was DOCTOR, a simulation of a Rogerian psychotherapist. Using almost no information about human thought or emotion, DOCTOR sometimes provided a startlingly human-like interaction. ELIZA was written at MIT by Joseph Weizenbaum between 1964 and 1966.When the "patient" exceeded the very small knowledge base, DOCTOR might provide a generic response, for example, responding to "My head hurts" with "Why do you say your head hurts?" A possible response to "My mother hates me" would be "Who else in your family hates you?" ELIZA was implemented using simple pattern matching techniques, but was taken seriously by several of its users, even after Weizenbaum explained to them how it worked.
Her might very well be a fine new movie.
It is helpful to remember that it is also a very old story.