Design an Enterprise AI Agent over Multiple Data Sources
Plan and design a generative AI agent that answers sales staff's questions and prepares confirmed changes using a company's CRM, file drive and email, without ever exposing data a rep cannot open.
Problem statement
Design an AI assistant that works across several of a company's business systems.
For this exercise, assume Corvane Supply, a fictional industrial-supply distributor, wants an assistant for its 20,000 sales and account staff.
Corvane's customer data lives in three systems: a CRM (accounts, contacts, opportunities and notes), a shared file drive (contracts, price sheets, proposals) and an email and calendar suite. A rep might ask "Which of my renewals close this month, and has the customer answered our last quote?"
or say "Move the Acme renewal date to March 31 and email the account owner." Answers cite the records, files and messages they used. The assistant can prepare three kinds of change: a CRM update or follow-up task, an email draft, or a meeting proposal.
Nothing is written or sent until the rep confirms that exact change.
For this exercise, also assume Corvane's contracts, prices and customers' personal details are sensitive. Each of the three systems has its own sharing rules, and the assistant must never use, show or act on anything the rep could not open in that system.
Customers and suppliers write many of the emails and files, so their text is untrusted. Several hosted language models are available, from small and fast to large and slow.
Corvane's biggest risks set the order of the work. A rep must only ever see and act on data they may open. A confirmed change must happen once, exactly as confirmed. The assistant must keep up as records, files and sharing change.
And Corvane must be able to tell that a wrong answer or a wrong change happened before a customer is affected, while the assistant grows from one pilot team to all 20,000 staff. Building the three systems and training new models are out of scope.
What to build
- An employee asks a question in plain language and gets an answer that combines information from the CRM, the file drive and email, with references to the records, files and messages it used.
- Every answer and action respects the employee's current permissions in each source system; content the employee cannot open is never retrieved for them, shown, or used to shape an answer.
- The assistant can prepare a CRM update or follow-up task, an email draft or a meeting proposal, carries it out only after the employee confirms that exact change, carries it out at most once, and records what was done.
- The team running the assistant can see answer quality, task success, cost and safety measures, and checks any change to models, prompts, tools or retrieval against an evaluation set before release.
At scale
- For this exercise, assume the full rollout covers 20,000 sales and account staff, about 5,000 active on a working day sending about 50,000 requests a day with peaks of about 5 per second; one request may need several model calls and tool calls. The sources hold about 2 million CRM records, 10 million files and 200 million emails, with hundreds of thousands of changes a day.
- For this exercise, assume a simple question should start answering within 3 seconds (p95); a request that needs several lookups may take up to 30 seconds but must show progress while it works.
- For this exercise, assume a permission change in a source system, such as removing someone from a shared folder or an account team, must take effect in the assistant within 15 minutes, and a disabled employee account must lose access immediately.
- For this exercise, assume the largest model is several times slower and more expensive per request than the smallest, and the company wants a predictable monthly cost.