edited chat pipeline