1. Fix a tiny bug when incorrect setting @events["event_id"]
2. Simplify the API, make the AI robot easier to implement.