Managing APIs and integrations for AI systems. What integration patterns work best for AI implementations?