refactor ai settings flow to use activity results instead of constants