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.
- Implied in the TRON franchise, with establishments like the End of Line club, the Internet hub's Progress Bar, and the unnamed club seen frequently in TRON: Uprising where Programs are seen drinking and relaxing like humans would in a nightclub. A Dummied Out part of TRON 2.0 even had Jet questioning an extremely intoxicated Program.
- 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, Otho the 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 Eclipse Phase "narcoalgorithms" are programs that simulate drugs for synthmorphs and infomorphs, which can be AIs or uploaded humans. There's narcoalgorithm equivalents to all of the assorted designer drugs in the rulebook as well as a couple unique ones: DDR ("Dance Dance Robot") causes synths to jerk and twitch around randomly and makes movement pleasurable (it was originally a virus), while Linkstate causes users to share random memories with one another.
- 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 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. Earlier Pintsize and some of his friends got high by huffing WD-40, and intentionally installing glitchy graphics drivers as a hallucinogen in a separate instance. Later May got herself drunk at a party by downcycling her processor.
- Star Wars Downunder. The android Bluey drinks so much in the post-battle piss-up his head falls off.
- 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.