Gateway implementation for external application integration