“When I get a new crew they look at the call sheets and go, ‘Are you out of your mind? You’re giving us 45 minutes to shoot two pages!’” said Lori Richardson, the producer and director of video content at Emtrain, a compliance training company. In a typical film, it might take at least half a day to shoot that amount, she said. “But I’m pretty quick on set and I keep it moving along.”

Laura Faye Smith, the actress who was harassed by Mr. Dillinger’s character, said it took about half a day to shoot her scenes.

She didn’t have to use too much imagination to get into character.

She said she once had a real-life job as a human resources manager, which included giving sexual harassment training. Then, one day, it happened to her: one of her superiors, who was also the boss’s father, put his arm around her, got right in her face, and said her high heels made her the perfect height for him to kiss her.

“No matter how much you know about this,” she said, “when it happens to you, it’s hard not to go into this thing of ‘did I bring this on somehow?’”

In an effort to make the scripts more relatable to these real-life experiences, film companies say they are trying to make videos more engaging, with better acting and higher production values. They also change up where scenes are set to make them more relevant to the companies who may be buying the films. Mr. Dillinger’s character harassed Ms. Smith’s twice — once in a printing plant and once in a retail setting.

Emtrain said it has created scenes that riff off current events, like the memo written by a Google engineer that said “personality differences” between men and women helped explain why there were fewer women engineers and high ranking executives at the company.