Ambassador
In past years, communication between countries could take days or weeks. It was necessary to have a person in each foreign capital to have meetings and make negotiations between countries. Nowadays, communication is much faster, and often governments can be in direct contact with each other.  However, it is still true that many problems need person-to-person meetings, so ambassadors are still needed.