See llms.txt for all machine-readable content.

LinkedIn and OpenCTI integration

Save yourself the work of writing custom integrations for LinkedIn and OpenCTI and use n8n instead. Build adaptable and scalable Marketing, Communication, workflows that work with your technology stack. All within a building experience you will love.

How to connect LinkedIn and OpenCTI

Create a new workflow and add the first step

In n8n, click the "Add workflow" button in the Workflows tab to create a new workflow. Add the starting point – a trigger on when your workflow should run: an app event, a schedule, a webhook call, another workflow, an AI chat, or a manual trigger. Sometimes, the HTTP Request node might already serve as your starting point.

LinkedIn and OpenCTI integration: Create a new workflow and add the first step

Generate AI-powered LinkedIn posts with Ollama, image creation, and Gmail delivery

This automation flow is designed to generate professional, research-backed LinkedIn posts based on a user-submitted topic and audience, enhance it with a visually aligned image prompt, and then automatically send the post and image via Gmail and/or publish it to LinkedIn. ⚙️ How It Works (Step-by-Step): 📝 Form Submission (Input Trigger) A user fills out a form with: Email Topic of the Post Target Audience This form submission acts as the entry point of the workflow (Form Trigger node). 🤖 LinkedIn Post Generation Agent An AI agent is triggered that: Uses Tavily API to fetch real-time web search content related to the topic. Processes the topic and audience data using an Ollama Chat Model. Generates a well-structured LinkedIn post that includes: Hook Educational insight Professional tone Source citations Hashtags and call to action 🎨 Image Prompt Agent The generated post is passed to a second agent that: Extracts the core message. Converts it into a graphic prompt using a different Ollama LLM. The prompt is written to be used by an image-generation model like DALL·E or Gemma/GPT-based image tools. 🖼️ Image Generation The image prompt is passed to a local image generation endpoint (localhost:8098) or OpenAI (api.openai.com) to generate a visual asset. The base64 image is converted into a file. 📩 Email Dispatch The post text and the generated image are then sent to the user’s email address via the Gmail node. The email includes: The full LinkedIn post The auto-generated image as an attachment 🔗 LinkedIn Publishing (Optional) If OAuth is enabled, the post can also be published directly to LinkedIn using the LinkedIn node. 🛠️ Tools Used: n8n: Orchestration platform OpenRouter & Ollama: Local/hosted LLMs for post and prompt generation Tavily API: Real-time web search OpenAI or Local Endpoint: Image generation from text SMTP (Gmail): For sending emails LinkedIn API: For automated posting 📦 Key Features: End-to-end automation from form to email/post Uses real-time research for accuracy Creative visual generation with professional branding intent Works locally or with cloud APIs Modular: Can switch tools or endpoints (OpenAI ↔ Localhost, Ollama ↔ OpenRouter) 🚀 Ideal Use Cases: Marketing teams needing fast content turnaround Personal branding assistants Founders, freelancers, and executives sharing thought leadership University or organization-wide communication systems

Build your own LinkedIn and OpenCTI integration

Create custom LinkedIn and OpenCTI workflows by choosing triggers and actions. Nodes come with global operations and settings, as well as app-specific parameters that can be configured. You can also use the HTTP Request node to query data from any app or service with a REST API.

LinkedIn supported actions

Supported methods for OpenCTI

Delete
Get
Head
Options
Patch
Post
Put

To set up OpenCTI integration, add the HTTP Request node to your workflow canvas and authenticate it using a predefined credential type. This allows you to perform custom operations, without additional authentication setup. The HTTP Request node makes custom API calls to OpenCTI to query the data you need using the URLs you provide.

Requires additional credentials set up

Use n8n's HTTP Request node with a predefined or generic credential type to make custom API calls.

LinkedIn and OpenCTI integration details

LinkedIn

LinkedIn

LinkedIn is a professional social networking platform and business community where professionals can share job offers and courses, and post about business news and insights.

OpenCTI

OpenCTI

OpenCTI is an open-source platform designed for cyber threat intelligence management. It facilitates the collection, analysis, and sharing of threat intelligence data, helping organizations proactively defend against cyber threats by providing insights into vulnerabilities, indicators of compromise, and attacker tactics.

Other integrations with LinkedIn and OpenCTI

Automate lead management

Using too many marketing tools? n8n lets you orchestrate all your apps into one cohesive, automated workflow.

Learn more

The SOAR platform you want

Mountains of monotonous tasks make building and monitoring your workflows a chore. Not anymore.

Learn more

FAQ about LinkedIn integrations

Looking to integrate Slack and VirusTotal in your company?

Three colleagues talking around laptops at a shared desk

Trusted by teams building smarter workflows.

Why

Why use n8n to integrate LinkedIn with OpenCTI

Handle branching, merging and iteration easily. Pause your workflow to wait for external events.

Re-run single steps to test changes in no time. And pin your data to avoid generating trigger events every time you execute.

Your data is displayed alongside your settings, making edge cases easy to track down.

Use 1000+ workflow templates available from our core team and our community.

Copy and paste, easily import and export workflows.

Simple enough to 
understand + sophisticated 
enough to ship

Man in a brown jacket working at his desk by a window