{
  "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": []
}