聊得很投机 - to talk and click - is the phrase for a conversation that went unexpectedly well, and 投机 here means matching, not speculation. 好像在哪见过 - I think we've met somewhere - is the opening you need when a face is familiar and a name is not.