# Cross-Module AI & Contextual Actions

Milestone 36 extends Vexlora AI from dedicated workspaces into a contextual operating layer across major business modules.

## Specialized copilots

- Finance Copilot: variance explanations, collections prioritization, cash scenarios and close support.
- People Copilot: retention risk, hiring velocity, engagement signals and manager briefs.
- Delivery Copilot: blockers, capacity, milestone risk and recovery planning.
- Growth Copilot: ROAS, attribution shifts, campaign experiments and content contribution.
- Inventory Copilot: replenishment, aging stock, warehouse balancing and supplier risk.
- Logistics Copilot: shipment exceptions, carrier comparison and recovery options.

These complement the existing CRM, Product, SEO, Support and Analytics copilots.

## Global Ask AI

`ContextualAiDrawer` is mounted in the application topbar. It derives a safe module context from the current pathname and presents domain-relevant starter questions plus a link to the specialized AI workspace. It does not transmit page data to an external provider.

## Governed actions

The AI Actions Center illustrates a read → reason → propose → explain → human approve operating model. External sends, financial writes, inventory transfers, HR decisions and logistics changes are never executed by this frontend template.

## Buyer integration boundary

Buyers can connect the UI to their own provider, RAG service, action API or workflow engine. Keep provider keys and business writes server-side. The bundled template contains no AI provider secret, database, Prisma client or production action executor.
