Boundary value problems for integrable equations compatible with the symmetry algebra