Are you a supply chain professional? Does your heart skip a beat when you see the words “network optimization”? Do you like llamas?
If the answer is “yes”, then this macro is for you!
Coupa Modeler is the industry’s leading software tool for network optimization, and it has extensive API documentation that I used to develop this macro. Now you can easily bring the data from llama.ai into your Alteryx workflow.
Here are the steps that you need to take to get started:
- Get your Model ID. It is a long string at the end of the url.
Obtain an API key (if you haven’t done so already). On llama.ai, click on the user icon and select “generate API key”. Put that somewhere safe! If you have an API key already, retrieve it. If you re-generate a new key, the old one will become inactive.
Download this macro and paste your Model ID and your API key in the corresponding fields in the text input tool.
- Come now, click that run button! Now you have the “Products” table in your workflow and you can do any kind of data transformation with it.

As you adapt this to your needs, make sure you reference all tables by their “background” names. You can retrieve the list of “background” names here.
Examples:
“Products” - “Products”
“Sites” - “Sites”
“Network Work Center Summary” - “OptimizationOutputWorkCenterSummary”
“Cost to Serve Details” - “OptimizationOutputNetworkPathsDetails”