An AI assistant that performs actions in the product
Context
The product has many screens: conversations, statistics, tasks, agents, workflows. Part of the data clients need also lives in their ERP (SAP Business One, Sage).
Goal
Let users do most things by chatting: look things up, act, configure, query their ERP. The interface is only there to supervise the agents, and the assistant never goes beyond the user’s permissions.
Solution
- An LLM chatbot: the user writes a request, the assistant handles it and answers. For example "how many calls this week?", "which tasks are left?", "create an agent for the front desk".
- Tools (tool calling): every action is a tool that calls an existing back-end function or API. The assistant goes through the same services as the rest of the application, never straight to the data.
- MCP servers for SAP Business One and Sage: users ask for their last order or delivery schedule, and the assistant fetches it from the ERP.
- Three levels of security, enforced on the back end and also on the client: the assistant only does what the user is allowed to do, a tool is only available if it is enabled for the organisation, and consistency checks block impossible actions.
- Asynchronous processing: requests go through a BullMQ / Redis queue handled by workers.