An Amazon Alexa unit "challenged" a 10-year-old girl to put a plug halfway into a socket and attempt to touch the prongs with a coin.
The suggestion came after the child asked the virtual assistant for a "challenge to do".
"Plug in a phone charger about halfway into a wall outlet, then touch a penny to the exposed prongs," the smart speaker said.
Read this next: A new AI will write lyrics for any instrumental track
Amazon stated that it corrected the problem as soon as it was made aware of it.
The girl's mother, Kristin Livdahl, claimed it happened after the family in the United States asked the Echo smart speaker for physical activities to undertake because the weather was bad outdoors.
Read this next: The best albums and EPs of the year 2021 so far
She posted a snapshot of the response from the activity log.
She said: "We were doing some physical challenges, like laying down and rolling over holding a shoe on your foot, from a [physical education] teacher on YouTube earlier. Bad weather outside. She just wanted another one."
Responding to her tweet, Amazon said: "Hi there. We're sorry to hear this! ".
OMFG My 10 year old just asked Alexa on our Echo for a challenge and this is what she said. pic.twitter.com/HgGgrLbdS8— Kristin Livdahl (@klivdahl) December 26, 2021
A statement to the BBC said: "Customer trust is at the centre of everything we do and Alexa is designed to provide accurate, relevant, and helpful information to customers.
"As soon as we became aware of this error, we took swift action to fix it."
Around a year ago, the deadly game known as "the penny challenge" started circulating on TikTok and other social media platforms.
Read this next: How emerging DJs are using TikTok to reach millions
Inserting metals into live electrical sockets can result in electric shocks, fires, and other complications.
This has also sparked debate on social media about having artificial intelligence in the home.
It also got people talking about how the structure of plug sockets should be better equipped to prevent harm, such as the plugs available in the UK.
Read this next: A new vinyl subscription service is coming to Amazon
Aneesa Ahmed is Mixmag's Digital Intern, follow her on Twitter