Integrate chat code into app