If the other person seems receptive, great news: you’ve just established a professional contact.
All you need to do to transition those relationships to professional ones is strike up a conversation about your shared professional interests. If the other person seems receptive, great news: you’ve just established a professional contact.