Add entity AI goal API and example