How ai-smart markets work