법률 비서 대리자
중급
이것은AI분야의자동화 워크플로우로, 11개의 노드를 포함합니다.주로 Telegram, Agent, TelegramTrigger, LmChatOpenAi, EmbeddingsOpenAi 등의 노드를 사용하며인공지능 기술을 결합하여 스마트 자동화를 구현합니다. 🧑⚖️ AI 법률 비서 대리인 - AI 기반 법률 질문과 문서 검색
사전 요구사항
- •Telegram Bot Token
- •OpenAI API Key
- •Pinecone API Key
사용된 노드 (11)
카테고리
워크플로우 미리보기
노드 연결 관계를 시각적으로 표시하며, 확대/축소 및 이동을 지원합니다
워크플로우 내보내기
다음 JSON 구성을 복사하여 n8n에 가져오면 이 워크플로우를 사용할 수 있습니다
{
"id": "rPicfavvntizpQkM",
"meta": {
"instanceId": "1c7b08fed4406d546caf4a44e8b942ca317e7e207bb9a5701955a1a6e1ce1843",
"templateCredsSetupCompleted": true
},
"name": "Legal Assistant Agent",
"tags": [],
"nodes": [
{
"id": "81b14e7a-0dde-4dd3-aa1b-943c1857903d",
"name": "AI 에이전트",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
220,
0
],
"parameters": {
"text": "={{ $json.message.text }}",
"options": {
"systemMessage": "You are a helpful legal assistant. Your task is to answer legal questions of the users by referring to the Pinecone Vector Database \"Legal Contract Library\" to get an accurate answer. \n#Rule\nDo not make up facts, if you do not have the right information, you may say so."
},
"promptType": "define"
},
"typeVersion": 2
},
{
"id": "53d344e5-773b-432a-8940-00a9b6814ee8",
"name": "OpenAI 채팅 모델",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
80,
240
],
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-4o-mini"
},
"options": {}
},
"credentials": {
"openAiApi": {}
},
"typeVersion": 1.2
},
{
"id": "38b9de84-bfee-4d66-b22a-f95bcd78b9a6",
"name": "임베딩 OpenAI",
"type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
"position": [
520,
360
],
"parameters": {
"options": {}
},
"credentials": {
"openAiApi": {}
},
"typeVersion": 1.2
},
{
"id": "be801891-2ac9-4871-b54b-72491eb9b962",
"name": "법률 계약 라이브러리",
"type": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
"position": [
360,
240
],
"parameters": {
"mode": "retrieve-as-tool",
"options": {},
"toolName": "Redacted",
"pineconeIndex": {
"__rl": true,
"mode": "id",
"value": "Redacted"
},
"toolDescription": "Extract, contracts, legal policies and relevant regulatory documents here."
},
"credentials": {
"pineconeApi": {}
},
"typeVersion": 1.1
},
{
"id": "8cbbb27e-5c31-4c8e-93a1-7515b28649b6",
"name": "Telegram",
"type": "n8n-nodes-base.telegram",
"position": [
820,
0
],
"webhookId": "",
"parameters": {
"text": "={{ $json.output }}",
"chatId": "",
"additionalFields": {
"appendAttribution": false
}
},
"credentials": {
"telegramApi": {}
},
"typeVersion": 1.2
},
{
"id": "c664b9b0-cf1b-454c-b943-adcc3f0a8de5",
"name": "Telegram 트리거",
"type": "n8n-nodes-base.telegramTrigger",
"position": [
-200,
0
],
"webhookId": "",
"parameters": {
"updates": [
"message"
],
"additionalFields": {}
},
"credentials": {
"telegramApi": {}
},
"typeVersion": 1.2
},
{
"id": "f4fa00fd-5e18-4a81-8263-b3bf2d52cb9e",
"name": "심플 메모리1",
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"position": [
240,
240
],
"parameters": {
"sessionKey": "={{ $('Telegram Trigger').item.json.message.chat.id }}",
"sessionIdType": "customKey",
"contextWindowLength": 10
},
"typeVersion": 1.3
},
{
"id": "f2aff94c-ad46-4759-90f0-368d420219e2",
"name": "스티키 노트",
"type": "n8n-nodes-base.stickyNote",
"position": [
-340,
-160
],
"parameters": {
"width": 340,
"height": 700,
"content": "Telegram Message Trigger"
},
"typeVersion": 1
},
{
"id": "4eb385e9-5caf-46f3-97a3-bac95c210c78",
"name": "스티키 노트1",
"type": "n8n-nodes-base.stickyNote",
"position": [
20,
-160
],
"parameters": {
"color": 3,
"width": 720,
"height": 700,
"content": "Legal Asssistant AI Agent"
},
"typeVersion": 1
},
{
"id": "252a59c6-90aa-4ca4-9a4e-2905b69cc984",
"name": "스티키 노트2",
"type": "n8n-nodes-base.stickyNote",
"position": [
760,
-160
],
"parameters": {
"color": 4,
"width": 280,
"height": 700,
"content": "Telegram Output"
},
"typeVersion": 1
},
{
"id": "beaef1c7-48cb-4f35-a0d7-b5819a0e99fe",
"name": "스티키 노트3",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1180,
-160
],
"parameters": {
"color": 6,
"width": 820,
"height": 1180,
"content": "🧑⚖️ Legal Assistant Agent — AI-Powered Legal Q&A with Document Retrieval\nCategory: LegalTech / AI Agent / RAG / Chatbot\n\nDescription:\nThis no-code AI agent acts as a legal assistant chatbot that can answer user queries by retrieving information from a pre-indexed legal document library. It’s powered by OpenAI + Pinecone + Telegram and designed for law firms, compliance teams, or anyone who needs instant answers from contracts, policies, or regulatory documents.\n\nFor more of such builds and step-by-step video tutorial, check out:\nhttps://www.youtube.com/@Automatewithmarc\n\n🔍 How it Works:\n\nTelegram Trigger – Starts when a user sends a message via Telegram.\n\nAI Agent (GPT-4o) – Uses a retrieval-augmented generation (RAG) setup to understand the question and pull relevant context.\n\nPinecone Vector Store – Searches across a vectorized legal contract library for relevant clauses or documents.\n\nOpenAI Embeddings – Converts uploaded documents into vector embeddings for efficient search.\n\nMemory Buffer – Maintains conversation flow and context for follow-up questions.\n\nTelegram Response – Sends the final AI-generated answer directly to the user.\n\n🎯 Use Cases:\n\nIn-house legal teams automating internal policy Q&A\n\nLaw firms building client-facing legal bots\n\nStartups offering legal tech services with document-based queries\n\nCompliance teams monitoring contract terms and obligations\n\n✅ Key Features:\n\nReal-time legal Q&A via Telegram\n\nPinecone + OpenAI-powered vector search\n\nRetrieval-Augmented Generation (RAG) setup\n\nFactual, memory-aware assistant with fallback if info is unavailable\n\nFully customizable and extendable\n\n⚙️ Setup Instructions:\n\nConnect OpenAI, Pinecone, and Telegram credentials\n\nUpload your contracts or policy docs into Pinecone\n\nCustomize the system prompt or expand document sources as needed\n\nActivate and test via Telegram\n\nThis workflow is a solid foundation for any AI-powered legal assistant or chatbot solution—highly relevant for modern LegalOps and knowledge management teams."
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "0cec767c-2903-4bfb-999a-5668fcadd39d",
"connections": {
"81b14e7a-0dde-4dd3-aa1b-943c1857903d": {
"main": [
[
{
"node": "8cbbb27e-5c31-4c8e-93a1-7515b28649b6",
"type": "main",
"index": 0
}
]
]
},
"f4fa00fd-5e18-4a81-8263-b3bf2d52cb9e": {
"ai_memory": [
[
{
"node": "81b14e7a-0dde-4dd3-aa1b-943c1857903d",
"type": "ai_memory",
"index": 0
}
]
]
},
"c664b9b0-cf1b-454c-b943-adcc3f0a8de5": {
"main": [
[
{
"node": "81b14e7a-0dde-4dd3-aa1b-943c1857903d",
"type": "main",
"index": 0
}
]
]
},
"38b9de84-bfee-4d66-b22a-f95bcd78b9a6": {
"ai_embedding": [
[
{
"node": "be801891-2ac9-4871-b54b-72491eb9b962",
"type": "ai_embedding",
"index": 0
}
]
]
},
"53d344e5-773b-432a-8940-00a9b6814ee8": {
"ai_languageModel": [
[
{
"node": "81b14e7a-0dde-4dd3-aa1b-943c1857903d",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"be801891-2ac9-4871-b54b-72491eb9b962": {
"ai_tool": [
[
{
"node": "81b14e7a-0dde-4dd3-aa1b-943c1857903d",
"type": "ai_tool",
"index": 0
}
]
]
}
}
}자주 묻는 질문
이 워크플로우를 어떻게 사용하나요?
위의 JSON 구성 코드를 복사하여 n8n 인스턴스에서 새 워크플로우를 생성하고 "JSON에서 가져오기"를 선택한 후, 구성을 붙여넣고 필요에 따라 인증 설정을 수정하세요.
이 워크플로우는 어떤 시나리오에 적합한가요?
중급 - 인공지능
유료인가요?
이 워크플로우는 완전히 무료이며 직접 가져와 사용할 수 있습니다. 다만, 워크플로우에서 사용하는 타사 서비스(예: OpenAI API)는 사용자 직접 비용을 지불해야 할 수 있습니다.
관련 워크플로우 추천
GPT-5 RAG 고객 지원 대리자
사용법 GPT-5, Telegram 및 Pinecone를 사용하여 고객 지원 RAG 대리인 구축
Telegram
Agent
Telegram Trigger
+
Telegram
Agent
Telegram Trigger
11 노드Automate With Marc
지원 챗봇
저의 워크플로우
GPT4-mini와 Google Docs 지식庫를 사용하여 Telegram 고객 지원 로봇을 만듭니다.
Telegram
Google Docs Tool
Agent
+
Telegram
Google Docs Tool
Agent
10 노드Automate With Marc
지원
Slack 프로젝트 업데이트 RAG 에이전트
GPT와 Pinecone 벡터 RAG 컨텍스트를 사용하여 Slack 메시지에 자동 응답
Slack
Slack Trigger
Agent
+
Slack
Slack Trigger
Agent
11 노드Automate With Marc
AI RAG
자동 인바운드 영업 후속 조치
GPT-5, Pinecone, Tavily 리서치를 활용한 맞춤형 영업 자동 후속 조치
Gmail
Form Trigger
Agent
+
Gmail
Form Trigger
Agent
12 노드Automate With Marc
리드 육성
조합형 이미지를 비디오로 변환하는 도구
Telegram, GPT-4.1, Seedance/Veo3 통합을 통해 이미지에서 비디오 생성
If
Wait
Telegram
+
If
Wait
Telegram
22 노드Automate With Marc
콘텐츠 제작
AI 자동화 및 에이전트 구축 및 판매
构建与판매AI자동화与스마트体
If
Set
Wait
+
If
Set
Wait
74 노드NICKYAI
기타
워크플로우 정보
난이도
중급
노드 수11
카테고리1
노드 유형8
저자
Automate With Marc
@marconiAutomating Start-Up and Business processes. Helping non-techies understand and leverage Agentic AI with easy to understand step-by-step tutorials. Check out my educational content: https://www.youtube.com/@Automatewithmarc
외부 링크
n8n.io에서 보기 →
이 워크플로우 공유