Copy agent to text field