Describe how you would design a system where an AI agent acts on user inputs to trigger specific workflows or API calls.