I was watching an episode of Bob's Burgers where the characters recite stories that are largely unrelated to the actual plot of the episode, while the stories themselves are the actual content of the episode.
More specifically, one of the show's supporting characters, Gayle, wants to attend a social event and holds a contest to determine who can attend the event with her. Three of the main characters all draft their own wildly different stories to recite to Gayle, and the author of best story written gets her extra event ticket. The rest of the episode is spent depicting the stories the characters wrote.
I've heard TV shows in this style referred to as episodic shows, where the setting between each of the show's episodes is wholly unrelated to the previous episode. But in this instance describing a single episode as episodic doesn't seem like the correct verbiage.