ai framework, portal mode