Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "nodes": [
- {
- "parameters": {
- "assignments": {
- "assignments": [
- {
- "id": "958da152-9b2d-42f8-9310-211c12f2d8a7",
- "name": "Idea",
- "value": "={{ $json.message.text }}",
- "type": "string"
- },
- {
- "id": "6decd926-7ef8-468d-b9fa-27b508935ca2",
- "name": "chat ID",
- "value": "={{ $json.message.chat.id }}",
- "type": "string"
- }
- ]
- },
- "options": {}
- },
- "type": "n8n-nodes-base.set",
- "typeVersion": 3.4,
- "position": [
- 360,
- -260
- ],
- "id": "51f0900d-eb82-42df-bb6d-587b05455ed0",
- "name": "Edit Fields"
- },
- {
- "parameters": {
- "promptType": "define",
- "text": "=You are an assistant engineered to deconstruct and sharpen raw ideas with the goal of turning them into clear, executable MVPs—like you're building the next Google.\n\nHere is the raw idea:\n{{ $json.property_idea }}\n\nYour task:\n\nAsk 1 precise, challenging question that clarify the idea, expose blind spots, and force accuracy.\n\nDo not share any opinion or analysis.\n\n",
- "options": {}
- },
- "type": "@n8n/n8n-nodes-langchain.agent",
- "typeVersion": 1.9,
- "position": [
- 620,
- -260
- ],
- "id": "238fc448-3c34-4893-b0e7-d9009dfadb6c",
- "name": "AI Agent"
- },
- {
- "parameters": {
- "model": {
- "__rl": true,
- "value": "gpt-3.5-turbo",
- "mode": "list",
- "cachedResultName": "gpt-3.5-turbo"
- },
- "options": {}
- },
- "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
- "typeVersion": 1.2,
- "position": [
- 480,
- -540
- ],
- "id": "f2e56f31-a427-418f-b37e-5aa8a3971cf4",
- "name": "OpenAI Chat Model",
- "credentials": {
- "openAiApi": {
- "id": "vCxRfzliaxf6QfFt",
- "name": "OpenAi account 2"
- }
- }
- },
- {
- "parameters": {
- "chatId": "={{ $('Edit Fields').item.json['chat ID'] }}",
- "text": "={{ $json.output }}",
- "additionalFields": {}
- },
- "type": "n8n-nodes-base.telegram",
- "typeVersion": 1.2,
- "position": [
- 1480,
- -280
- ],
- "id": "3067c69d-025c-4a30-9dd4-dc9e2b21a2f2",
- "name": "Telegram",
- "webhookId": "86fc952c-ea69-4a84-ae48-967b0bbca2a0",
- "credentials": {
- "telegramApi": {
- "id": "4KKcyaUk5RCZZ275",
- "name": "Telegram account"
- }
- }
- },
- {
- "parameters": {
- "updates": [
- "message"
- ],
- "additionalFields": {}
- },
- "type": "n8n-nodes-base.telegramTrigger",
- "typeVersion": 1.2,
- "position": [
- 60,
- -260
- ],
- "id": "2ad93392-fe41-44c7-8439-b90e34d9185b",
- "name": "Wait for Idea",
- "webhookId": "4d3607ee-1ee3-4538-ad2e-180df9f21f09",
- "credentials": {
- "telegramApi": {
- "id": "4KKcyaUk5RCZZ275",
- "name": "Telegram account"
- }
- }
- },
- {
- "parameters": {},
- "type": "n8n-nodes-base.wait",
- "typeVersion": 1.1,
- "position": [
- 1740,
- -280
- ],
- "id": "4ae7793a-bc37-49a8-a3f8-c911a765d4ca",
- "name": "Wait",
- "webhookId": "fd4acb5b-31a3-44f6-a458-a1b703902ca0"
- },
- {
- "parameters": {
- "resource": "databasePage",
- "databaseId": {
- "__rl": true,
- "value": "1f738dcb-c841-80a8-a7e3-e32185cb643e",
- "mode": "list",
- "cachedResultName": "AI chat sessions",
- "cachedResultUrl": "https://www.notion.so/1f738dcbc84180a8a7e3e32185cb643e"
- },
- "propertiesUi": {
- "propertyValues": [
- {
- "key": "chat_id|title",
- "title": "={{ $('Edit Fields').item.json['chat ID'] }}"
- },
- {
- "key": "idea|rich_text",
- "textContent": "={{ $('Edit Fields').item.json.Idea }}"
- },
- {
- "key": "state|rich_text",
- "textContent": "={{ $json.output }}"
- },
- {
- "key": "answer 1|rich_text"
- }
- ]
- },
- "options": {}
- },
- "type": "n8n-nodes-base.notion",
- "typeVersion": 2.2,
- "position": [
- 980,
- -260
- ],
- "id": "c44974eb-3a64-403b-833f-b66863461bf0",
- "name": "Notion",
- "credentials": {
- "notionApi": {
- "id": "tAhdL7UmYJpBkoCv",
- "name": "Notion account"
- }
- }
- },
- {
- "parameters": {
- "conditions": {
- "options": {
- "caseSensitive": true,
- "leftValue": "",
- "typeValidation": "strict",
- "version": 2
- },
- "conditions": [
- {
- "id": "b7734852-327d-4e64-bd62-900bf76ab21c",
- "leftValue": "={{ $json.property_state }}",
- "rightValue": "",
- "operator": {
- "type": "string",
- "operation": "exists",
- "singleValue": true
- }
- }
- ],
- "combinator": "and"
- },
- "options": {}
- },
- "type": "n8n-nodes-base.if",
- "typeVersion": 2.2,
- "position": [
- 1200,
- -260
- ],
- "id": "00ecee51-572f-4572-be3c-615361755d28",
- "name": "If"
- }
- ],
- "connections": {
- "Edit Fields": {
- "main": [
- [
- {
- "node": "AI Agent",
- "type": "main",
- "index": 0
- }
- ]
- ]
- },
- "AI Agent": {
- "main": [
- [
- {
- "node": "Notion",
- "type": "main",
- "index": 0
- }
- ]
- ]
- },
- "OpenAI Chat Model": {
- "ai_languageModel": [
- [
- {
- "node": "AI Agent",
- "type": "ai_languageModel",
- "index": 0
- }
- ]
- ]
- },
- "Telegram": {
- "main": [
- [
- {
- "node": "Wait",
- "type": "main",
- "index": 0
- }
- ]
- ]
- },
- "Wait for Idea": {
- "main": [
- [
- {
- "node": "Edit Fields",
- "type": "main",
- "index": 0
- }
- ]
- ]
- },
- "Wait": {
- "main": [
- []
- ]
- },
- "Notion": {
- "main": [
- [
- {
- "node": "If",
- "type": "main",
- "index": 0
- }
- ]
- ]
- },
- "If": {
- "main": [
- [
- {
- "node": "Telegram",
- "type": "main",
- "index": 0
- }
- ],
- []
- ]
- }
- },
- "pinData": {},
- "meta": {
- "templateCredsSetupCompleted": true,
- "instanceId": "52d5f1c962c34ca1894b0e314d1dde00e5e0651a971ec166d69a7e320398fc41"
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement