Choosing and working with an agent