uses the api to respond to user