Shared with you
(at around 32 mins) The Chinese take-out box that appeared on the stock broker's desk is the same one that appeared in previous Pixar films like A Bug's Life (1998), Ratatouille (2007), and Inside Out (2015).
Pixar chose to portray the film's main character as a musician, because they wanted a "profession the audience could root for," and settled for a musician after trying for a scientist, which "[didn't feel] so naturally pure as a musician's life." Pete Docter described Soul as "an exploration of: Where should your focus be? What are the things that, at the end of the day, are really going to be the important things that you look back on and go, 'I spent a worthy amount of my limited time on Earth worrying or focused on that'?"
Animators used footage of several music performers, including jazz composer Jon Batiste, performing as reference for the film's musical sequences. By capturing MIDI data from the sessions, animators were able to retrace the exact key being played on the piano with each note and create the performances authentically.
In an initial draft of the story, 22 was the main character rather than Joe. 22 had a strong dislike for Earth, and the film took place entirely in the soul world. Joe was created to help show her why Earth is worth living in.
(at around 20 mins) The first soul assigned is number '108,210,121,415.' This lines up with the current (as of release) estimate from the Population Reference Bureau (PRB), which estimates that more than 108 billion humans have existed on earth (108 thousands of millions using the European system of counting).
The tailoring business owned by Joe's family is based on the real-life Advanced European Tailoring shop in Berkeley, California. Pixar animators spent many hours there, taking notes and illustrations to capture everything from the look of the shop to the movements of the workers. They also spoke with the owners of the shop, Zoltan Hajnal and his wife Puje Dorjsure, to learn more about what inspires them to do their job. Hajnal said he and his wife were not paid for their contributions but were proud to be a part of the film.