Need help with generating google slides

hey so long story short i wanted to make a workflow where if it gets a pdf file from telegram it will extract everything from it and sent it to the AI agent to use that file as a guide to make a google slide presentation out of it. but there’s a problem. the ai agent cant add new slides to the google slides project any help? and also im using docker,self hosted, lastest version, windows 11

**Uhh for some reason i could not upload the workflow so here it is as text:
**

{
“name”: “ppp assistant copy”,
“nodes”: [
{
“parameters”: {
“updates”: [
“message”
],
“additionalFields”: {}
},
“type”: “n8n-nodes-base.telegramTrigger”,
“typeVersion”: 1.2,
“position”: [
-96,
160
],
“id”: “b2a9831b-edfb-4478-97c7-f323c1a6ad73”,
“name”: “Telegram Trigger”,
“webhookId”: “2300a89b-3b5a-431f-a65a-1191d847af52”,
“credentials”: {
“telegramApi”: {
“id”: “9kB0hTg4aV0ygsUm”,
“name”: “pp helper”
}
}
},
{
“parameters”: {
“conditions”: {
“options”: {
“caseSensitive”: true,
“leftValue”: “”,
“typeValidation”: “strict”,
“version”: 2
},
“conditions”: [
{
“id”: “f13f100b-4412-4cd9-a149-5f280364fa00”,
“leftValue”: “={{ $json.message.from.is_bot }}”,
“rightValue”: “”,
“operator”: {
“type”: “boolean”,
“operation”: “false”,
“singleValue”: true
}
}
],
“combinator”: “and”
},
“looseTypeValidation”: “=”,
“options”: {}
},
“type”: “n8n-nodes-base.filter”,
“typeVersion”: 2.2,
“position”: [
128,
160
],
“id”: “a375c520-121c-4690-9781-28fd932d51c3”,
“name”: “Filter”
},
{
“parameters”: {
“conditions”: {
“options”: {
“caseSensitive”: true,
“leftValue”: “”,
“typeValidation”: “strict”,
“version”: 2
},
“conditions”: [
{
“id”: “287d0430-c133-469c-8fae-19ce1cff9f9c”,
“leftValue”: “={{ $json.message.document }}”,
“rightValue”: “”,
“operator”: {
“type”: “object”,
“operation”: “exists”,
“singleValue”: true
}
}
],
“combinator”: “and”
},
“options”: {}
},
“type”: “n8n-nodes-base.if”,
“typeVersion”: 2.2,
“position”: [
352,
160
],
“id”: “30ab0f73-2870-4939-a3ec-d409bf9d3bea”,
“name”: “If”
},
{
“parameters”: {
“conditions”: {
“options”: {
“caseSensitive”: true,
“leftValue”: “”,
“typeValidation”: “strict”,
“version”: 2
},
“conditions”: [
{
“id”: “fbd7d961-610f-4215-aaf0-eb29d59d1d36”,
“leftValue”: “={{ $json.message.document.file_name }}”,
“rightValue”: “.pdf”,
“operator”: {
“type”: “string”,
“operation”: “endsWith”
}
}
],
“combinator”: “and”
},
“options”: {}
},
“type”: “n8n-nodes-base.filter”,
“typeVersion”: 2.2,
“position”: [
576,
16
],
“id”: “dbde5056-0d74-449c-9083-991ffc6d402e”,
“name”: “Filter1”
},
{
“parameters”: {
“resource”: “file”,
“fileId”: “={{ $json.message.document.file_id }}”
},
“type”: “n8n-nodes-base.telegram”,
“typeVersion”: 1.2,
“position”: [
800,
16
],
“id”: “0ba9f862-a103-4cdb-91d4-636c81594d94”,
“name”: “Get a file”,
“webhookId”: “59766ed0-cbd1-4aaf-8e02-f8b51508c4eb”,
“credentials”: {
“telegramApi”: {
“id”: “9kB0hTg4aV0ygsUm”,
“name”: “pp helper”
}
}
},
{
“parameters”: {
“promptType”: “define”,
“text”: “=hey i have power point project i need ur help with. here’s a guide that talks abt the project’s topic. make a project in google slides by following the guide i gave u:\n{{ $json.text }}”,
“options”: {
“systemMessage”: “You are a helpful assistant ur goal is to help a teen with his projects mostly power point projects or filling the documants with the correct anwsers by reading the text they provide to you. if the documants demands for a power point project, follow this guide and dont forget to speak english even tho the documants is in arabic in ordor for the user to understaind THEN rewrite the results in arabic once the user is ok with the results:\n\n📛 Title Slide\n\nProject name\n\nYour name\n\nClass\n\nDate / Subject\n\n📥 Introduction\n\nQuick explanation of the topic in 2–4 lines\n\n🧾 Summary Slide (Important!)\n\nJust listing the 4 or 5 main part titles\n\nLike a “table of contents” slide\n\nBased exactly on what the PDF says\n\n📚 Main Parts (4 or 5)\n\nEach part gets its own slide (or more if needed)\n\nFollows the PDF titles and order\n\n📌 Conclusion\n\nWhat we learned / important info\n\nShort and clean\n\n📎 Sources\n\nRequired, not optional\n\nAlways at the end”
}
},
“type”: “@n8n/n8n-nodes-langchain.agent”,
“typeVersion”: 2.1,
“position”: [
1472,
-96
],
“id”: “5c217e57-c9f9-4207-8187-4e07d21f1f17”,
“name”: “AI Agent”
},
{
“parameters”: {
“promptType”: “define”,
“text”: “={{ $json.message.text }}”,
“options”: {
“systemMessage”: “”
}
},
“type”: “@n8n/n8n-nodes-langchain.agent”,
“typeVersion”: 2.1,
“position”: [
1472,
304
],
“id”: “eb88cc7f-a4de-4d9c-8dd8-02aa39b01cf9”,
“name”: “AI Agent1”
},
{
“parameters”: {
“operation”: “pdf”,
“options”: {}
},
“type”: “n8n-nodes-base.extractFromFile”,
“typeVersion”: 1,
“position”: [
1024,
16
],
“id”: “908f9e8e-18a8-4df1-97d8-7b0e4994ac78”,
“name”: “Extract from File”
},
{
“parameters”: {
“conditions”: {
“options”: {
“caseSensitive”: true,
“leftValue”: “”,
“typeValidation”: “strict”,
“version”: 2
},
“conditions”: [
{
“id”: “cebcd87a-34ac-4d38-b15c-952eaf52d663”,
“leftValue”: “={{ $json.message.text }}”,
“rightValue”: “”,
“operator”: {
“type”: “string”,
“operation”: “exists”,
“singleValue”: true
}
}
],
“combinator”: “and”
},
“options”: {}
},
“type”: “n8n-nodes-base.filter”,
“typeVersion”: 2.2,
“position”: [
1024,
304
],
“id”: “36506a91-ad11-4fdf-8dc5-2f1c14fed267”,
“name”: “Filter2”
},
{
“parameters”: {
“options”: {}
},
“type”: “@n8n/n8n-nodes-langchain.lmChatGoogleGemini”,
“typeVersion”: 1,
“position”: [
1248,
128
],
“id”: “fd171074-73de-413a-9a77-18631a343044”,
“name”: “Google Gemini Chat Model”,
“credentials”: {
“googlePalmApi”: {
“id”: “vNPHQG760R1FFCqP”,
“name”: “Google Gemini(PaLM) Api account”
}
}
},
{
“parameters”: {
“title”: “={{ /n8n-auto-generated-fromAI-override/ $fromAI(‘Title’, ``, ‘string’) }}”
},
“type”: “n8n-nodes-base.googleSlidesTool”,
“typeVersion”: 2,
“position”: [
1504,
128
],
“id”: “b6bdb2a0-7bce-4117-920b-68f12ad64a7f”,
“name”: “Create a presentation in Google Slides”,
“credentials”: {
“googleSlidesOAuth2Api”: {
“id”: “SNGR9WaeW4nAHNVg”,
“name”: “Google Slides account”
}
}
},
{
“parameters”: {
“operation”: “replaceText”,
“presentationId”: “={{ /n8n-auto-generated-fromAI-override/ $fromAI(‘Presentation_ID’, ``, ‘string’) }}”,
“options”: {}
},
“type”: “n8n-nodes-base.googleSlidesTool”,
“typeVersion”: 2,
“position”: [
1632,
128
],
“id”: “b6ef602b-6fd1-478c-b090-a66d593ff95c”,
“name”: “Replace text in a presentation in Google Slides”,
“credentials”: {
“googleSlidesOAuth2Api”: {
“id”: “SNGR9WaeW4nAHNVg”,
“name”: “Google Slides account”
}
}
},
{
“parameters”: {
“operation”: “get”,
“presentationId”: “={{ /n8n-auto-generated-fromAI-override/ $fromAI(‘Presentation_ID’, ``, ‘string’) }}”
},
“type”: “n8n-nodes-base.googleSlidesTool”,
“typeVersion”: 2,
“position”: [
1888,
128
],
“id”: “87ba89ad-76af-4185-9e15-21ae123db14f”,
“name”: “Get a presentation in Google Slides”,
“credentials”: {
“googleSlidesOAuth2Api”: {
“id”: “SNGR9WaeW4nAHNVg”,
“name”: “Google Slides account”
}
}
},
{
“parameters”: {
“operation”: “getSlides”,
“presentationId”: “={{ /n8n-auto-generated-fromAI-override/ $fromAI(‘Presentation_ID’, ``, ‘string’) }}”,
“returnAll”: “={{ /n8n-auto-generated-fromAI-override/ $fromAI(‘Return_All’, ``, ‘boolean’) }}”
},
“type”: “n8n-nodes-base.googleSlidesTool”,
“typeVersion”: 2,
“position”: [
1760,
128
],
“id”: “591638f1-97b1-4146-a9b7-e46fd4d2aaec”,
“name”: “Get slides from a presentation in Google Slides”,
“credentials”: {
“googleSlidesOAuth2Api”: {
“id”: “SNGR9WaeW4nAHNVg”,
“name”: “Google Slides account”
}
}
},
{
“parameters”: {
“sessionIdType”: “customKey”,
“sessionKey”: “=chatHistory”
},
“type”: “@n8n/n8n-nodes-langchain.memoryBufferWindow”,
“typeVersion”: 1.3,
“position”: [
1376,
128
],
“id”: “48c0a2c0-5700-403c-a892-8cf0f1bb8cda”,
“name”: “Simple Memory”
},
{
“parameters”: {
“chatId”: “={{ $(‘Telegram Trigger’).item.json.message.chat.id }}”,
“text”: “={{ $json.output }}”,
“additionalFields”: {
“appendAttribution”: false,
“reply_to_message_id”: “={{ $(‘Telegram Trigger’).item.json.message.message_id }}”
}
},
“type”: “n8n-nodes-base.telegram”,
“typeVersion”: 1.2,
“position”: [
2080,
144
],
“id”: “3533a49c-09d6-4748-b82b-2526db5fef6c”,
“name”: “Send a text message1”,
“webhookId”: “dd787721-1f2c-46ef-a573-480facc02d3d”,
“credentials”: {
“telegramApi”: {
“id”: “9kB0hTg4aV0ygsUm”,
“name”: “pp helper”
}
}
}
],
“pinData”: {},
“connections”: {
“Telegram Trigger”: {
“main”: [
[
{
“node”: “Filter”,
“type”: “main”,
“index”: 0
}
]
]
},
“Filter”: {
“main”: [
[
{
“node”: “If”,
“type”: “main”,
“index”: 0
}
]
]
},
“If”: {
“main”: [
[
{
“node”: “Filter1”,
“type”: “main”,
“index”: 0
}
],
[
{
“node”: “Filter2”,
“type”: “main”,
“index”: 0
}
]
]
},
“Filter1”: {
“main”: [
[
{
“node”: “Get a file”,
“type”: “main”,
“index”: 0
}
]
]
},
“Get a file”: {
“main”: [
[
{
“node”: “Extract from File”,
“type”: “main”,
“index”: 0
}
]
]
},
“Extract from File”: {
“main”: [
[
{
“node”: “AI Agent”,
“type”: “main”,
“index”: 0
}
]
]
},
“AI Agent”: {
“main”: [
[
{
“node”: “Send a text message1”,
“type”: “main”,
“index”: 0
}
]
]
},
“Filter2”: {
“main”: [
[
{
“node”: “AI Agent1”,
“type”: “main”,
“index”: 0
}
]
]
},
“AI Agent1”: {
“main”: [
[
{
“node”: “Send a text message1”,
“type”: “main”,
“index”: 0
}
]
]
},
“Google Gemini Chat Model”: {
“ai_languageModel”: [
[
{
“node”: “AI Agent”,
“type”: “ai_languageModel”,
“index”: 0
},
{
“node”: “AI Agent1”,
“type”: “ai_languageModel”,
“index”: 0
}
]
]
},
“Create a presentation in Google Slides”: {
“ai_tool”: [
[
{
“node”: “AI Agent”,
“type”: “ai_tool”,
“index”: 0
},
{
“node”: “AI Agent1”,
“type”: “ai_tool”,
“index”: 0
}
]
]
},
“Replace text in a presentation in Google Slides”: {
“ai_tool”: [
[
{
“node”: “AI Agent”,
“type”: “ai_tool”,
“index”: 0
},
{
“node”: “AI Agent1”,
“type”: “ai_tool”,
“index”: 0
}
]
]
},
“Get slides from a presentation in Google Slides”: {
“ai_tool”: [
[
{
“node”: “AI Agent”,
“type”: “ai_tool”,
“index”: 0
},
{
“node”: “AI Agent1”,
“type”: “ai_tool”,
“index”: 0
}
]
]
},
“Get a presentation in Google Slides”: {
“ai_tool”: [
[
{
“node”: “AI Agent”,
“type”: “ai_tool”,
“index”: 0
},
{
“node”: “AI Agent1”,
“type”: “ai_tool”,
“index”: 0
}
]
]
},
“Simple Memory”: {
“ai_memory”: [
[
{
“node”: “AI Agent”,
“type”: “ai_memory”,
“index”: 0
},
{
“node”: “AI Agent1”,
“type”: “ai_memory”,
“index”: 0
}
]
]
}
},
“active”: false,
“settings”: {
“executionOrder”: “v1”
},
“versionId”: “9908b0fa-e0e5-4901-b2e2-652ca3bfecee”,
“meta”: {
“templateCredsSetupCompleted”: true,
“instanceId”: “60bc28daf664ce690cf5345840038fddfc1c76783bcb5a3914d652c4957de7b6”
},
“id”: “yiD8smifgBwqdjYy”,
“tags”: [
{
“createdAt”: “2025-07-29T10:33:10.211Z”,
“updatedAt”: “2025-07-29T10:33:10.211Z”,
“id”: “zaY7XV3hgZFDnwn9”,
“name”: “prob?”
}
]
}

Jette un coup d’œil sur le tuto de @SalomonChrist How To AI Generate Slides with n8n and Google Slides in 10 Minutes FAST! Je pense que ça pourra t’aider.

1 Like

Merci Franck :partying_face::folded_hands:

1 Like