Advertisement
Guest User

Untitled

a guest
May 22nd, 2025
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.21 KB | None | 0 0
  1. {
  2. "nodes": [
  3. {
  4. "parameters": {
  5. "assignments": {
  6. "assignments": [
  7. {
  8. "id": "958da152-9b2d-42f8-9310-211c12f2d8a7",
  9. "name": "Idea",
  10. "value": "={{ $json.message.text }}",
  11. "type": "string"
  12. },
  13. {
  14. "id": "6decd926-7ef8-468d-b9fa-27b508935ca2",
  15. "name": "chat ID",
  16. "value": "={{ $json.message.chat.id }}",
  17. "type": "string"
  18. }
  19. ]
  20. },
  21. "options": {}
  22. },
  23. "type": "n8n-nodes-base.set",
  24. "typeVersion": 3.4,
  25. "position": [
  26. 360,
  27. -260
  28. ],
  29. "id": "51f0900d-eb82-42df-bb6d-587b05455ed0",
  30. "name": "Edit Fields"
  31. },
  32. {
  33. "parameters": {
  34. "promptType": "define",
  35. "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",
  36. "options": {}
  37. },
  38. "type": "@n8n/n8n-nodes-langchain.agent",
  39. "typeVersion": 1.9,
  40. "position": [
  41. 620,
  42. -260
  43. ],
  44. "id": "238fc448-3c34-4893-b0e7-d9009dfadb6c",
  45. "name": "AI Agent"
  46. },
  47. {
  48. "parameters": {
  49. "model": {
  50. "__rl": true,
  51. "value": "gpt-3.5-turbo",
  52. "mode": "list",
  53. "cachedResultName": "gpt-3.5-turbo"
  54. },
  55. "options": {}
  56. },
  57. "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
  58. "typeVersion": 1.2,
  59. "position": [
  60. 480,
  61. -540
  62. ],
  63. "id": "f2e56f31-a427-418f-b37e-5aa8a3971cf4",
  64. "name": "OpenAI Chat Model",
  65. "credentials": {
  66. "openAiApi": {
  67. "id": "vCxRfzliaxf6QfFt",
  68. "name": "OpenAi account 2"
  69. }
  70. }
  71. },
  72. {
  73. "parameters": {
  74. "chatId": "={{ $('Edit Fields').item.json['chat ID'] }}",
  75. "text": "={{ $json.output }}",
  76. "additionalFields": {}
  77. },
  78. "type": "n8n-nodes-base.telegram",
  79. "typeVersion": 1.2,
  80. "position": [
  81. 1480,
  82. -280
  83. ],
  84. "id": "3067c69d-025c-4a30-9dd4-dc9e2b21a2f2",
  85. "name": "Telegram",
  86. "webhookId": "86fc952c-ea69-4a84-ae48-967b0bbca2a0",
  87. "credentials": {
  88. "telegramApi": {
  89. "id": "4KKcyaUk5RCZZ275",
  90. "name": "Telegram account"
  91. }
  92. }
  93. },
  94. {
  95. "parameters": {
  96. "updates": [
  97. "message"
  98. ],
  99. "additionalFields": {}
  100. },
  101. "type": "n8n-nodes-base.telegramTrigger",
  102. "typeVersion": 1.2,
  103. "position": [
  104. 60,
  105. -260
  106. ],
  107. "id": "2ad93392-fe41-44c7-8439-b90e34d9185b",
  108. "name": "Wait for Idea",
  109. "webhookId": "4d3607ee-1ee3-4538-ad2e-180df9f21f09",
  110. "credentials": {
  111. "telegramApi": {
  112. "id": "4KKcyaUk5RCZZ275",
  113. "name": "Telegram account"
  114. }
  115. }
  116. },
  117. {
  118. "parameters": {},
  119. "type": "n8n-nodes-base.wait",
  120. "typeVersion": 1.1,
  121. "position": [
  122. 1740,
  123. -280
  124. ],
  125. "id": "4ae7793a-bc37-49a8-a3f8-c911a765d4ca",
  126. "name": "Wait",
  127. "webhookId": "fd4acb5b-31a3-44f6-a458-a1b703902ca0"
  128. },
  129. {
  130. "parameters": {
  131. "resource": "databasePage",
  132. "databaseId": {
  133. "__rl": true,
  134. "value": "1f738dcb-c841-80a8-a7e3-e32185cb643e",
  135. "mode": "list",
  136. "cachedResultName": "AI chat sessions",
  137. "cachedResultUrl": "https://www.notion.so/1f738dcbc84180a8a7e3e32185cb643e"
  138. },
  139. "propertiesUi": {
  140. "propertyValues": [
  141. {
  142. "key": "chat_id|title",
  143. "title": "={{ $('Edit Fields').item.json['chat ID'] }}"
  144. },
  145. {
  146. "key": "idea|rich_text",
  147. "textContent": "={{ $('Edit Fields').item.json.Idea }}"
  148. },
  149. {
  150. "key": "state|rich_text",
  151. "textContent": "={{ $json.output }}"
  152. },
  153. {
  154. "key": "answer 1|rich_text"
  155. }
  156. ]
  157. },
  158. "options": {}
  159. },
  160. "type": "n8n-nodes-base.notion",
  161. "typeVersion": 2.2,
  162. "position": [
  163. 980,
  164. -260
  165. ],
  166. "id": "c44974eb-3a64-403b-833f-b66863461bf0",
  167. "name": "Notion",
  168. "credentials": {
  169. "notionApi": {
  170. "id": "tAhdL7UmYJpBkoCv",
  171. "name": "Notion account"
  172. }
  173. }
  174. },
  175. {
  176. "parameters": {
  177. "conditions": {
  178. "options": {
  179. "caseSensitive": true,
  180. "leftValue": "",
  181. "typeValidation": "strict",
  182. "version": 2
  183. },
  184. "conditions": [
  185. {
  186. "id": "b7734852-327d-4e64-bd62-900bf76ab21c",
  187. "leftValue": "={{ $json.property_state }}",
  188. "rightValue": "",
  189. "operator": {
  190. "type": "string",
  191. "operation": "exists",
  192. "singleValue": true
  193. }
  194. }
  195. ],
  196. "combinator": "and"
  197. },
  198. "options": {}
  199. },
  200. "type": "n8n-nodes-base.if",
  201. "typeVersion": 2.2,
  202. "position": [
  203. 1200,
  204. -260
  205. ],
  206. "id": "00ecee51-572f-4572-be3c-615361755d28",
  207. "name": "If"
  208. }
  209. ],
  210. "connections": {
  211. "Edit Fields": {
  212. "main": [
  213. [
  214. {
  215. "node": "AI Agent",
  216. "type": "main",
  217. "index": 0
  218. }
  219. ]
  220. ]
  221. },
  222. "AI Agent": {
  223. "main": [
  224. [
  225. {
  226. "node": "Notion",
  227. "type": "main",
  228. "index": 0
  229. }
  230. ]
  231. ]
  232. },
  233. "OpenAI Chat Model": {
  234. "ai_languageModel": [
  235. [
  236. {
  237. "node": "AI Agent",
  238. "type": "ai_languageModel",
  239. "index": 0
  240. }
  241. ]
  242. ]
  243. },
  244. "Telegram": {
  245. "main": [
  246. [
  247. {
  248. "node": "Wait",
  249. "type": "main",
  250. "index": 0
  251. }
  252. ]
  253. ]
  254. },
  255. "Wait for Idea": {
  256. "main": [
  257. [
  258. {
  259. "node": "Edit Fields",
  260. "type": "main",
  261. "index": 0
  262. }
  263. ]
  264. ]
  265. },
  266. "Wait": {
  267. "main": [
  268. []
  269. ]
  270. },
  271. "Notion": {
  272. "main": [
  273. [
  274. {
  275. "node": "If",
  276. "type": "main",
  277. "index": 0
  278. }
  279. ]
  280. ]
  281. },
  282. "If": {
  283. "main": [
  284. [
  285. {
  286. "node": "Telegram",
  287. "type": "main",
  288. "index": 0
  289. }
  290. ],
  291. []
  292. ]
  293. }
  294. },
  295. "pinData": {},
  296. "meta": {
  297. "templateCredsSetupCompleted": true,
  298. "instanceId": "52d5f1c962c34ca1894b0e314d1dde00e5e0651a971ec166d69a7e320398fc41"
  299. }
  300. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement