Task: ChatGPT for Buyer Intent Data

n8n workflow:
{"meta":{"instanceId":"a4061dfe6db29b364e0be9baa2b586a21baf6d29e30bc6f904c335c28f1284fb"},"nodes":[{"id":"ac845124-d2d2-434d-b375-51637a796c04","name":"Split In Batches","type":"n8n-nodes-base.splitInBatches","position":[-1560,620],"parameters":{"options":{},"batchSize":1},"typeVersion":1},{"id":"622d8b49-23cc-4ccd-b0cb-7cbdbc3b70c2","name":"Google Sheets","type":"n8n-nodes-base.googleSheets","position":[-1860,620],"parameters":{"options":{},"sheetName":{"__rl":true,"mode":"list","value":487631050,"cachedResultUrl":"https://docs.google.com/spreadsheets/d/1tR3b2JKSNxbzNd0V_cWYqcGKM4lAvWgCV31xqKt8hRY/edit#gid=487631050","cachedResultName":"companies"},"documentId":{"__rl":true,"mode":"url","value":"https://docs.google.com/spreadsheets/d/1tR3b2JKSNxbzNd0V_cWYqcGKM4lAvWgCV31xqKt8hRY/edit#gid=487631050","__regex":"https:\\/\\/(?:drive|docs)\\.google\\.com\\/\\w+\\/d\\/([0-9a-zA-Z\\-_]+)(?:\\/.*|)"}},"credentials":{"googleSheetsOAuth2Api":{"id":"1","name":"Google Sheets account"}},"typeVersion":3},{"id":"2b4908ab-eed7-4178-8ede-9cfa805423e5","name":"Wait","type":"n8n-nodes-base.wait","position":[540,820],"webhookId":"e86b2714-a0cc-4d38-a6c9-f4baf3091025","parameters":{"unit":"seconds"},"typeVersion":1},{"id":"9e462d01-448d-4228-81d2-c5820220e36c","name":"Merge","type":"n8n-nodes-base.merge","position":[-1020,640],"parameters":{"mode":"combine","options":{},"combinationMode":"mergeByPosition"},"typeVersion":2.1},{"id":"28f40757-6e5f-49cb-81f5-e6697a123a1b","name":"Baseloop - Get Last News","type":"n8n-nodes-base.httpRequest","position":[-1280,780],"parameters":{"url":"=https://api.baseloop.io/v1/loops/summarize?apiKey=BASELOOP_API_KEY&forceSuccess=true","method":"POST","options":{},"jsonBody":"={     \n    \"url\": \"{{ $node[\"Split In Batches\"].json[\"Company Linkedin Url\"] }}\",\n    \"customPrompt\": \"Extract the keyinsights from the the post and display these insights chronologically,ensuring you adhere to the YYYY-MM-DD date format. Convert all temporal references like '2d', '2w', '1mo' to specific dates, considering today's date as reference: {{new Date().toISOString()}}. Present each insight following this schema: '-date: insight' \\n\\n  Linkedin Post: [[context]] \\n KEY INSIGHTS:\",\n      \"selectors\": \"section.updates\",\n      \"ignoreSelectors\": \".flex.mb-1 p, div.collapsible-dropdown, div.social-action-bar, section.hidden-summary, .main-feed-activity-card__social-actions\"\n}","sendBody":true,"specifyBody":"json"},"typeVersion":4.1},{"id":"8cf2be8f-0dc3-4271-bd82-bb0f93fc7133","name":"Personalize Key Insights","type":"n8n-nodes-base.openAi","position":[-360,460],"parameters":{"prompt":{"messages":[{"role":"system","content":"You are an assistant helping me with the first line to a sales email."},{"content":"=Using the input, generate 5 first lines using the latest company announcements.\nThese are the announcements :\n\n“-2023-06-08: Notion introduces new Notion Projects feature\n-2023-06-21: Rob Giampietro is announced as Notion’s new Head of Creative\n-2023-06-21: Notion introduces Mural previews feature\n-2023-06-22: Notion wishes Happy Juneteenth\n-2023-06-18: Notion recaps all the features included in Notion Projects\n-2023-06-18: PartnerStack moves to Notion for project management\n-2023-06-17: Notion adds dependency shifting to timeline views\n-2023-06-16: Notion introduces real-time GitHub integration\n-2023-06-15: Notion is launched on Product Hunt for teams to document their design system\n-2023-06-15: Notion introduces pre-configured sprint workflow in beta”\n\nComplete each line in under 10 words and use keywords from the input and use my prefix here: “I noticed"},{"role":"assistant","content":"=1. I noticed Notion has new Projects & Mural previews features.\n2. I noticed Rob Giampietro is the new Head of Creative.\n3. I noticed Notion wishes Happy Juneteenth & adds features.\n4. I noticed PartnerStack switches to Notion for project management.\n5. I noticed GitHub now integrates real-time with Notion."},{"content":"=Using the input, generate 5 first lines using the latest company announcements.\n        \nThese are the announcements:\n{{ $json.output.answer }}\n"}]},"options":{"maxTokens":2000,"temperature":0.3},"resource":"chat"},"typeVersion":1},{"id":"9cede89e-31d9-4c0e-84c5-4a019c378ab3","name":"Merge1","type":"n8n-nodes-base.merge","position":[-20,600],"parameters":{"mode":"combine","options":{},"combinationMode":"mergeByPosition"},"typeVersion":2.1},{"id":"e60c0a92-3583-4bda-8bbe-3b74ee27eb21","name":"When clicking \"Execute Workflow\"","type":"n8n-nodes-base.manualTrigger","position":[-2140,620],"parameters":{},"typeVersion":1},{"id":"e33f9e67-31f3-4325-9f91-fdf3fd27d88a","name":"Update Google Sheet","type":"n8n-nodes-base.googleSheets","position":[240,600],"parameters":{"options":{},"fieldsUi":{"values":[{"column":"Latest Company News","fieldValue":"={{ $json.output.answer }}"},{"column":"5 ready-to-use, personalized messages","fieldValue":"={{ $json.message.content }}"}]},"operation":"update","sheetName":{"__rl":true,"mode":"list","value":"gid=0","cachedResultUrl":"https://docs.google.com/spreadsheets/d/1L-Z0L1_8qsCbalcBMuR9O_r235qMLGWTlFqXRFkZYTw/edit#gid=0","cachedResultName":"Sheet1"},"documentId":{"__rl":true,"mode":"url","value":"https://docs.google.com/spreadsheets/d/1L-Z0L1_8qsCbalcBMuR9O_r235qMLGWTlFqXRFkZYTw/edit#gid=0","__regex":"https:\\/\\/(?:drive|docs)\\.google\\.com\\/\\w+\\/d\\/([0-9a-zA-Z\\-_]+)(?:\\/.*|)"},"valueToMatchOn":"={{ $json['Company Linkedin Url'] }}","columnToMatchOn":"Company Linkedin Url"},"credentials":{"googleSheetsOAuth2Api":{"id":"1","name":"Google Sheets account"}},"typeVersion":3},{"id":"8bb90515-1cd6-45c0-9944-9137ae5f9d42","name":"SKIP ON ERROR","type":"n8n-nodes-base.switch","position":[-680,640],"parameters":{"rules":{"rules":[{"value2":"={{ !!$json?.output?.answer }}"}]},"value1":true,"dataType":"boolean","fallbackOutput":1},"typeVersion":1}],"connections":{"Wait":{"main":[[{"node":"Split In Batches","type":"main","index":0}]]},"Merge":{"main":[[{"node":"SKIP ON ERROR","type":"main","index":0}]]},"Merge1":{"main":[[{"node":"Update Google Sheet","type":"main","index":0}]]},"Google Sheets":{"main":[[{"node":"Split In Batches","type":"main","index":0}]]},"SKIP ON ERROR":{"main":[[{"node":"Personalize Key Insights","type":"main","index":0},{"node":"Merge1","type":"main","index":1}],[{"node":"Wait","type":"main","index":0}]]},"Split In Batches":{"main":[[{"node":"Merge","type":"main","index":0},{"node":"Baseloop - Get Last News","type":"main","index":0}]]},"Update Google Sheet":{"main":[[{"node":"Wait","type":"main","index":0}]]},"Baseloop - Get Last News":{"main":[[{"node":"Merge","type":"main","index":1}]]},"Personalize Key Insights":{"main":[[{"node":"Merge1","type":"main","index":0}]]},"When clicking \"Execute Workflow\"":{"main":[[{"node":"Google Sheets","type":"main","index":0}]]}}}