How to Use AI Agents to Automate Clinical Workflows