receiving input from chat and sending to APP