Best practices building Agent connectivity