  We apply the method of Gr\"obner-Shirshov bases for replicated algebras
developed by Kolesnikov to offer a general approach for constructing free
products of trialgebrs (resp. trioids). In particular, the open problem of
Zhuchok on constructing free products of trioids is solved.
