Was there really a spy inside the Trump campaign?

Was there really a spy inside the Trump campaign?
The president's claim of a "spy" inside his campaign has been dismissed as absurd, but the FBI has been known to send informants to speak to suspects.