piepdrive-test
Automatically enrich your Pipedrive organization data and streamline internal communication with this powerful workflow. This automation begins when a new organization is created in Pipedrive, triggering an immediate request to Scrapingbee to extract content from the organization's associated URL. The scraped HTML content is then converted to Markdown and sent to OpenAI's GPT-4o model for intelligent summarization or analysis, generating a concise note. This OpenAI-generated note is subsequently added directly to the relevant organization in Pipedrive, ensuring all team members have access to key insights. Concurrently, a Slack notification is dispatched, providing a quick summary of the new organization and its scraped content, keeping your team instantly informed. This workflow is ideal for sales teams, business development professionals, and account managers who need to quickly understand new leads or clients, saving significant manual research time and ensuring consistent data enrichment within Pipedrive while fostering real-time team awareness.
Workflow JSON
{"id": "", "meta": {"instanceId": "", "templateCredsSetupCompleted": true}, "name": "piepdrive-test", "tags": [], "nodes": [{"id": "b2838678-c796-4c99-a3da-a2cd1b42ea97", "name": "Pipedrive Trigger - An Organization is created", "type": "n8n-nodes-base.pipedriveTrigger", "position": [820, 380], "webhookId": "f5de09a8-6601-4ad5-8bc8-9b3f4b83e997", "parameters": {"action": "added", "object": "organization"}, "credentials": {"pipedriveApi": {"id": "", "name": "[Your pipedriveApi]"}}, "typeVersion": 1}, {"id": "5aa05d79-b2fa-4040-b4ca-cad83adf2798", "name": "Sticky Note", "type": "n8n-nodes-base.stickyNote", "position": [-20, 120], "parameters": {"width": 656.3637637842876, "height": 1455.9537026322007, "content": "# Enrich Pipedrive's Organization Data with GPT-4o When an Organization is Created in Pipedrive\n\nThis workflow **enriches a Pipedrive organization's data by adding a note to the organization object in Pipedrive**. It assumes there is a custom \"website\" field in your Pipedrive setup, as data will be scraped from this website to generate a note using OpenAI.\n\n## \u26a0\ufe0f Disclaimer\n**These workflows use a scraping API. Before using it, ensure you comply with the regulations regarding web scraping in your country or state**.\n\n## Important Notes\n- The OpenAI model used is GPT-4o, chosen for its large input token context capacity. However, it is also **the most expensive option**, you should take cost into consideration.\n\n- The system prompt in the OpenAI Node generates output with relevant information, but feel free to improve or **modify it according to your needs**.\n\n## **How It Works**\n\n### Node 1: `Pipedrive Trigger - An Organization is Created`\nThis is the trigger of the workflow. When **an organization object is created in Pipedrive**, this node is triggered and retrieves the data. Make sure you have a \"website\" custom field (the name of the field in the n8n node will appear as a random ID and not with the Pipedrive custom field name).\n\n### Node 2: `ScrapingBee - Get Organization's Website's Homepage Content`\nThis node **scrapes the content** from the URL of the website associated with the **Pipedrive Organization** created in Node 1. The workflow uses the [ScrapingBee](https://www.scrapingbee.com/) API, but you can use any preferred API or simply the HTTP request node in n8n.\n\n### Node 3: `OpenAI - Message GPT-4o with Scraped Data`\nThis node sends HTML-scraped data from the previous node to the **OpenAI GPT-4 model**. The system prompt instructs the model to **extract company data**, such as products or services offered and competitors (if known by the model), and format it as HTML for optimal use in a Pipedrive Note.\n\n### Node 4: `Pipedrive - Create a Note with OpenAI Output`\nThis node **adds a Note to the Organization created in Pipedrive** using the OpenAI node output. The Note will include the company description, target market, selling products, and competitors (if GPT-4 was able to determine them).\n\n### Node 5 & 6: `HTML To Markdown` & `Code - Markdown to Slack Markdown`\nThese two nodes **format the HTML output to Slack Markdown**.\n\nThe Note created in Pipedrive is in HTML format, **as specified by the System Prompt of the OpenAI Node**. To send it to Slack, it needs to be converted to Markdown and then to Slack-specific Markdown.\n\n### Node 7: `Slack - Notify`\nThis node **sends a message in Slack containing the Pipedrive Organization Note** created with this workflow.\n"}, "typeVersion": 1}, {"id": "47ee8bfb-2f9d-4790-a929-1533215d6746", "name": "Pipedrive - Create a Note with OpenAI output", "type": "n8n-nodes-base.pipedrive", "position": [1640, 380], "parameters": {"content": "={{ $json.message.content }}", "resource": "note", "additionalFields": {"org_id": "={{ $('Pipedrive Trigger - An Organization is created').item.json.meta.id }}"}}, "credentials": {"pipedriveApi": {"id": "", "name": "[Your pipedriveApi]"}}, "typeVersion": 1}, {"id": "7783b531-0469-4bee-868e-4b26a1bb41ba", "name": "Code - Markdown to Slack Markdown", "type": "n8n-nodes-base.code", "position": [2080, 380], "parameters": {"jsCode": "const inputMarkdown = items[0].json.data;\n\nfunction convertMarkdownToSlackFormat(markdown) {\n let slackFormatted = markdown;\n \n // Convert headers\n slackFormatted = slackFormatted.replace(/^# (.*$)/gim, '*$1*');\n slackFormatted = slackFormatted.replace(/^## (.*$)/gim, '*$1*');\n \n // Convert unordered lists\n slackFormatted = slackFormatted.replace(/^\\* (.*$)/gim, '\u27a1\ufe0f $1');\n \n // Convert tables\n const tableRegex = /\\n\\|.*\\|\\n\\|.*\\|\\n((\\|.*\\|\\n)+)/;\n const tableMatch = slackFormatted.match(tableRegex);\n if (tableMatch) {\n const table = tableMatch[0];\n const rows = table.split('\\n').slice(3, -1);\n const formattedRows = rows.map(row => {\n const columns = row.split('|').slice(1, -1).map(col => col.trim());\n return `*${columns[0]}*: ${columns[1]}`;\n }).join('\\n');\n slackFormatted = slackFormatted.replace(table, formattedRows);\n }\n \n return slackFormatted;\n}\n\nconst slackMarkdown = convertMarkdownToSlackFormat(inputMarkdown);\nconsole.log(slackMarkdown);\n\n// Return data\nreturn [{ slackFormattedMarkdown: slackMarkdown }];\n"}, "typeVersion": 2}, {"id": "cf2b02df-07e8-4ebb-ba3d-bfd294dcfab0", "name": "Scrapingbee - Get Organization's URL content", "type": "n8n-nodes-base.httpRequest", "position": [1040, 380], "parameters": {"url": "https://app.scrapingbee.com/api/v1", "options": {}, "sendQuery": true, "queryParameters": {"parameters": [{"name": "api_key", "value": "<YOUR_SCRAPINGBEE_API_KEY>"}, {"name": "url", "value": "={{ $json.current.<random_api_id_custom_website_field> }}"}, {"name": "render_js", "value": "false"}]}}, "typeVersion": 4.2}, {"id": "906d44f0-7582-4742-9fd8-4c8dfba918e0", "name": "HTML To Markdown", "type": "n8n-nodes-base.markdown", "position": [1860, 380], "parameters": {"html": "={{ $json.content }}", "options": {}}, "typeVersion": 1}, {"id": "8c1a5d64-4f38-4f9e-8878-443f750206b7", "name": "Slack - Notify ", "type": "n8n-nodes-base.slack", "position": [2300, 380], "parameters": {"text": "=*New Organizaton {{ $('Pipedrive Trigger - An Organization is created').item.json.current.name }} created on Pipedrive* :\n\n\n {{ $json.slackFormattedMarkdown }}", "select": "channel", "channelId": {"__rl": true, "mode": "list", "value": "", "cachedResultName": "pipedrive-notification"}, "otherOptions": {}, "authentication": "oAuth2"}, "credentials": {"slackOAuth2Api": {"id": "", "name": "[Your slackOAuth2Api]"}}, "typeVersion": 2.2}, {"id": "2414a5d3-1d4b-447b-b401-4b6f823a0cf9", "name": "OpenAI - Message GPT-4o with Scraped Data", "type": "@n8n/n8n-nodes-langchain.openAi", "position": [1260, 380], "parameters": {"modelId": {"__rl": true, "mode": "list", "value": "gpt-4o", "cachedResultName": "GPT-4O"}, "options": {}, "messages": {"values": [{"content": "={{ $json.data }}"}, {"role": "system", "content": "You're an assistant that summarizes website content for CRM entries. The user will provide HTML content from a company's website. Your task is to analyze the HTML content and create a concise summary that includes:\n\n1. A brief description of the company's services or products.\n2. Any information about the company's target market or customer base.\n3. Key points about the company's unique selling propositions or competitive advantages.\n4. Based on the provided information, suggest potential competitors if you know any.\n\nFormat your response as HTML.\n\nExample response :\n\n <h1>Company Description</h1>\n <p>Company1 specializes in services related to electric vehicles. The company focuses on providing resources and information about electric car chargers, battery life, different car brands, and the environmental impact of electric vehicles.</p>\n\n <h2>Target Market</h2>\n <p>The target market for Company1 includes electric vehicle owners and potential buyers who are interested in making the shift from traditional fossil fuel vehicles to electric cars. The company also targets environmentally conscious consumers who are looking for sustainable mobility solutions.</p>\n\n <h2>Unique Selling Propositions</h2>\n <ul>\n <li>Comprehensive information about electric vehicle charging solutions, including how to install home charging stations.</li>\n <li>Detailed articles on the advantages of electric vehicles such as ecology and reliability.</li>\n <li>Educational resources on the autonomy and battery life of different electric car models.</li>\n <li>Insights into premier electric vehicle brands.</li>\n </ul>\n\n <h2>Potential Competitors</h2>\n <table border=\"1\">\n <tr>\n <th>Competitor Name</th>\n <th>Website</th>\n </tr>\n <tr>\n <td>Competitor1</td>\n <td><a href=\"https://www.example1.com\">https://www.example1.com</a></td>\n </tr>\n <tr>\n <td>Competitor2</td>\n <td><a href=\"https://www.example2.com\">https://www.example2.com</a></td>\n </tr>\n <tr>\n <td>Competitor3</td>\n <td><a href=\"https://www.example3.com\">https://www.example3.com</a></td>\n </tr>\n <tr>\n <td>Competitor4</td>\n <td><a href=\"https://www.example4.com\">https://www.example4.com</a></td>\n </tr>\n </table>\n"}]}}, "credentials": {"openAiApi": {"id": "", "name": "[Your openAiApi]"}}, "typeVersion": 1.3}], "active": false, "pinData": {}, "settings": {"executionOrder": "v1"}, "versionId": "", "connections": {"HTML To Markdown": {"main": [[{"node": "Code - Markdown to Slack Markdown", "type": "main", "index": 0}]]}, "Code - Markdown to Slack Markdown": {"main": [[{"node": "Slack - Notify ", "type": "main", "index": 0}]]}, "OpenAI - Message GPT-4o with Scraped Data": {"main": [[{"node": "Pipedrive - Create a Note with OpenAI output", "type": "main", "index": 0}]]}, "Pipedrive - Create a Note with OpenAI output": {"main": [[{"node": "HTML To Markdown", "type": "main", "index": 0}]]}, "Scrapingbee - Get Organization's URL content": {"main": [[{"node": "OpenAI - Message GPT-4o with Scraped Data", "type": "main", "index": 0}]]}, "Pipedrive Trigger - An Organization is created": {"main": [[{"node": "Scrapingbee - Get Organization's URL content", "type": "main", "index": 0}]]}}}How to Import This Workflow
- 1Copy the workflow JSON above using the Copy Workflow JSON button.
- 2Open your n8n instance and go to Workflows.
- 3Click Import from JSON and paste the copied workflow.
Don't have an n8n instance? Start your free trial at n8nautomation.cloud
Related Templates
Auto-create TikTok videos with VEED.io AI avatars, ElevenLabs & GPT-4
Automate the creation and distribution of trending TikTok videos using AI avatars. This workflow connects Telegram, Perplexity, OpenAI, ElevenLabs, VEED.io, and BLOTATO to generate scripts, synthesize voice, create video, and publish across multiple social platforms. Content creators and marketers can rapidly produce engaging short-form video content without manual editing.
Create childrens AI story videos from drawings and auto-publish to YouTube with Blotato
💥 From Drawing to Story: Auto-Publish AI Video to YouTube with Blotato Overview Transform a hand-drawn character sketch into a fully animated, narrated video story — automatically. This 3-part pipeline uses Claude AI, image generation, and video synthesis to go from a simple drawing to a publish-ready video, with no manual editing required. Perfect for: indie creators, educators, storytellers, and anyone who wants to bring hand-drawn characters to life at scale. How It Works Part 1 — From Drawing to Story: Bringing Characters to Life A form submission triggers the workflow with an uploaded drawing The image is analyzed by Claude AI to extract characters and traits Character images are generated via Nano Banana (image generation API) A full story is written by Claude AI, split into scenes, and passed to Part 2 Part 2 — From Characters to Scenes: Rendering the Visual Story Character images are downloaded and converted to Base64 references Scene images are generated using Nano Banana with character consistency Scene image URLs are mapped and the video pipeline is triggered Part 3 — From Scenes to Screen: Video, Narration & Final Render Video prompts and narration context are generated by Claude AI Videos are generated via AtlasCloud (Kling Pro 3.0) with polling loop Narration audio is created with ElevenLabs and uploaded Shotstack assembles the final video with audio sync Final video is published to YouTube (and optionally TikTok) > ⚠️ Important — Workflow Structure > > This template is split into 3 separate workflows. > Each part must be imported and deployed in its own workflow in n8n. > > 📺 Watch the step-by-step tutorial to set everything up correctly: > > @youtube Requirements Credentials needed Blotato API credentials (YouTube/TikTok publishing) AtlasCloud API (Kling Pro 3.0 video generation) Anthropic API key (Claude AI for story & prompts) ElevenLabs API key (narration audio) Shotstack API key (video assembly) Nano Banana API key (image generation) Setup steps Configure credentials for each service above in n8n Set up a form trigger with a file upload field for the drawing Deploy the 3 workflows in order and connect them via webhooks Run a test submission with a simple sketch to validate the full pipeline 🎥 Watch This Tutorial 👋 Need help or want to customize this? 📩 Contact: LinkedIn 📺 YouTube: @DRFIRASS 🚀 Workshops: Mes Ateliers n8n Need help customizing? Contact me for consulting and support : Linkedin / Youtube / 🚀 Mes Ateliers n8n
Automate LinkedIn Posts with AI
Automate your LinkedIn content creation and publishing by leveraging AI with this powerful workflow. This n8n automation connects LinkedIn, OpenAI, and Notion to streamline your social media presence. A Schedule Trigger initiates the process daily, querying your Notion database for today's scheduled posts. For each post, the workflow fetches all content from its Notion page, including text blocks and an image URL, then uses OpenAI to reformat the post text for optimal engagement. The workflow then combines the rephrased text and fetched image, publishing the complete post directly to LinkedIn. Finally, it updates the post's status in Notion to "Done," ensuring your content calendar remains accurate. This workflow is ideal for content creators, marketers, and businesses looking to maintain a consistent and engaging LinkedIn presence without manual effort, saving significant time on content preparation and publishing while ensuring high-quality, AI-enhanced posts.