Cannabis is often positioned as an alternative to mainstream medicine. To keep up, some companies are now trying to fine-tune their offerings to remove the unpredictability long associated with marijuana.

From an electronic pot-recommendation program launched last month by Columbia Care to DNA analysis by startups such as Endocanna Health, the industry aims to create products akin to personalized or precision medicine, optimized based on genetics, lifestyle or even what kind of experience users want to have. Algorithms that can do so are seen as a holy grail for the cannabis industry, quelling the fears of first-timers and satisfying connoisseurs alike.

“This kind of technology could be a potential game-changer for plant-based medicines, including the cannabis industry,” Samoon Ahmad, a professor of psychiatry at NYU Grossman School of Medicine and co-author of “Medical Marijuana: A Clinical Handbook,” told me in an email exchange. “Going back more than 100 years, researchers have been frustrated by how unpredictable a user’s experience with different samples of cannabis can be.”

Columbia Care, a New York-based multistate operator with expertise in medical cannabis sales, saw a big gap in the market when it came to matching customers to different plant strains. Jesse Channon, the company’s chief growth officer, said it took about a year to develop its recommendation program, known as Forage.io.

Forage, which resembles an app and is available online or on kiosks in its stores, asks users questions as simple as “How do you want to feel today?” A digital “mood ring” helps the customer indicate what they want to experience, and then the questions determine what kind of format they want to consume it in.

“It’s like a guided discovery experience,” Channon said. It can take sales staff years to master the kinds of recommendations that Forage can now help all employees make quickly in its dispensaries. The program, which the company plans to roll out to almost 100 dispensaries, has also served as a conversation-starter with customers, he said.