For the Tasker + SharpTools approach, it is similar to this post but use Phone: Received Text as the event:
Phone: Received Text