This workflow follows the Chainllm → OpenAI Chat recipe pattern — see all workflows that pair these two integrations.
The workflow JSON
Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →
{
"name": "TitletoContentCreate",
"nodes": [
{
"parameters": {
"updates": [
"message"
],
"additionalFields": {}
},
"type": "n8n-nodes-base.telegramTrigger",
"typeVersion": 1.2,
"position": [
-1024,
-224
],
"id": "c215cc4b-e718-458d-82a8-d5de8f8a555c",
"name": "Telegram Trigger",
"credentials": {
"telegramApi": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"promptType": "define",
"text": "=write a crisp and value content for one page with below title: {{ $json.message.text }}",
"messages": {
"messageValues": [
{
"message": "you are an skilled content writer and able to write complex topics in simple words and cover the full concepts in short\n\nwrite a one page content for the given title with clear formatting with bullet points and understand the whole concept clearly.\n\nprovide referral links if it has."
}
]
},
"batching": {}
},
"type": "@n8n/n8n-nodes-langchain.chainLlm",
"typeVersion": 1.7,
"position": [
-816,
-224
],
"id": "5bd41308-b5cd-4d61-ba13-c40a5a22dfa5",
"name": "Basic LLM Chain"
},
{
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-4.1-mini"
},
"builtInTools": {},
"options": {
"temperature": 0.7
}
},
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"typeVersion": 1.3,
"position": [
-896,
-16
],
"id": "c86590d0-c110-4329-8d41-8345c2772733",
"name": "OpenAI Chat Model",
"credentials": {
"openAiApi": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"operation": "update",
"documentURL": "https://docs.google.com/document/d/18HIxYvmPatQsRVXbSPisel7mUouAmbuLZjhbbPF50Og/edit?tab=t.0",
"actionsUi": {
"actionFields": [
{
"action": "insert",
"text": "={{ $json.text }}"
}
]
}
},
"type": "n8n-nodes-base.googleDocs",
"typeVersion": 2,
"position": [
-464,
-224
],
"id": "3438324f-9193-46c2-88ee-208899431edb",
"name": "Update a document",
"credentials": {
"googleDocsOAuth2Api": {
"name": "<your credential>"
}
}
}
],
"connections": {
"Telegram Trigger": {
"main": [
[
{
"node": "Basic LLM Chain",
"type": "main",
"index": 0
}
]
]
},
"OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "Basic LLM Chain",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Basic LLM Chain": {
"main": [
[
{
"node": "Update a document",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "40c1938d-cc76-484a-9b8d-dac9068e18eb",
"meta": {
"templateCredsSetupCompleted": true
},
"id": "l5NE6b0jYqQoQ3Fs",
"tags": []
}
Credentials you'll need
Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.
googleDocsOAuth2ApiopenAiApitelegramApi
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
TitletoContentCreate. Uses telegramTrigger, chainLlm, lmChatOpenAi, googleDocs. Event-driven trigger; 4 nodes.
Source: https://github.com/Selvarani-vka/GenAI-60days/blob/4983ec1e2fcbfcf244d247dd63c6fbb271e93cdd/n8n/TitletoContentCreate.json — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
titletopodcast. Uses telegramTrigger, chainLlm, lmChatOpenAi, openAi. Event-driven trigger; 7 nodes.
This workflow receives startup ideas via a Telegram bot, uses OpenAI (GPT-4o and GPT-4o mini) plus Perplexity to score, research, and validate them, then generates a full business plan in Google Docs,
⚠️ Disclaimer This workflow uses a community node: Please make sure to install this before running the workflow.
This is a powerful n8n automation workflow that integrates a Telegram bot with OpenAI's multimodal large language model (GPT-4 Vision) to provide users with real-time stock chart analysis.
teleGramFlow. Uses telegramTrigger, chainLlm, lmChatOpenAi, telegram. Event-driven trigger; 4 nodes.