Conversational assistant over internal documents
A messaging assistant that answers with the information in an organization's SharePoint documents. An agent picks among several search tools depending on the question and cites the source of every answer.
- Type
- Work
- My role
- Design and development of the assistant
- Year
- 2026
- Status
- In production
What the system does
People in the organization ask questions by messaging and get answers based on their SharePoint documents, not on what the model thinks it knows. Every answer says which document it came from.
What was given and what I did
Already defined was data access. The documents lived in SharePoint, and the organization’s services are consumed as endpoints inside its Azure platform.
I did the ingestion process, the agent, its tools and instructions, and the Twilio integration.
How it is built
There are two separate processes.
- Ingestion. It extracts the content of the documents, splits it into chunks and generates their embeddings with Vertex AI. The chunks are stored in BigQuery to search them by meaning. When a document changes in SharePoint, only that document is reindexed.
- Conversation. An agent built with Google ADK on Gemini receives the question, decides which tool to use and builds the answer.
The agent has three tools and knows what each one is for.
- Semantic search over chunks, for questions that resemble the content.
- Keyword search, for names, codes or exact terms.
- Reading a full document, when the answer needs more context than a chunk.
It also keeps the conversation’s memory, so a follow-up question doesn’t start from scratch.
What the agent knows about itself
The agent has two kinds of instructions. Some cover the organization’s documents. The others describe the assistant itself, what it is and what it can do.
The second kind helps when someone doesn’t know how to use it or needs onboarding. It also tells the agent what it can and can’t answer.
Answers that fit in a message
Twilio limits the size of each message. When an answer is longer, the system splits it and sends the parts in order.
If a document refers to an image, the system fetches it and sends it with the answer.
How it was evaluated
I built a set of questions with their expected answers. Scripts compared the assistant’s answer against that reference, helped by an AI agent that classified and compared the answers.
That way a change to the instructions, chunking or tools was measured against the previous version before release.
Results
The assistant went into production, answering with the organization’s documents and citing the source of each answer.