For example users texts "New York weather", the query goes to the server ,and the server replies back with the message "It is cloudy today in New York".
Yes.
You should read the Twilio documentation first and foremost.
Probably this article that explains 99% of what you're trying to do: twilio.com/blog/2016/08/receive-sms-php-twilio.ht…
You'll see that an incoming SMS hits a PHP script to process, once you're in that script you can do whatever you want/need.
Velu
Web Full Stack Developer
I guess you're trying to send your custom params within your api request.
If so then, it is not possible. There is no way to send our query param within the twilio request url instead you can set webhook url (http://www.example.com/receive.php) in you twilio console and receive incoming messages. If the user reply from his mobile then you can access the user message from your webhook url (as post request) and check what action should takes place based on his reply.
For more: twilio.com/blog/2012/04/get-started-with-twilio-s…
Hope this may helpful to you. Thanks.