V Los Angelesu bližnje prihodnosti zgodba spremlja zapletenega in vase zaprtega pisatelja Theodora, ki za denar piše ganljiva, sočutna pisma za svoje naročnike. Strtega srca po koncu dolgoletne ljubezenske zveze začne nenavaden odnos z naprednim računalniškim operacijskim sistemom, ki je izdelan tako, da individualno ugodi vsem potrebam svojega uporabnika. Theodore tako spozna umetno inteligenco z zapeljivim ženskim glasom po imenu Samantha: presenetljivo duhovit, domiseln in občutljiv digitalni algoritem. Medtem ko njene potrebe in želje naraščajo vzporedno z njegovimi, se njuno prijateljstvo sčasoma spremeni v romantično ljubezen ter nenavadno intimen odnos.
Theodore is a lonely man in the final stages of his divorce. When he's not working as a letter writer, his down time is spent playing video games and occasionally hanging out with friends. He decides to purchase the new OS1, which is advertised as the world's first artificially intelligent operating system, "It's not just an operating system, it's a consciousness," the ad states. Theodore quickly finds himself drawn in with Samantha, the voice behind his OS1. As they start spending time together they grow closer and closer and eventually find themselves in love. Having fallen in love with his OS, Theodore finds himself dealing with feelings of both great joy and doubt. As an OS, Samantha has powerful intelligence that she uses to help Theodore in ways others hadn't, but how does she help him deal with his inner conflict of being in love with an OS?