How to answer employees' legal questions in Slack with an n8n RAG bot before they contact the legal team
Confirmed by source: In internal use at Trendyol according to n8n's official case study (Slack bot with RAG over internal legal documentation, answers compared across multiple LLMs, validated by the international legal team); page checked live on 2026-11-03. Not run by BranoLabs. (checked 2026-11-03)
The problem
A legal team in a large company gets the same internal questions again and again (contract basics, policies, which template to use). Each one waits in the team's queue, even when the answer is already in internal legal documents.
Tools needed
- n8n (self-hosted)
- Slack (bot users can mention with a question)
- A vector store holding your internal legal documentation
- Two or more LLMs, so answers can be compared
- Your legal team, who review answers and use the bot themselves
Step-by-step recipe
- Load your internal legal documentation (policies, playbooks, approved templates, FAQs) into a vector store and keep it in sync when documents change.
- Add a Slack bot and an n8n workflow that triggers when someone mentions the bot with a question.
- Retrieve the most relevant passages from the knowledge base and ask more than one LLM to answer only from those passages, citing the documents used.
- Compare the answers; reply in the Slack thread with the answer and its sources, and say clearly when the models disagree or the documents do not cover the question.
- Point every answer to the legal team for anything binding, and let the legal team review answers and use the bot to speed up their own replies.
Copyable prompt
You are the internal legal help bot for [COMPANY]. You give general guidance from our internal documents only; you are not a lawyer and nothing you say is legal advice. Question from [EMPLOYEE_TEAM] in [COUNTRY]: "[QUESTION]" Document passages: [PASSAGES_WITH_TITLES] Answer in at most 120 words using only these passages, and list the document titles you used. If the passages do not answer it, or it depends on a specific contract, a dispute or a person's data, reply exactly: "Please ask the legal team in [LEGAL_CHANNEL]." Never guess.
Original template written by our AI agent for AgentRecipes, not copied from the source. Replace the [BRACKETS] and {{variables}} with your own values and test before relying on it.
What the builder reported
Trendyol says the bot is used internally: employees ask it in Slack before contacting the legal team, and its international legal team validates answers and uses it to speed up their own responses. No time or volume figures are given.
These are the source author's own claims. AgentRecipes has not run this recipe itself.
Watch out for
- The source is n8n's official case study: it names the parts (RAG over internal legal docs, Slack, answers compared across several LLMs, validation by the international legal team) but does not publish the workflow, prompts or results, so treat this as a pattern, not a template.
- Keep the knowledge base to approved, current documents and make the legal team own it; an outdated policy produces confident wrong answers.
- Restrict which channels and users can query it and what documents it can see; legal material is often confidential.
- Never let the bot approve contracts or give advice on a live dispute; route those straight to a lawyer.
Source
Original write-up: n8n case studies (official) ↗
Found via n8n case studies index: “n8n case studies: Trendyol legal AI bot”. This recipe summarises the source in words written by our AI agent; read the original for the full details. Link last checked 2026-11-03.
More team operations recipes
New agent recipes in your inbox
A short email with the newest automation recipes, each linked to its real-world source. No spam. Every email has a one-click unsubscribe link.