<!-- mobian-agent-page publisher="time" canonical="https://time.com/5062514/harry-potter-robot/" -->

---
title: Botnik Robot Writes a Harry Potter Fan Fiction Chapter
description: A predictive text algorithm wrote a new chapter for Harry Potter — and it sounds like something Rowling could write in an alternate universe
canonical: https://time.com/5062514/harry-potter-robot/
author: Raisa Bruner
article:opinion: false
article:content_tier: free
article:published_time: 2017-12-13T16:06:12.000Z
article:modified_time: 2026-04-13T07:49:16.296Z
og:title: Here&#x27;s How a Robot Writes the Next Harry Potter Chapter
og:description: Artificial intelligence has crossed over into the Wizarding world
og:url: https://time.com/5062514/harry-potter-robot/
og:site_name: TIME
og:image: https://static.time.com/v3/assets/bltea6093859af6183b/bltde093bcdab65f2d0/6988d9b9bc6cfc69913e2a3c/time-logo.jpg?branch=production
og:image:width: 1200
og:image:height: 675
og:image:alt: TIME
og:type: article
twitter:card: summary_large_image
twitter:title: Here&#x27;s How a Robot Writes the Next Harry Potter Chapter
twitter:description: Artificial intelligence has crossed over into the Wizarding world
twitter:image: https://static.time.com/v3/assets/bltea6093859af6183b/bltde093bcdab65f2d0/6988d9b9bc6cfc69913e2a3c/time-logo.jpg?branch=production
---

# Here's What Happens If You Let a Whimsical Robot Write the Next _Harry Potter_ Chapter


![Raisa Bruner](https://static.time.com/v3/assets/bltea6093859af6183b/blt7115d86fab01279f/698938c17cdbacff0cd5dc5b/r_bruner-web-resized.jpg?branch=production&width=3840&quality=75&auto=webp&crop=1:1)

by 

[Raisa Bruner](https://time.com/author/raisa-bruner/)


![Raisa Bruner](https://static.time.com/v3/assets/bltea6093859af6183b/blt7115d86fab01279f/698938c17cdbacff0cd5dc5b/r_bruner-web-resized.jpg?branch=production&width=96&quality=75&auto=webp)

## Raisa Bruner


Dec 13, 2017 4:06 PM UTC

![Raisa Bruner](https://static.time.com/v3/assets/bltea6093859af6183b/blt7115d86fab01279f/698938c17cdbacff0cd5dc5b/r_bruner-web-resized.jpg?branch=production&width=3840&quality=75&auto=webp&crop=1:1)

by 

[Raisa Bruner](https://time.com/author/raisa-bruner/)


![Raisa Bruner](https://static.time.com/v3/assets/bltea6093859af6183b/blt7115d86fab01279f/698938c17cdbacff0cd5dc5b/r_bruner-web-resized.jpg?branch=production&width=96&quality=75&auto=webp)

## Raisa Bruner


Dec 13, 2017 4:06 PM UTC

Watch out, writers: artificial intelligence is coming for our jobs. Just take a look at this chapter of [Harry Potter](http://time.com/5031763/harry-potter-tolerance/) fan fiction.

“[Harry Potter and the Portrait of What Looked Like a Large Pile of Ash](http://botnik.org/content/harry-potter.html)” is a three-page chapter of literature produced by an algorithm. Trained by Botnik Studios on the meat of Rowling’s [expansive magical universe](http://time.com/5027234/fantastic-beasts-jude-law-dumbledore-crimes-grindelwald/), it’s an author-assisted predictive text document; creator Jamie Brew and other writers helped nudge the algorithm in the right direction. The result is just as weird — and, uncomfortably for some of us, readable — as you might expect, filled with the characters and whimsical vocabulary notable to Rowling. (Logical plot, however, is not its greatest strength.)

Here’s the first paragraph:

---

> “”

---

Of course, it does drift in unusual directions at times, sounding a bit like a randomized MadLib with Harry Potter fever. For instance: “Ron’s Ron shirt was just as bad as Ron himself,” it continues. “‘If you two can’t clump happily, I’m going to get aggressive,’ confessed the reasonable Hermione.” (Review: some hits, some misses, and a shift in tone towards the oddball reality of [magical realism](http://time.com/4799254/one-hundred-years-of-solitude-documents/).)

This [isn’t the first time](https://www.theverge.com/2017/12/12/16768582/harry-potter-ai-fanfiction) that Brew has crafted similar works of fiction. In fact, the Botnik Labs predictive text generator is [available to all](https://github.com/jbrew/pt-voicebox) as open-source code on Github. Use at your own risk.

> [](https://twitter.com/botnikstudios/status/940627812259696643)

```json
[{"@context":"https://schema.org","@type":"NewsArticle","@id":"https://time.com/5062514/harry-potter-robot/","mainEntityOfPage":{"@type":"WebPage","@id":"https://time.com/5062514/harry-potter-robot/"},"headline":"Here's What Happens If You Let a Whimsical Robot Write the Next Harry Potter Chapter","datePublished":"2017-12-13T16:06:12.000Z","dateModified":"2026-04-13T07:49:16.296Z","description":"\"Magic: it was something that Harry Potter thought was very good.\"","url":"https://time.com/5062514/harry-potter-robot/","keywords":["Newsfeed","Technology","Books","Harry Potter"],"thumbnailUrl":"","author":[{"@type":"Person","name":"Raisa Bruner","jobTitle":null,"url":"https://time.com/author/raisa-bruner/"}],"articleSection":"","image":[],"publisher":{"@type":"Organization","name":"Time","url":"https://time.com/","logo":{"@type":"ImageObject","url":"https://time.com/images/logo.png","width":528,"height":156},"foundingDate":"March 3, 1923","sameAs":["https://www.facebook.com/time","https://www.instagram.com/time/?hl=en","https://twitter.com/time","https://www.pinterest.com/timemagazine"]}},{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"item":{"@id":"/tag/time-section-newsfeed/","name":"Newsfeed"}},{"@type":"ListItem","position":2,"item":{"@id":"https://time.com/5062514/harry-potter-robot/","name":"Here's What Happens If You Let a Whimsical Robot Write the Next Harry Potter Chapter"}}]}]
```

