Mae Hartley and Gabby Harrison are intelligent tenth graders. Mae has a crush on a jock named Jaden and thinks that he is going to invite her to the Homecoming dance. However, she is publicly humiliated by Nevaeh, a mean cheerleader girl who is already going with Jaden. In her embarrassment, Mae claims that she already has a boyfriend. To cover the lie, Gabby offers to program a virtual boyfriend for Mae using computer software known as X-17, which they believe is used by Mae's father, Dr. James Hartley, to design high definition video game characters for his company. Gabby successfully creates a virtual boyfriend according to Mae's direction, and Mae names him Albert.
The software goes haywire and short circuits James' computer. Mae's brother Bart agrees to fix the computer if Gabby will go to homecoming with him. The next morning, Albert actually arrives at school and becomes popular among the students. Albert is able to speed read and throw/kick harder than normal humans. Bart and Gabby learn that she created a robot soldier and hacked into the Pentagon to do so. They also learn that James actually works for the Pentagon. General McFee discovers the X-17 prototype robot soldier, who is Albert, is missing.
Later that day, Albert asks Mae to Homecoming. Feeling overwhelmed, she tries to explain to Albert that she does not feel like she deserves to be his girlfriend. Gabby and Mae talk privately. Gabby thinks the whole thing is getting out of hand and Albert is coming between them. Mae eventually agrees to go with Albert to the dance.
At the Hartley house, Bart and Gabby witness Zephyr, Weevil and Pox, members of the international arms dealer group Black Sigma, breaking into the house in search of the prototype soldier. During a school football game, Gabby unsuccessfully tries to warn Mae about Albert being a robot soldier, but the two get into an argument. Albert is chosen to play in the game and helps the team stage a comeback. Army soldiers led by McFee arrive at the game following an EMP-caused power outage caused by Black Sigma that short circuits Albert's wiring.
The Black Sigma members are captured by the army and Albert begins a global mission to fight danger. Mae and Gabby are told by McFee that they must forget about Albert's existence. Mae is upset, but she believes that Albert will still arrive for the homecoming dance, and James is surprised when he does. McFee tells James that the army has known all along that Albert would return for the homecoming dance. McFee plans to retrieve Albert, but James convinces him to wait until Albert completes his mission, which is to kiss Mae at the dance. McFee and the army lead a mission to make the night perfect for Albert and Mae, which includes stuffing the ballot box to make them the homecoming king and queen.
Nevaeh tries to ruin Mae's night but is dumped by Jaden in the process. When Mae is crowned homecoming queen, she feels conflicted, while Nevaeh is disappointed. Jaden tells Gabby and Bart that he originally intended to ask Mae to homecoming, but was not brave enough to do so. Gabby and Mae reconcile.
Mae and Albert dance, but as he attempts to kiss her, she backs away and reveals that even though the moment is perfect, it does not feel right. Mae realizes she wants a relationship with a real boy who is not perfectly manipulated. Albert is impressed by her emotional depth. He points out that the army is here to retrieve him, and Mae fulfills his request to initiate his self-destruct after he tells her that it is what he wants. Albert bids her goodbye and begins to pulsate with lights. Gabby, Mae, and the guests watch as Albert breaks out of the venue through the ceiling and is destroyed.
Bart covers and thanks Principal Fragner for the 'awesome special effects'. The party continues, and Jaden asks Mae out. She tells him she will reply later. Mae and Gabby are excited that Jaden told Mae how he feels, but Mae says no boy will get in the way of their friendship. However, Gabby reveals that she has changed her mind about boys and is now dating Bart.
Production began in Toronto, Ontario, Canada,[3] and was filmed at North Toronto Collegiate Institute primarily.[citation needed] It is directed by Paul Hoen, executive produced by Robin Schorr and Adam Kossack, co-executive produced by Dan Seligmann and written by Jason Mayland.[3]