Use the Affonso CLI as a tool for AI agents to automate affiliate management
The Affonso CLI works as a shell tool for any AI agent that can execute commands. Combined with --json output, agents can parse responses and build fully automated affiliate workflows.
An agent can periodically check for pending affiliates and approve them based on criteria:
# List pending affiliatesaffonso affiliates list --status pending --json# Approve a specific affiliateaffonso affiliates update aff_123 --status approved --json
Monitor and manage commissions across your affiliate program:
# List pending commissionsaffonso commissions list --status pending --json# Get details for a specific commissionaffonso commissions get com_456 --json
# Get program infoaffonso program get --json# List all affiliates with their statusaffonso affiliates list --limit 100 --json# List referrals for a specific affiliateaffonso referrals list --affiliate-id aff_123 --json
Custom agents built with LangChain, CrewAI, or any framework that supports shell execution
When building agent tools, always use --json to get structured output. This makes it easier to extract specific fields and handle responses programmatically.