Gmail と Google カレンダーを使って、メール内のイベントを自動のにスケジュール
中級
これはPersonal Productivity, Multimodal AI分野の自動化ワークフローで、6個のノードを含みます。主にIf, Code, GmailTrigger, GoogleCalendarなどのノードを使用。 Gmail と Google カレンダーを使用して、キーワードによるメールからアクティビティを自動スケジュール
前提条件
- •Googleアカウント + Gmail API認証情報
ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
"id": "9H630Pk9Y2YFcnEl",
"meta": {
"instanceId": "a287613f1596da776459594685fbf4e2b4a12124f80ab8c8772f5e37bff103ae",
"templateCredsSetupCompleted": true
},
"name": "Automate Event Scheduling from Emails with gmails & google calender",
"tags": [],
"nodes": [
{
"id": "5d985e91-a21f-43ed-b8c0-8628f84bcea1",
"name": "新着メールの監視",
"type": "n8n-nodes-base.gmailTrigger",
"position": [
0,
0
],
"parameters": {
"filters": {},
"pollTimes": {
"item": [
{
"mode": "everyMinute"
}
]
}
},
"credentials": {
"gmailOAuth2": {
"id": "QFfaHpKmgq4YPiRN",
"name": "temp"
}
},
"typeVersion": 1.2
},
{
"id": "c24f4ed6-363a-4064-982c-e5a4ca10a0a3",
"name": "キーワードの確認",
"type": "n8n-nodes-base.if",
"position": [
208,
0
],
"parameters": {
"options": {},
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "or",
"conditions": [
{
"id": "fa1a4a02-f8ab-412f-8977-c924d8d96f81",
"operator": {
"type": "string",
"operation": "contains"
},
"leftValue": "={{ $json.subject }}",
"rightValue": "Meeting"
},
{
"id": "cc6f7dd3-c2ce-4c44-b2cf-6263a73688dd",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.body }}",
"rightValue": "Appoinment"
}
]
}
},
"typeVersion": 2.2
},
{
"id": "424ba35e-c62b-4c17-896b-d718fb611b93",
"name": "イベント詳細の抽出",
"type": "n8n-nodes-base.code",
"position": [
448,
0
],
"parameters": {
"jsCode": "const emailBody = $json.body;\n\n// Simple regex to find a date and time.\n// This is a basic example; more complex logic may be needed.\nconst dateMatch = emailBody.match(/\\b(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\\s+\\d{1,2}/i);\nconst timeMatch = emailBody.match(/\\d{1,2}:\\d{2}\\s?(am|pm)?/i);\n\nconst eventDetails = {\n title: $json.subject,\n date: dateMatch ? dateMatch[0] : 'today',\n time: timeMatch ? timeMatch[0] : '9:00am'\n};\n\nreturn [{ json: eventDetails }];"
},
"typeVersion": 2
},
{
"id": "20d9fdca-0ced-411f-a99b-284f45c2e6f0",
"name": "イベントの作成",
"type": "n8n-nodes-base.googleCalendar",
"position": [
656,
0
],
"parameters": {
"end": "={{ $json.date }} {{ $json.time }}",
"start": "={{ $json.date }} {{ $json.time }}",
"calendar": {
"__rl": true,
"mode": "id",
"value": "YOUR_CALENDAR_ID"
},
"additionalFields": {
"summary": "={{ $json.title }}"
}
},
"credentials": {
"googleCalendarOAuth2Api": {
"id": "qx4NhkM90xt1yRR5",
"name": "temp"
}
},
"typeVersion": 1.3
},
{
"id": "d009e8f8-5758-4be7-b6ee-c7d7e3dbce13",
"name": "付箋",
"type": "n8n-nodes-base.stickyNote",
"position": [
-80,
-64
],
"parameters": {
"width": 960,
"height": 256,
"content": "## Flow"
},
"typeVersion": 1
},
{
"id": "ad6ae0d0-f03a-4186-afe3-222b7241a76c",
"name": "付箋1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-80,
224
],
"parameters": {
"color": 3,
"width": 960,
"height": 1104,
"content": "# Workflow Note: Automated Event Scheduling from Emails\n\n---\n\n### **Problem**\nManually creating calendar events from emails is a tedious and time-consuming task. Busy professionals often spend several minutes a day copying details like the event title, date, and time from their inbox to their calendar. This repetitive manual work is inefficient and increases the risk of human error, potentially leading to missed appointments and scheduling conflicts.\n\n### **Solution**\nThis is a simple but highly effective n8n workflow that automates the process of creating calendar events from your emails. By using keyword-based triggers and basic data extraction, the system automatically creates new events on your Google Calendar, eliminating the need for manual input and ensuring your schedule is always up-to-date.\n\n### **For Whom**\nThis workflow is perfect for **busy professionals, project managers, and anyone who receives event invitations via email**. It is a great starting point for those new to automation and looking to streamline their daily administrative tasks without a complex setup.\n\n### **Scope**\n* **What it includes:**\n * Automatically monitors your Gmail inbox for new emails.\n * Uses an `If` node to check for specified keywords (e.g., \"Meeting\", \"Appointment\") in the email's subject or body.\n * A `Code` node to extract key details like the event title and a potential date/time.\n * The creation of a new event on a specified Google Calendar.\n\n* **What it excludes:**\n * Advanced natural language processing (NLP) to understand complex event details.\n * Integration with other calendar or project management tools.\n * Handling of emails that do not contain clear date and time information.\n\n### **How to Set Up**\n\n1. **Prerequisites:** You will need an n8n instance and accounts for both **Gmail** and **Google Calendar**.\n2. **Workflow Import:** Import the workflow's `.json` file into your n8n instance. All the necessary nodes will appear on your canvas.\n3. **Credential Configuration:**\n * Click on the `Gmail Trigger` and `Google Calendar` nodes.\n * Follow the on-screen instructions to create and connect your **Gmail** and **Google Calendar** credentials.\n4. **Node-Specific Configuration:**\n * **`Gmail Trigger`:** Ensure the `Folder` parameter is set to `Inbox` to watch for all new incoming emails.\n * **`If` Node:** Customize the keywords in this node to match the terms you typically see in your event-related emails (e.g., \"call,\" \"demo,\" \"interview,\" etc.).\n * **`Google Calendar` Node:** In the `Calendar ID` field, enter the ID of the calendar where you want the new events to be created.\n5. **Activation:** Once all credentials and node configurations are complete, click **\"Save\"** at the top of the canvas and then toggle the workflow to **\"Active\"**. The workflow is now live and will automatically schedule events for you."
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "8a1bc662-421a-4c5b-8106-d66615647570",
"connections": {
"c24f4ed6-363a-4064-982c-e5a4ca10a0a3": {
"main": [
[
{
"node": "424ba35e-c62b-4c17-896b-d718fb611b93",
"type": "main",
"index": 0
}
]
]
},
"5d985e91-a21f-43ed-b8c0-8628f84bcea1": {
"main": [
[
{
"node": "c24f4ed6-363a-4064-982c-e5a4ca10a0a3",
"type": "main",
"index": 0
}
]
]
},
"424ba35e-c62b-4c17-896b-d718fb611b93": {
"main": [
[
{
"node": "20d9fdca-0ced-411f-a99b-284f45c2e6f0",
"type": "main",
"index": 0
}
]
]
}
}
}よくある質問
このワークフローの使い方は?
上記のJSON設定コードをコピーし、n8nインスタンスで新しいワークフローを作成して「JSONからインポート」を選択、設定を貼り付けて認証情報を必要に応じて変更してください。
このワークフローはどんな場面に適していますか?
中級 - 個人の生産性, マルチモーダルAI
有料ですか?
このワークフローは完全無料です。ただし、ワークフローで使用するサードパーティサービス(OpenAI APIなど)は別途料金が発生する場合があります。
関連ワークフロー
Google Docs、DocuSign、Airtable を使用した契約社員の life cycle 自動化
Google Docs、DocuSign、そして Airtable を使った契約社員ライフサイクル管理の自動化
If
Wait
Slack
+
If
Wait
Slack
16 ノードMarth
人事
従業員の表彰業務の自動化(Slack、Sheets、Gmailを使用)
Slack、Sheets、Gmailを使用し、必要に応じてGPT-4を活用した従業員賞賛業務の自動化
If
Code
Gmail
+
If
Code
Gmail
16 ノードMarth
人事
AIを備えた高度なリード獲得と育成自動化システム
GPT-4、LinkedIn、Hunter.ioを使ってパーソナライズされたB2Bタッチを自動化
If
Code
Wait
+
If
Code
Wait
30 ノードMarth
リードナーチャリング
リード獲得の自動化、AI資格検証、そして ElevenLabs による個別化された音声フォローアップ
OpenAI および ElevenLabs を基にした自動化されたリードキャプチャと AI による個別化音声フォローアップ
If
Set
Code
+
If
Set
Code
22 ノードMarth
リードナーチャリング
DocuSign と Trello を使用した自動候補者管理とフィードバックシステム
Slack、DocuSign、Trello、Gmail 通知を使った自動化採用プロセス
If
Code
Wait
+
If
Code
Wait
29 ノードMarth
人事
GPT-4を基盤としたインテリジェント採用・候補者インタラクションシステム
GPT-4を活用したAI採用システムで、履歴書スクリーニングと自動アウトリーチを実現
If
Code
Wait
+
If
Code
Wait
30 ノードMarth
人事
ワークフロー情報
難易度
中級
ノード数6
カテゴリー2
ノードタイプ5
作成者
Marth
@marthSimplifying Business with Smart Automation. I create and share user-friendly, highly efficient n8n workflow templates for SMEs, focusing on digital marketing, sales, and operational excellence. Get ready to automate, innovate, and elevate your business. Connect me on Linkedin for custom solutions.
外部リンク
n8n.ioで表示 →
このワークフローを共有