Classificateur Gmail intelligent : classification et étiquetage avec OpenAI
Ceci est unAI Summarization, Multimodal AIworkflow d'automatisation du domainecontenant 8 nœuds.Utilise principalement des nœuds comme Cron, Gmail, LmChatOpenAi, TextClassifier. Tri automatique des messages Gmail avec marquage par classification personnalisée avec GPT-4o-mini
- •Compte Google et informations d'identification Gmail API
- •Clé API OpenAI
Nœuds utilisés (8)
Catégorie
{
"id": "MkRETKpIFPWYCRiM",
"meta": {
"instanceId": "3d02c71388317a973647ceedf481a6b7f92941c766cf17f67388ab341d525980",
"templateCredsSetupCompleted": true
},
"name": "Smart Gmail Classifier: Classify & Label with openAI",
"tags": [],
"nodes": [
{
"id": "9038f706-1cf8-4156-9858-969a7bde62e3",
"name": "OpenAI Chat Model",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
-848,
576
],
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-4o-mini",
"cachedResultName": "gpt-4o-mini"
},
"options": {}
},
"credentials": {
"openAiApi": {
"id": "h5qIkLzWPJjRPGNc",
"name": "OpenAi account 2"
}
},
"typeVersion": 1.2
},
{
"id": "0ee542ce-85bc-405a-ba04-7a257e8d6f4f",
"name": "Opportunité Professionnelle",
"type": "n8n-nodes-base.gmail",
"position": [
-544,
0
],
"webhookId": "5f643023-07de-4b83-a2f7-5f0014a2ec69",
"parameters": {
"labelIds": [
"Label_3116546262966183424"
],
"messageId": "={{ $('Gmail Trigger').item.json.id }}",
"operation": "addLabels"
},
"credentials": {
"gmailOAuth2": {
"id": "L68pElfU0dElPrnw",
"name": "Gmail account 3"
}
},
"typeVersion": 2.1
},
{
"id": "ee69125c-46ae-439d-b0b7-c016af1b5df6",
"name": "Statut de Candidature",
"type": "n8n-nodes-base.gmail",
"position": [
-544,
192
],
"webhookId": "5f643023-07de-4b83-a2f7-5f0014a2ec69",
"parameters": {
"labelIds": [
"Label_1823036576628176913"
],
"messageId": "={{ $('Gmail Trigger').item.json.id }}",
"operation": "addLabels"
},
"credentials": {
"gmailOAuth2": {
"id": "L68pElfU0dElPrnw",
"name": "Gmail account 3"
}
},
"typeVersion": 2.1
},
{
"id": "37f396b6-7327-43db-b4e5-e34756b82a34",
"name": "Autres",
"type": "n8n-nodes-base.gmail",
"position": [
-544,
384
],
"webhookId": "5f643023-07de-4b83-a2f7-5f0014a2ec69",
"parameters": {
"labelIds": [
"Label_4879539884577568757"
],
"messageId": "={{ $('Gmail Trigger').item.json.id }}",
"operation": "addLabels"
},
"credentials": {
"gmailOAuth2": {
"id": "L68pElfU0dElPrnw",
"name": "Gmail account 3"
}
},
"typeVersion": 2.1
},
{
"id": "d937e43b-7f05-4eda-bf9e-409a325f6999",
"name": "Demandes",
"type": "n8n-nodes-base.gmail",
"position": [
-544,
576
],
"webhookId": "5f643023-07de-4b83-a2f7-5f0014a2ec69",
"parameters": {
"labelIds": [
"Label_2255072803109768357"
],
"messageId": "={{ $('Gmail Trigger').item.json.id }}",
"operation": "addLabels"
},
"credentials": {
"gmailOAuth2": {
"id": "L68pElfU0dElPrnw",
"name": "Gmail account 3"
}
},
"typeVersion": 2.1
},
{
"id": "eb4f2bf6-4535-4b96-a215-5c99f3f0bb04",
"name": "Classifieur d'Emails",
"type": "@n8n/n8n-nodes-langchain.textClassifier",
"position": [
-944,
288
],
"parameters": {
"options": {
"systemPromptTemplate": "=Please classify the text provided by the user into one of the following categories: {categories}, and use the provided formatting instructions below. Don't explain, and only output the json."
},
"inputText": "={{ $json.text }}",
"categories": {
"categories": [
{
"category": "Job Opportunity",
"description": "Emails that reflects potential jobs matched as per the profile i've shared across various job sites"
},
{
"category": "Application Status",
"description": "Email that updates about any jobs i applied or any updates about the position i interviewed for or the position i didn't get selected"
},
{
"category": "Others",
"description": "The rest of email communication that does not fall under Job Opportunity or Application Status"
},
{
"category": "Enquiries",
"description": "Email that raise enquiry about my details or the work i do or the service i provide."
}
]
}
},
"typeVersion": 1.1
},
{
"id": "1e886235-18c7-4f6e-a744-7a177807e00a",
"name": "Vérification Quotidienne des Emails",
"type": "n8n-nodes-base.cron",
"position": [
-1392,
288
],
"parameters": {
"triggerTimes": {
"item": [
{
"hour": 23
}
]
}
},
"typeVersion": 1
},
{
"id": "07c859f1-82ff-4268-bd99-087608931420",
"name": "Récupérer les Nouveaux Emails",
"type": "n8n-nodes-base.gmail",
"position": [
-1168,
288
],
"webhookId": "e76d0a4c-ea02-4ea4-b427-027315c1a846",
"parameters": {
"limit": 10,
"simple": false,
"filters": {
"receivedAfter": "2025-08-10T17:28:41"
},
"options": {},
"operation": "getAll"
},
"credentials": {
"gmailOAuth2": {
"id": "L68pElfU0dElPrnw",
"name": "Gmail account 3"
}
},
"typeVersion": 2
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "7aa60bda-b007-4b69-b22a-aac8d578e193",
"connections": {
"eb4f2bf6-4535-4b96-a215-5c99f3f0bb04": {
"main": [
[
{
"node": "0ee542ce-85bc-405a-ba04-7a257e8d6f4f",
"type": "main",
"index": 0
}
],
[
{
"node": "ee69125c-46ae-439d-b0b7-c016af1b5df6",
"type": "main",
"index": 0
}
],
[
{
"node": "37f396b6-7327-43db-b4e5-e34756b82a34",
"type": "main",
"index": 0
}
],
[
{
"node": "d937e43b-7f05-4eda-bf9e-409a325f6999",
"type": "main",
"index": 0
}
]
]
},
"07c859f1-82ff-4268-bd99-087608931420": {
"main": [
[
{
"node": "eb4f2bf6-4535-4b96-a215-5c99f3f0bb04",
"type": "main",
"index": 0
}
]
]
},
"1e886235-18c7-4f6e-a744-7a177807e00a": {
"main": [
[
{
"node": "07c859f1-82ff-4268-bd99-087608931420",
"type": "main",
"index": 0
}
]
]
},
"9038f706-1cf8-4156-9858-969a7bde62e3": {
"ai_languageModel": [
[
{
"node": "eb4f2bf6-4535-4b96-a215-5c99f3f0bb04",
"type": "ai_languageModel",
"index": 0
}
]
]
}
}
}Comment utiliser ce workflow ?
Copiez le code de configuration JSON ci-dessus, créez un nouveau workflow dans votre instance n8n et sélectionnez "Importer depuis le JSON", collez la configuration et modifiez les paramètres d'authentification selon vos besoins.
Dans quelles scénarios ce workflow est-il adapté ?
Intermédiaire - Résumé IA, IA Multimodale
Est-ce payant ?
Ce workflow est entièrement gratuit et peut être utilisé directement. Veuillez noter que les services tiers utilisés dans le workflow (comme l'API OpenAI) peuvent nécessiter un paiement de votre part.
Workflows recommandés
Ashish Kumar Swain
@phoenixHi, I’m Ashish — an automation architect and AI enthusiast helping people work smarter. I build AI-powered workflows that save time, boost productivity, and create real-world impact. Passionate about no-code, startups, and smart systems that scale. Let’s automate success, one workflow at a time! 🚀
Partager ce workflow