input formula for chat added