How to Build an AI Agent with Web Access: The Complete Answer (2026)