automated referral system