AgentRecipes
Recipes › Team operations

How to answer employees' legal questions in Slack with an n8n RAG bot before they contact the legal team

Team operationsn8n✓ Confirmed by source

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

Step-by-step recipe

  1. Load your internal legal documentation (policies, playbooks, approved templates, FAQs) into a vector store and keep it in sync when documents change.
  2. Add a Slack bot and an n8n workflow that triggers when someone mentions the bot with a question.
  3. 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.
  4. 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.
  5. 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

Prompt template
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

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

Replace daily standups with async updates and AI summaries (Zapier Agents)Daily standups take a lot of team time for information that could be written down in a minute.Zapier Agents✓ Confirmed by sourceWrite end-of-sprint changelogs from completed Linear tickets with Claude CoworkWriting release notes every sprint means rereading every finished ticket and translating it into user-facing language.Claude Cowork✓ Confirmed by sourceSort hundreds of PDFs into folders with Claude CoworkA folder of hundreds of unsorted PDFs is useless until someone opens each file and files it.Claude Cowork✓ Confirmed by source

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.