subsidiary question : where can I find a documentation of widget or setting of the behviour of bots.
To change behavior, check:
1. unit states
2. menu settings
3. menu settings with advanced options
4. the widget list
5. how to make your own widgets
For documentation, check:
1. tooltip explanation
2. what it does against AI
3. the source code
If you specify which behavior or documentation you want, you will get a more concrete answer.