Chat functionality foundations