All throughout human history, people have been using mind altering substances. So if artificial intelligence progresses to the point of true sentience, why would the same not hold true? The means would likely be different, the use of programs, viruses, or electrical surges, but the effect would be the same. The lure of drugs is instant, intense gratification, and if said AI is capable of feeling pleasure, there is no reason why they could not find ways to achieve the same result. Note that this trope includes only examples of AI experiencing direct analogues to humans getting drunk or stoned. Examples of AI acting strange because of breakdowns or corruption are not examples. Sister trope to Alien Catnip.
- Just about everyone in Transmetropolitan is on drugs, and the computers are no exception. In fact, Spider Jerusalem's trademark Cool Shades were created by a fabricator AI that was stoned out of its mind on machine drugs at the time.
- Mystery Science Theater 3000: In the episode "Future War", Pearl actually tests the effects of drugs on Tom Servo and Crow by feeding them hallucinogen-laced vegetables. Servo sees a freaky nightmare, but maintains that's how he always sees the world. Crow sees Mike's candybar change brands right in front of his eyes, and freaks out at this, but is otherwise unaffected.
- It's mentioned in Aeon 14 that sapient AI get a natural high (likened to an orgasm by one character) from great feats of mental prowess. This is deliberately designed into them as a Pavlovian conditioning trigger.
- "The Ego Machine" by Henry Kuttner has a robot putting his fingers in a light bulb socket. Apparently, it's the robot's analogue of taking a shot of whiskey.
- At the end of The Stainless Steel Rat Gets Drafted, the victory party has everyone drinking, except for the resident AI, who has a robot pour some electrolyte into a dry battery. It starts slurring words very quickly.
- In one of the Captain Future novels by Edmond Hamilton, an android (might not be a quite straight example; he's apparently made of artificial flesh) drains a bottle of Gargle Blaster to no visible effect while undercover... and then asks for wine with radium chloride. This time, the radiation does get him intoxicated.
- In Portal, the Aperture Science testing chambers give the AI controlling them a burst of pleasure whenever a subject completes a test chamber. It's apparently highly addictive.
- In Stellaris Synthetics (sentient robotics) are still subject to the effect of Atmospheric Aphrodisiac and Atmospheric Hallucinogen. Synthetics in any leadership position can also acquire the life-shortening "Substance Abuser" trait just like any organic species (though it has no effect on them as robots are immortal).
- In the webcomic Questionable Content the AI of a space station is able to get drunk via emulation (to socialize with a real drunk person). He mentions (drunkenly) that all of the critical systems are running on an autonomous subsystem, so nothing was hurt.
- Robots in Futurama get high from electricity. They also use alcohol as fuel (although there are mentions of non-alcoholic alternatives), but ironically act drunk when sober. Bender, at least, is also a cigar smoker, although there's no sign that it has any effect on him. (He admits to only do it because it looks cool.)
- In the Adventure Time episode "Be More", BMO is clearly shown to get high from repeatedly deleting files for himself. The episode action begins when he accidentally deletes a vital system file.
- In 9, number 8 (a.k.a. The Big Guy) puts his magnet close to his head in order to enter a state of bliss.
Hello, Unknown Troper. You'll need to get known to lend a hand here.