Years ago I worked on something something that determined sales territory assignments for new prospects and inserted them into Salesforce.com through the API. One of the geospatial analysts made something with Alteryx that made the assignments, I wrote some C# to call the Salesforce API. It was a pretty easy project.