Ok sounds very lame and people may find it quite rude (as though they should be honoured to have been able to talk to you but you got nothing positive from talking to them). You should say, 'and it was nice talking to you too'.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.