fix agent flow and api for the number check
