I have an application where I use Twilio to send an SMS to a list of phone numbers which is triggered by an event. This works fine.
Now, I need to extend this feature such that, if any one of the recipients do reply to the original message, My application needs to capture the reply message body and forward it to all others in the list.
The problem is as per our business rule, a phone number can be a member of multiple groups and the reply body should only be forwarded to the group where the original message was sent.
So, Is there a way to associate original SMS sent and a reply SMS received by a Twilio number?
If yes, can I use that parameter in the webhook configured in Twilio account?
If No, Is there any other option in Twilio that I can make use of for completing my functionality.