Almost a decade ago, I started designing services for theme parks, a job that’s harder than you might think. It takes extraordinary effort to make theme parks believable. To be believable, they must be immersive. To be immersive, they must be technologically sophisticated. But make them too sophisticated, and they’re no longer believable. The best theme parks use technology as a means to an end, freeing visitors to become joyously lost in the moment. They feel simple, intuitive, and magical. Understanding how theme parks enchant visitors could help us redesign some of our most important social institutions—like hospitals, schools, and other environments–that have become mind-numbingly tedious.

Immersive worlds have a rich history. From the municipal parks of Frederick Law Olmsted to the World Expositions to modern-day theme parks, examples abound of aspirational utopias that let you travel without leaving home. Technology has always figured prominently in creating a theme park’s fantasy. Think about the 3-D rides at Universal Studios and the optical illusions and animatronics at Disneyland’s Haunted Mansion. Today, technology is also being used to improve some of the more mundane aspects of an amusement park’s experience, so that the magic doesn’t stop when you climb off the roller-coaster.

Matt Stroshane/Disney

Tens of thousands of people have already used My Disney Experience, a system that includes a booking engine and mobile app to create and modify plans at Walt Disney World Resort in real time, as well as an electronic wristband called the Disney Magic Band to avoid lines, automate payments, and have personalized interactions with Disney characters and rides within the park. The goal of Disney’s system, and others such as Vail’s longstanding RFID ski passes, is to remove logistical obstacles to the enjoyment of the things the visitor is really there to see.

So what does a well-designed environment look like? Varied rhythms are key—you need enough to engage you but not so much you get exhausted or stressed out. Think about what guided one of the original “experience designers,” Frederick Law Olmsted, who created Central Park in New York City and the Emerald Necklace in Boston. Olmsted had a knack for arranging natural scenery to create a sense of mystery and discovery, which drew people in and ushered them smoothly through a space. More than a century later, his work influences Disney parks, where the park architects mix “decompression zones” in with the attractions to let people rest before finding something new to explore. A careful observer may notice that the middle sections of many Disney buildings are fairly plain, saving the ornate details for the corners. It creates a kind of visual friction that draws your eye and sparks curiosity. It can be seen as a kind of greeble—the model maker’s trick of adding non-essential surface details—to add a bit of novelty and visual intrigue, and to keep you moving.

Hector Palma Tellez via Shutterstock

Visitors also respond well to an experience that feels like a good story—it has a clear beginning, middle, and end. Common types of digital technologies can create this kind of narrative in the physical world: a sign-up and booking engine before you start your journey, a wayfinding tool when you’re in the thick of it, and a way to capture and relive your memories later, or pick back up where you left off. Something as simple as the “impromptu” dance party that takes place at the end of the Minions attraction in Universal Parks creates a sense of celebration to the experience the Guest has just had, and primes them for experiences to come. (The way Uber also books, tracks and then rates drivers when using their service also applies here as well.) The idea is to replace transactional moments that dehumanize visitors with scenes and rituals that feel important.

The technologies and narrative devices common at theme parks could be easily applied to other institutions. Consider the hospital or medical clinic of the near future. While you don’t expect to have fun visiting one of these places, you do at least hope to avoid being overwhelmed, bored, annoyed, confused, or frightened. Taking a “guest-first” approach, in the parlance of the theme park industry, the hospital offers a computer system that, through a series of encounters, gets to know you, and across visits remembers you and your medical history. It allows the hospital to route you through an experience that feels relatively stress-free, intuitive, supportive and, most importantly, centered around you. Logistics like transportation are orchestrated for you, redundant administrative tasks are minimized, and doctors and nurses have information at their fingertips that helps them put your care first. Something that is typically cold and impersonal becomes simple and human, not just while you’re in the building, but before and after your visit, within the larger context of your personal health.

Education is another area where expertly managing the experience is critical. As with healthcare, the physical location, the campus, is only part of the story. At Big Tomorrow we worked with The University of Texas Rio Grande Valley (UTRGV) to design a better experience for students who juggle family and work responsibilities and often travel long distances for school. Rather than build a single new, state-of-the-art, centralized campus, we recommended smaller buildings integrated with neighborhoods and community hubs where students could have access to Wi-Fi, group study spaces, childcare services, and areas where they could virtually connect into their classes if they couldn’t make it in person. We also proposed a Wi-Fi-enabled bus system to move people in a timely fashion and allow students to fit family, work, and school into their schedules.