We deal with the general structure of (noncommutative) stochastic processes by using the standard techniques of operator algebras. Any stochastic process is associated to a state on a universal object, i.e. the free product $C^*$-algebra, in a natural way