AI assistant action execution
The in-portal assistant turns a natural-language request into permission-checked, auditable portal actions instead of free text.
- 1A staff user asks the assistant to do something, e.g. create and assign tasks or approve a leave
- 2A context builder assembles the relevant org state and sends it to OpenRouter with the available-action schema
- 3The model replies with natural language plus structured action blocks (create_task, create_project, approve_leave, create_announcement, ...)
- 4The ActionExecutor re-checks the user's RBAC permissions and requires a confirmation token for destructive, org-wide actions
- 5Executed actions write real rows and fan out notifications, keeping the assistant's output auditable



