integrate app to agent