Google Sheets를 사용하여 OpenAI와 Gmail을 통해 개인화된 잠재 고객 답변 생성
중급
이것은자동화 워크플로우로, 9개의 노드를 포함합니다.주로 Gmail, HttpRequest, GoogleSheets, ManualTrigger, OpenAi 등의 노드를 사용하며. Google Sheets를 사용하여 OpenAI와 Gmail을 통해 개인화된 잠재 고객 답변 생성
사전 요구사항
- •Google 계정 및 Gmail API 인증 정보
- •대상 API의 인증 정보가 필요할 수 있음
- •Google Sheets API 인증 정보
- •OpenAI API Key
카테고리
-
워크플로우 미리보기
노드 연결 관계를 시각적으로 표시하며, 확대/축소 및 이동을 지원합니다
워크플로우 내보내기
다음 JSON 구성을 복사하여 n8n에 가져오면 이 워크플로우를 사용할 수 있습니다
{
"meta": {
"instanceId": "0a25db4fd0692af64b58f35e01611f2ef0b5bb9d6654c57ef3741021e7d8cc11",
"templateId": "7163"
},
"nodes": [
{
"id": "af621613-d8c3-411e-8f5b-26e08eb27133",
"name": "시트에서 행 가져오기",
"type": "n8n-nodes-base.googleSheets",
"position": [
816,
1168
],
"parameters": {
"options": {},
"sheetName": {
"__rl": true,
"mode": "list",
"value": "{YOUR_SHEET_ID}",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/{YOUR_GOOGLE_SHEET_ID}/edit#gid=0",
"cachedResultName": "{YOUR_SHEET_NAME}"
},
"documentId": {
"__rl": true,
"mode": "list",
"value": "{YOUR_GOOGLE_DOCUMENT_ID}",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/{YOUR_GOOGLE_DOCUMENT_ID}/edit?usp=drivesdk",
"cachedResultName": "n8nEmail"
}
},
"credentials": {
"googleSheetsOAuth2Api": {
"id": "cjPjcwa3RdiMAu79",
"name": "Google Sheets account"
}
},
"typeVersion": 4.6
},
{
"id": "cf8bc124-04fd-4930-9040-6fc6ee6f25c4",
"name": "'워크플로 실행' 클릭 시",
"type": "n8n-nodes-base.manualTrigger",
"position": [
592,
1168
],
"parameters": {},
"typeVersion": 1
},
{
"id": "613fd1d4-ec8a-40be-9f31-ef64483acf87",
"name": "맞춤형 이메일 전송",
"type": "n8n-nodes-base.gmail",
"position": [
1616,
1168
],
"webhookId": "{YOUR_WEBHOOK_ID}",
"parameters": {
"sendTo": "={{ $('Get row(s) in sheet').item.json['Email ID'] }}",
"message": "={{ $json.message.content }}",
"options": {
"appendAttribution": false
},
"subject": "=Re:{{ $('Get row(s) in sheet').item.json.Intent }}"
},
"credentials": {
"gmailOAuth2": {
"id": "vdI9VLsEmuPzPxxo",
"name": "Gmail account"
}
},
"typeVersion": 2.1
},
{
"id": "cfb4be86-d24c-4eb5-ab7e-649c851bbadc",
"name": "모델에 메시지 전송",
"type": "@n8n/n8n-nodes-langchain.openAi",
"position": [
1264,
1168
],
"parameters": {
"modelId": {
"__rl": true,
"mode": "list",
"value": "{YOUR_OPENAI_MODEL}",
"cachedResultName": "{YOUR_OPENAI_MODEL_NAME}"
},
"options": {},
"messages": {
"values": [
{
"content": "=Write a professional and friendly email reply to {{ $('Get row(s) in sheet').item.json['First Name'] }} . Their intent is \"{{ $('Get row(s) in sheet').item.json.Intent }}\". They wrote: \"{{ $('Get row(s) in sheet').item.json['Why They Sent Email'] }}\". Make the response specific to their message and helpful.No need to add the subject line. Generate in HTML formatting.\nThe footer signature should be of the following format\nThanks,\n{{ $json.sendAs[0].displayName }}\n"
}
]
}
},
"credentials": {
"openAiApi": {
"id": "Kzhpo6yW8AwY3uMm",
"name": "OpenAI account"
}
},
"typeVersion": 1.8
},
{
"id": "e2b7d857-9ebb-4bff-914c-c7c8c4c87de2",
"name": "HTTP 요청",
"type": "n8n-nodes-base.httpRequest",
"position": [
1040,
1168
],
"parameters": {
"url": "https://gmail.googleapis.com/gmail/v1/users/me/settings/sendAs",
"options": {},
"authentication": "predefinedCredentialType",
"nodeCredentialType": "gmailOAuth2"
},
"credentials": {
"gmailOAuth2": {
"id": "vdI9VLsEmuPzPxxo",
"name": "Gmail account"
}
},
"typeVersion": 4.2,
"alwaysOutputData": true
},
{
"id": "fd1f0cb8-1711-442d-b6be-2ebff70cee29",
"name": "스티커 메모",
"type": "n8n-nodes-base.stickyNote",
"position": [
640,
848
],
"parameters": {
"color": 4,
"width": 276,
"height": 294,
"content": "## STEP 1 · Lead Intake (Google Sheets)\nReads rows from your sheet.\n\nFields used:\n• Email ID → recipient\n• First Name / Intent / Why They Sent Email → prompt context\n\nTip: Replace the placeholder Document/Sheet IDs before running."
},
"typeVersion": 1
},
{
"id": "8fd52a43-0143-460f-bd93-74ddbf123544",
"name": "스티커 메모1",
"type": "n8n-nodes-base.stickyNote",
"position": [
960,
880
],
"parameters": {
"color": 5,
"width": 212,
"height": 252,
"content": "## STEP 2 · Sender Identity (Gmail sendAs)\nFetches Gmail sendAs to get your display name for the signature.\n\nOutput used in LLM prompt:\n• sendAs[0].displayName"
},
"typeVersion": 1
},
{
"id": "45c4dee3-ff27-4577-a5dc-d2ecb97d9db9",
"name": "스티커 메모2",
"type": "n8n-nodes-base.stickyNote",
"position": [
1216,
912
],
"parameters": {
"color": 6,
"width": 392,
"height": 192,
"content": "## STEP 3 · Draft Generation (LLM)\nCreates a personalized HTML reply.\n\nPrompt inputs:\n• First Name, Intent, Why They Sent Email\n• Signature uses Gmail displayName\n\nNote: Model should output **HTML** (no subject)."
},
"typeVersion": 1
},
{
"id": "3d8c5212-fcf4-4262-aeb7-047a9c6e58e7",
"name": "스티커 메모3",
"type": "n8n-nodes-base.stickyNote",
"position": [
1664,
912
],
"parameters": {
"color": 7,
"width": 324,
"height": 214,
"content": "## STEP 4 · Send Email (Gmail)\nTo: Email ID from sheet\nSubject: \"Re:\" + Intent\nBody: LLM HTML\n\n⚠️ Set Gmail node **emailType = html** so the formatting renders."
},
"typeVersion": 1
}
],
"pinData": {},
"connections": {
"e2b7d857-9ebb-4bff-914c-c7c8c4c87de2": {
"main": [
[
{
"node": "cfb4be86-d24c-4eb5-ab7e-649c851bbadc",
"type": "main",
"index": 0
}
]
]
},
"cfb4be86-d24c-4eb5-ab7e-649c851bbadc": {
"main": [
[
{
"node": "613fd1d4-ec8a-40be-9f31-ef64483acf87",
"type": "main",
"index": 0
}
]
]
},
"af621613-d8c3-411e-8f5b-26e08eb27133": {
"main": [
[
{
"node": "e2b7d857-9ebb-4bff-914c-c7c8c4c87de2",
"type": "main",
"index": 0
}
]
]
},
"cf8bc124-04fd-4930-9040-6fc6ee6f25c4": {
"main": [
[
{
"node": "af621613-d8c3-411e-8f5b-26e08eb27133",
"type": "main",
"index": 0
}
]
]
}
}
}자주 묻는 질문
이 워크플로우를 어떻게 사용하나요?
위의 JSON 구성 코드를 복사하여 n8n 인스턴스에서 새 워크플로우를 생성하고 "JSON에서 가져오기"를 선택한 후, 구성을 붙여넣고 필요에 따라 인증 설정을 수정하세요.
이 워크플로우는 어떤 시나리오에 적합한가요?
중급
유료인가요?
이 워크플로우는 완전히 무료이며 직접 가져와 사용할 수 있습니다. 다만, 워크플로우에서 사용하는 타사 서비스(예: OpenAI API)는 사용자 직접 비용을 지불해야 할 수 있습니다.
관련 워크플로우 추천
자동화된 로컬 리드 찾기 및 콜드 이메일 발송
Apify, AI 및 Gmail을 사용한 지역 리드 자동 발견 및 콜드 이메일 발송
If
Set
Wait
+
If
Set
Wait
18 노드Meak
콘텐츠 제작
AI 뉴스레터 빌더: Dumpling AI 웹 스크래핑, GPT-4o 요약
AI 뉴스 브리핑 빌더: Dumpling AI 웹사이트 스크래핑, GPT-4o 요약
Set
Code
Gmail
+
Set
Code
Gmail
10 노드Yang
인공지능
AI驱动의이메일分诊与자동回复系统,통합OpenAI에이전트및Gmail
AI驱动의이메일分诊与자동回复系统,통합OpenAI에이전트및Gmail
If
Set
Gmail
+
If
Set
Gmail
68 노드Abdullahi Ahmed
콘텐츠 제작
자동화 블로그 작성 및 소셜 미디어 프로모션 에이전트
GPT-4, Perplexity 및 WordPress를 사용한 SEO 블로그 생성 + 소셜 미디어 자동화
Set
Code
Gmail
+
Set
Code
Gmail
79 노드LukaszB
디자인
Braze에서 기존 이메일 템플릿 업데이트
AI를 사용한 Instagram, Facebook, LinkedIn 및 X용 소셜 미디어 콘텐츠 자동화
Set
Gmail
Merge
+
Set
Gmail
Merge
73 노드LukaszB
디자인
GPT-5 nano 및 Yoast SEO를 사용한 WordPress SEO 최적화 자동화
GPT-5 nano 및 Yoast SEO를 사용한 WordPress SEO 최적화 자동화
Set
Code
Gmail
+
Set
Code
Gmail
35 노드Oriol Seguí
기타