add a simple AI
add event_work for agent