Create leads from sms

is there a way potential leads can send sms and then automatically erpnext creates a lead from from the sms details