Working message sending with function calling