Skip to main content
  • GenAI
  • Chatbots and RAG

From scattered onboarding emails to a single chatbot

How we built an internal HR chatbot for onboarding questions using OpenAI GPT, LangChain, and Notion, from document ingestion to a deployed assistant.

Mar 15, 2024
The Notion knowledge base behind the onboarding chatbot

When new colleagues join Arinti, onboarding information used to be scattered across emails and documents. With Large Language Models now available, we built a chatbot that answers employee questions instantly, powered by our own Notion knowledge base.

01

How it works, three steps

First, Document Ingestion: we convert all Notion onboarding content into numerical vectors using OpenAI embedding models. The content is split into chunks using LangChain's markdown splitter, then stored in a vector database.

Second, Query: the user's question is converted into a vector using the same embedding model, then matched against the vector database via similarity search. The most relevant content chunks are passed along with the question to OpenAI GPT 3.5 Turbo, which formulates an answer based on a structured prompt.

Third, Memory: the chatbot tracks conversation history, combining previous messages with new questions into standalone queries.

How the onboarding chatbot works: ingestion, query and memory
02

Automation and deployment

Azure Functions automatically fetch new Notion content on a daily basis, keeping the chatbot's knowledge up to date. The front-end is built with Streamlit and embedded directly into our Notion workspace, so employees access it without switching tools.

The same architecture works for any knowledge base: FAQ pages, project documentation, or policy documents. As long as the content is stored somewhere, it can serve as the foundation for a chatbot.

Worth repeating
As long as the content is stored somewhere, it can serve as the foundation for a chatbot.

Want to work together

Project in mind?

Start with a conversation, or with the readiness check. Either way, you talk to the people who build it.