The dynamics of three-boson interaction and algebraic Bethe ansatz