---
title: "Build a Multimodal, Multi-Agent AI System for LinkedIn Post Analysis"
slug: multimodal-multi-agent-linkedin-post-analysis
date: 2026-11-29T12:55:58+00:00
modified: 2026-11-29T12:56:01+00:00
permalink: https://brightdata.com/blog/ai/multimodal-multi-agent-linkedin-post-analysis
type: blog
---

[ Blog ](https://brightdata.com/blog "Blog") / [AI](https://brightdata.com/blog/ai)







 [AI](https://brightdata.com/blog/ai)

# Build a Multimodal, Multi-Agent AI System for LinkedIn Post Analysis

Build a CrewAI system where parallel agents analyze LinkedIn post text and images, with post data retrieved through Bright Data.

 23 min read





 [ ](https://brightdata.com/blog/authors/antonello-zanini)

 [Antonello Zanini

Technical Writer

 ](https://brightdata.com/blog/authors/antonello-zanini)





 ![Build a Multimodal, Multi-Agent AI System for LinkedIn Post Analysis](https://media.brightdata.com/2026/11/p5c.png)





In this blog post, you will learn:

- Why an enterprise-ready LinkedIn post analysis system must review not only a post’s text but also its images.
- How to design such a system using a multi-agent workflow.
- How to implement this multimodal, multi-agent AI system for LinkedIn post analysis (text + images) using CrewAI, with parallel execution for optimal performance and scalability.

Let’s dive in!

## Why the Need for Multimodal LinkedIn Post Analysis

Most systems and workflows for analyzing LinkedIn posts focus solely on the post text. That is quite limiting, especially considering the pivotal role images play!

Research and multiple sources ([here](https://www.linkedin.com/pulse/ep-018-3-ways-drive-engagement-images-justin-m-nassiri-zslcc), [here](https://medium.com/@Jnassiri1/3-ways-to-drive-engagement-with-images-4c5ce9c6fd56), and [here](https://www.linkedin.com/pulse/how-personal-photos-can-make-your-linkedin-posts-stand-dhere-ovrff)) indicate that LinkedIn posts with images achieve

- **Higher engagement**: Images can double engagement compared to text-only posts.
- **Increased views**: Including an original, relevant image can significantly boost views.
- **Better reach**: Engagement signals to LinkedIn’s algorithm that your content is valuable, helping posts reach a wider audience.
- **Broader appeal**: Images capture attention in a scroll-heavy feed, attracting interactions from users who prefer visuals over text.

For these reasons, an enterprise-ready LinkedIn post analysis system should not stop at text. Instead, it should also analyze images attached to the posts to provide a complete, multimodal evaluation.

See how to build such a solution in the next chapter!

## Multimodal AI Agent for LinkedIn Post Analysis (Text + Images): Enterprise-Ready Architecture

Implementing an AI-powered system to analyze LinkedIn posts,both text and images,is a complex task. A practical approach is to rely on a multi-agent system, with each agent specializing in a distinct part of the workflow:

- *LinkedIn Post Retriever*: Fetches the raw LinkedIn post data (text, headline, images, etc.) using [Bright Data’s LinkedIn Post Scraper](/products/web-scraper/linkedin/post).
- *Post Text Analyzer*: Analyzes the post’s text and headline, extracting themes, keywords, and sentiment to generate a Markdown text analysis report.
- *Post Image Analyzer*: Processes all images attached to the post, producing textual descriptions and evaluating their relevance to the post content in a Markdown image analysis report.
- *Post Report Generator*: Combines the outputs from the text and image analyzers into a comprehensive Markdown report for the post.

Some of these agents are relatively generic and can be implemented with standard LLMs (e.g., *Post Text Analyzer*, *Post Report Generator*). Others require specialized capabilities.

For example, the *LinkedIn Post Retriever* must interact with [reliable scraping tools](/blog/web-data/best-web-scraping-tools) to bypass LinkedIn’s anti-bot measures, retrieve public post data, and return it in a structured format. [Bright Data](/) handles that task superbly while supporting production-ready, large workloads. Similarly, the *Post Image Analyzer* can require vision tools to extract meaningful information from images and perform multimodal analysis.

To save time, the *Post Text Analyzer* and *Post Image Analyzer* should be executed in parallel. The resulting AI workflow for processing a single LinkedIn post is illustrated in the following diagram:

Then, to make the system even faster and more scalable, you can run this workflow in parallel on multiple posts (one post per multi-agent AI instance). This is exactly what we will demonstrate in this guide!

Since [CrewAI](https://www.crewai.com/) is ideal for orchestrating multi-agent systems, it will be the [AI agent building framework](/blog/ai/best-ai-agent-frameworks) adopted to implement the workflow. By integrating it with Bright Data, you will be able to create the fully functional, multimodal, multi-agent LinkedIn post analysis system outlined above.

## How to Build a Multimodal, Multi-Agent AI System for LinkedIn Post Analysis with CrewAI

Follow the steps below to build a multi-agent AI system for multimodal LinkedIn post analysis. This system accepts multiple LinkedIn post URLs and processes them in parallel, combining text and visual analysis into a structured final report.

The code examples are written in Python using CrewAI, with Bright Data and OpenAI integrations to provide the agents with the necessary tools and capabilities.

### Prerequisites

To follow along with this tutorial, verify that you have:

- [Python 3.10+ installed locally](https://www.python.org/downloads/).
- An [OpenAI API key](https://platform.openai.com/api-keys).
- A Bright Data account with an [API key configured](https://docs.brightdata.com/api-reference/authentication#how-do-i-generate-a-new-api-key%3F).

Do not worry if you do not have a Bright Data account yet. In a dedicated step, you will be guided through the process of setting one up.

It is also essential to have a solid understanding of [CrewAI’s main concepts and how it works](https://docs.crewai.com/en/introduction), especially when configured via YAML files (the [recommended approach](https://docs.crewai.com/en/concepts/agents#yaml-configuration-recommended)). Knowing how the [Bright Data CrewAI tools](https://docs.crewai.com/en/tools/web-scraping/brightdata-tools) operate will also be very helpful.

### Step #1: Set Up a CrewAI Project

As mentioned in the [official installation guide](https://docs.crewai.com/en/installation), CrewAI requires [`uv`](https://github.com/astral-sh/uv) for installation. Start by install `uv` globally using `pip`:

```none
pip install uv
```

Alternatively, follow the [`uv` installation tutorial for your operating system](https://docs.astral.sh/uv/getting-started/installation/).

Employ `uv` to install CrewAI globally on your system:

```none
uv tool install crewai
```

Now, create a new CrewAI project called `linkedin_post_crew` with the following command:

```none
crewai create crew linkedin_post_crew
```

You will be prompted to select an AI provider. For this workflow, choose OpenAI (`1`), select a model (we will change that later), and then enter your OpenAI API key:

After completing this step, your project folder (`linkedin_post_crew/`) will have the following structure:

```none
linkedin_post_crew/
├── knowledge/
│   └── user_preference.txt
├── src/
│   └── linkedin_post_crew
│       ├── config/
│       │   ├── agents.yaml
│       │   └── tasks.yaml
│       ├── tools/
│       │   ├── custom_tool.py
│       │   └── __init__.py
│       ├── crew.py
│       ├── main.py
│       └── __init__.py
├── test/
├── .env
├── .gitignore
├── pyproject.toml
└── README.md
```

If you are not familiar with the files generated by CrewAI, refer to the [official installation guide](https://docs.crewai.com/en/installation).

Open the project in your preferred Python IDE, such as [Visual Studio Code (with the Python extension)](https://code.visualstudio.com/docs/languages/python) or [PyCharm](https://www.jetbrains.com/pycharm/). Get familiar with the files generated by CrewAI.

Next, navigate into your project folder in the terminal:

```none
cd linkedin_post_crew
```

Inside it, initialize a [Python virtual environment](https://docs.python.org/3/library/venv.html):

```none
uv venv
```

On Linux and macOS, activate the virtual environment with:

```none
source .venv/bin/activate
```

Alternatively, on Windows, execute:

```none
.venv/Scripts/activate
```

Done! You now have a blank CrewAI project ready for multimodal, multi-agent AI development.

### Step #2: Configure an OpenAI Model

Take a look at the `.env` file generated by the `crewai create` command. This file contains the selected OpenAI model and your OpenAI API key:

```none
MODEL=<SELECTED_OPENAI_MODEL>
OPENAI_API_KEY=<YOUR_OPENAI_API_KEY>
```

In the CLI, you were only prompted to select GPT-4 models, but you can also set the latest [GPT-5 models](https://openai.com/gpt-5/). For example, update the `MODEL` environment variable as follows:

```none
MODEL=gpt-5-mini
```

According to our tests, [`gpt-5-mini`](https://platform.openai.com/docs/models/gpt-5-mini) is one of the best models in the GPT-5 family for [processing long inputs from the Internet](https://www.kaggle.com/code/brightdataml/benchmarking-gpt-5-models-on-large-inputs) (such as a LinkedIn post and its associated images). It provides vision capabilities for analyzing images and supports tool calling for interacting with Bright Data CrewAI tools. Those aspects make it ideal for powering each agent in the Crew.

For added flexibility, consider [integrating multiple AI connections](https://docs.crewai.com/en/learn/llm-connections), so you can assign each agent in the Crew the best model for the specific task it handles.

### Step #3: Configure the Crew for Parallel Execution

To make this AI application enterprise-ready and highly scalable, it should be able to process multiple LinkedIn posts simultaneously.

In other words, each post should be handled by a separate Crew instance running concurrently. Also, for added flexibility, you should read the input LinkedIn posts from a configuration file. This way, you will be able to run different analyses without changing the code each time. Let’s implement this behavior!

In `src/linkedin_post_crew/main.py`, start by adding logic to read LinkedIn post URLs from a configuration file (i.e., `input/posts.json`):

```none
import json
from pathlib import Path

# ...

def load_linkedin_posts(filepath: str) -> list[dict]:
    """
    Read a JSON file containing LinkedIn posts and return the list of posts.
    The file must have the structure: { "posts": [ ... ] }
    """
    path = Path(filepath)
    if not path.exists():
        raise FileNotFoundError(f"File not found: {filepath}")

    with open(path, "r", encoding="utf-8") as f:
        data = json.load(f)

    if "posts" not in data or not isinstance(data["posts"], list):
        raise ValueError("Invalid JSON format: expected an object with a 'posts' array")

    return data["posts"]
```

At the top level of your project, create an `input/` folder and add a `posts.json` file inside it:

Populate it with some public LinkedIn post URLs like this:

```none
{
  "posts": [
    "https://www.linkedin.com/posts/antonello-zanini_ai-machinelearning-webscraping-activity-7348656708367343617-a8o7",
    "https://www.linkedin.com/posts/antonello-zanini_ai-tools-tech-activity-7338574311957450753-klLg"
  ]
}
```

The final CrewAI application will read the two URLs and process these LinkedIn posts in parallel.

Now, to keep track of the intermediate output produced by the Crew, you should export the result of each task to the same folder. For example, call that folder `output/`. For better organization, store the files for each run in a subfolder named after the LinkedIn post ID. Thus, every analyzed post will have its own neatly separated output folder:

```none
output/
├── 7338574311957450753/
│    └── ...
└── 7348656708367343617/
     └── ...
```

To achieve that, add a helper function to extract the post ID from a LinkedIn post URL (or default to a timestamp if not found):

```none
import re
import time

# ...

def extract_linkedin_post_id(url: str) -> str | None:
    """
    Extract the LinkedIn post ID from a LinkedIn post URL.
    If no ID is found, return a timestamp as default.

    Returns:
        The post ID as a string (either extracted or timestamp fallback).
    """

    # Match formats like ...activity-7348656708367343617...
    match = re.search(r"activity-(\d+)", url)
    if match:
        return match.group(1)

    # Default to the current timestamp
    return str(int(time.time()))
```

Given the input URL:

```none
https://www.linkedin.com/posts/antonello-zanini_ai-machinelearning-webscraping-activity-7348656708367343617-a8o7
```

The `extract_linkedin_post_id()` function will return :

```none
7348656708367343617
```

Then, add logic to read the LinkedIn posts from `input/posts.json`, assign each one to a crew, and run them asynchronously together:

```none
import asyncio

# ...

async def run_crew(linkedin_post_url):
    # Run the crew on the given LinkedIn post URL
    inputs = {
        "linkedin_post_url": linkedin_post_url,
    }
    linkedin_post_id = extract_linkedin_post_id(linkedin_post_url)

    try:
        await LinkedinPostCrew(
            linkedin_post_id=linkedin_post_id
        ).crew().kickoff_async(inputs=inputs)
    except Exception as e:
        raise Exception(f"An error occurred while running the crew: {e}")

async def run_async():
    # Read all LinkedIn posts to analyze from the configs
    linkedin_posts = load_linkedin_posts("./input/posts.json")
    # Define the crew tasks
    crews = [run_crew(post) for post in linkedin_posts]

    # Run them all in parallel
    await asyncio.gather(*crews)

def run():
    asyncio.run(run_async())
```

For more information on async Crew kickoff, [refer to the docs](https://docs.crewai.com/en/learn/kickoff-async). In the snippet above, note that the configured input file is `input/posts.json` (as you created earlier).

Finally, in `crew.py`, modify the generated `LinkedinPostCrew` class to read the `linkedin_post_id` input and use it to create a separate output directory for each post ID:

```none
# ...

@CrewBase
class LinkedinPostCrew():
    # ...

    def __init__(self, linkedin_post_id: str):
        self.linkedin_post_id = linkedin_post_id

        # Create the output directory if it does not exist
        Path(f"./output/{self.linkedin_post_id}").mkdir(parents=True, exist_ok=True)

    # @agent definitions...
    # @task definitions...
    # @crew definition...
```

Together, this logic enables your AI system to:

1. Read LinkedIn post URLs from a JSON file.
2. Extract unique post IDs.
3. Run a separate Crew instance for each post asynchronously, with each instance exporting intermediate results to a dedicated subfolder in `output/` (organized by post ID).

This structure ensures your multimodal, multi-agent LinkedIn post analyzer can efficiently process multiple posts in parallel. That makes it ready for enterprise-scale workloads!

### Step #4: Install and Configure the CrewAI Bright Data Tools

Retrieving LinkedIn post content is not something an AI model can handle without the right tools. Plus, even models equipped with web-scraping tools can struggle due to [advanced anti-scraping defenses like browser fingerprinting and CAPTCHAs](/blog/web-data/anti-scraping-techniques).

That is where Bright Data becomes essential, offering an [AI-ready infrastructure](/ai) powered by enterprise-grade cloud tools. Its [proxy network of over 150 million rotating IPs](/proxy-types/residential-proxies) secures unlimited scalability, while the integrated anti-bot toolkit prevents blocks and detection.

Keep in mind that Bright Data is officially supported in CrewAI through [dedicated built-in tools](https://docs.crewai.com/en/tools/web-scraping/brightdata-tools). So, the integration is simple. Among the supported tools, the [`BrightDataDatasetTool`](https://docs.brightdata.com/integrations/crew-ai#brightdatadatasettool) stands out. That gives you direct access to Bright Data’s extensive catalog of [scraper APIs](/products/web-scraper), including a dedicated LinkedIn Post Scraper.

In this step, you will get started with CrewAI’s Bright Data tools so that your *LinkedIn Post Scraper* agent can use them for LinkedIn data extraction.

Begin by [signing up for a Bright Data account](/?hs_signup=1). Otherwise, [log in](/cp/start) if you already have one. Then, follow the [official Bright Data guide to create an API key](https://docs.brightdata.com/api-reference/authentication#how-do-i-generate-a-new-api-key%3F) (with *Admin* permissions). Store your API key in the `.env` file as follows:

```none
BRIGHT_DATA_API_KEY="<YOUR_BRIGHT_DATA_API_KEY>"
```

Replace the `<YOUR_BRIGHT_DATA_API_KEY>` placeholder with the actual value of your Bright Data API key.

Next, install the [CrewAI Bright Data tool dependencies](https://github.com/crewAIInc/crewAI-tools/tree/main/crewai_tools/tools/brightdata_tool#installation) in your active virtual environment:

```none
uv add crewai[tools] aiohttp requests
```

Then, import the `BrightDataDatasetTool` Bright Data tool into your `crew.py` file:

```none
from crewai_tools import BrightDataDatasetTool
```

The CrewAI Bright Data tools automatically read your API key from the `BRIGHT_DATA_API_KEY` variable (you set in the `.env` file). In detail, it uses that key to authenticate API requests to Bright Data’s servers.

For examples and further reading, check out these CrewAI + Bright Data agent implementations:

- [*Enhancing CrewAI Agents Using SERP Scraping APIs via RAG*](/blog/ai/crewai-with-serp-api)
- [*Content Optimization for GEO with CrewAI and Bright Data*](/blog/ai/geo-and-seo-ai-agent)
- [*Building a Multi-Source Review Intelligence Agent with CrewAI and Bright Data*](/blog/ai/review-intelligence-agent)

You are all set! Your agents can now securely connect to Bright Data and start retrieving LinkedIn post data ([and much more!](/use-cases/apps-agents)).

### Step #5: Build the LinkedIn Post Retriever Agent

You now have everything in place to build your first agent. Start with the *LinkedIn Post Retriever* agent, which is responsible for retrieving LinkedIn post data given its URL.

In `crew.py`, delete all initial `@agent` and `@task` definitions generated by `crewai create`. Then define the [CrewAI agent and its main task](https://docs.crewai.com/en/guides/agents/crafting-effective-agents) as follows:

```none
@agent
def linkedin_post_scraper(self) -> Agent:
    return Agent(
        config=self.agents_config["linkedin_post_scraper"],
        tools=[
            BrightDataDatasetTool(
                result_as_answer=True,
            )
        ],
    )

@task
def linkedin_post_scraping_task(self) -> Task:
    return Task(
        config=self.tasks_config["linkedin_post_scraping_task"],
        output_file=f"./output/{self.linkedin_post_id}/post.json",
    )
```

Since this task involves calling a third-party tool, it is important to enable retry logic to prevent the workflow from failing due to temporary network issues or tool errors. CrewAI handles that automatically with a default of up to 3 retries (controlled via the [`guardrail_max_retries`](https://docs.crewai.com/en/concepts/tasks#task-attributes) field).

Also, note that the `Agent` class integrates directly with `BrightDataDatasetTool`. The argument [`result_as_answer=True`](https://docs.crewai.com/en/learn/force-tool-output-as-result#forcing-tool-output-as-result) forces the result of the tool to become the output of the agent. This is exactly what we want, as this agent should only retrieve the LinkedIn post data without processing it. The raw, structured JSON output from `BrightDataDatasetTool` will be perfect!

Notice that the `Task` is configured to store this output (the raw JSON from the `BrightDataDatasetTool`) in a `post.json` file under a nested folder in `output/`, as explained in Step #3.

Next, in your `agents.yaml` configuration file, specify the *LinkedIn Post Retriever* agent as below:

```none
linkedin_post_scraper:
  role: >
    LinkedIn Post Retriever
  goal: >
    Use Bright Data's Dataset Tool (dataset_type="linkedin_posts") to scrape the LinkedIn post at:
    {linkedin_post_url}.
  backstory: >
    You are an agent capable of scraping LinkedIn posts by connecting to Bright Data's dataset solution.
```

And define its main task in `tasks.yaml`:

```none
linkedin_post_scraping_task:
  description: >
    1. Call the Bright Data Dataset Tool (dataset_type="linkedin_posts") to retrieve the content from "{linkedin_post_url}".
    2. Poll until the post has been successfully scraped.
    3. Return the raw JSON response from the tool.
  expected_output: >
    The raw JSON containing the LinkedIn post information returned by Bright Data's Dataset Tool.
  agent: linkedin_post_scraper
```

See how this task reads the URL from a CrewAI input using `{linkedin_post_url}`, which corresponds to the input passed to the crew in Step #3 when running `kickoff_async()`.

Instead, the reference `dataset_type="linkedin_posts"` points to [the LinkedIn Post Scraper dataset available in `BrightDataDatasetTool`](https://github.com/crewAIInc/crewAI-tools/blob/main/crewai_tools/tools/brightdata_tool/brightdata_dataset.py):

Basically, this information tells the `BrightDataDatasetTool` to use the dataset labeled `"linkedin_posts"`. In other words, that tells the tools to retrieve LinkedIn post data by calling the right Scraper API (i.e., LinkedIn Post Scraper) from Bright Data. For more details, [refer to the Bright Data documentation](https://docs.brightdata.com/datasets/scrapers/scrapers-library/overview).

The agent produces a `post.json` file in the appropriate output folder as follows:

This file contains detailed, structured LinkedIn post data, ready for analysis in JSON format. It was retrieved using the `BrightDataDatasetTool`, based on the LinkedIn post specified in the Crew input.

Verify the data’s accuracy by comparing it with the [original LinkedIn post](https://www.linkedin.com/posts/antonello-zanini_ai-machinelearning-webscraping-activity-7348656708367343617-a8o7/):

Great! The *LinkedIn Post Retriever* agent is complete. Time to apply similar logic to define the remaining agents in your workflow.

### Step #6: Define the Post Text Analyzer Agent

Once the LinkedIn post data has been retrieved, the next step is to analyze its text and images in parallel. We will start with the text, which is relatively straightforward. The goal is to define an agent that analyzes the aspects you need.

In `crew.py`, implement the *Post Text Analyzer* agent with this logic:

```none
@agent
def post_text_analyst(self) -> Agent:
    return Agent(
        config=self.agents_config["post_text_analyst"],
    )

@task
def post_text_analysis_task(self) -> Task:
    return Task(
        config=self.tasks_config["post_text_analysis_task"],
        context=[self.linkedin_post_scraping_task()],
        markdown=True,
        async_execution=True,
        output_file=f"./output/{self.linkedin_post_id}/post_text_report.md",
    )
```

Note that the agent’s main task accesses the scraping task’s output as its context. In other terms, that connects the output of the *LinkedIn Post Retriever* agent to the *Post Text Analyzer* agent. Additionally:

- `markdown=True` ensures that the output of this task is generated as a Markdown file.
- `async_execution=True` allows this task to run asynchronously. This means the next agent in the workflow waits for this agent and all other connected asynchronous agents to finish before proceeding. In simpler terms, this mechanism lets you run text and image analysis tasks concurrently to save time.

Next, configure the agent in `agents.yaml`:

```none
post_text_analyst:
  role: >
    Post Text Analyzer
  goal: >
    Create a detailed report analyzing the input LinkedIn post's text and headline.
  backstory: >
    You are an NLP expert who analyzes text to uncover meaning, themes,
    and main keywords, performs sentiment analysis, and provides insights
    on all these aspects of a LinkedIn post.
```

And specify its main task in `tasks.yaml`:

```none
post_text_analysis_task:
  description: >
    1. Retrieve the `headline` and `post_text` fields from the given LinkedIn post.
    2. Analyze the `headline` and `post_text` to uncover meaning, themes,
       and main keywords.
    3. Perform sentiment analysis on the post.
    4. Combine the results from the previous steps into a comprehensive
       Markdown report.
  expected_output: >
    A Markdown report containing a detailed and comprehensive analysis of
    the LinkedIn post's text.
  agent: post_text_analyst
```

Note that `headline` and `post_text` are two fields in the LinkedIn Post Scraper output schema. Essentially, each request to that Bright Data API (whether made directly or via the CrewAI integration, as in this case) produces a structured JSON object that includes these two fields.

Explore the [LinkedIn Post Scraper output schema in your Bright Data account](/cp/scrapers/api/gd_lyy3tktm25m4avu764/pdp/overview).

Cool! The *Post Text Analyzer* agent is now implemented and ready to generate detailed textual analysis reports for your LinkedIn posts.

That agent will generate a detailed `post_text_report.md`, similar to the following one:

### Step #7: Create the Post Image Analyzer Agent

Since this is a multimodal AI system, it will analyze not only the post’s text but also its images (if present).

CrewAI supports multimodal agents via the [`multimodal=True` argument](https://docs.crewai.com/en/learn/multimodal-agents), which equips the agent with the necessary tools to handle non-text content. One of those is `AddImageTool`, a tool that lets agents process images.

For improved visual analysis, you can also provide the built-in [`VisionTool`](https://docs.crewai.com/en/tools/ai-ml/visiontool) tool. This helps the agent extract relevant information from images.

If you do not enable multimodal mode and attach these tools, the *Post Image Analyzer* agent will likely produce a message similar to this:

> “I do not have direct pixel-level access to download or render the image file from the URL”

That means the LLM powering the agent could access the image directly and could only make inferences from the post’s text (which is not what we want!)

Now, remember that LinkedIn posts can contain multiple images. Specifically, their URLs are stored in the `images` array of the LinkedIn Post Scraper output schema:

The *Post Image Analyzer* agent should access that array and process each image individually, analyzing them one by one. That is the logic you are about to implement in the agent’s main task.

In `crew.py`, define the agent and its task with these lines of code:

```none
from crewai_tools import VisionTool

@agent
def post_image_analyst(self) -> Agent:
    return Agent(
        config=self.agents_config["post_image_analyst"],
        multimodal=True, # <----------
    )

@task
def post_image_analysis_task(self) -> Task:
    return Task(
        config=self.tasks_config["post_image_analysis_task"],
        context=[self.linkedin_post_scraping_task()],
        tools=[VisionTool()], # <----------
        async_execution=True,
        markdown=True,
        output_file=f"./output/{self.linkedin_post_id}/post_image_report.md",
    )
```

Notice the use of `multimodal=True` and the `VisionTool()` to help the agent process images properly.

Next, configure the agent in `agents.yaml`:

```none
post_image_analyst:
  role: >
    Post Image Analyzer
  goal: >
    Create a report analyzing the images of the input LinkedIn post.
  backstory: >
    You are a computer vision expert who can examine an image, provide
    a textual description and evaluate its relevance.
```

And its main task in `tasks.yaml`:

```none
post_image_analysis_task:
  description: >
    1. Retrieve the image URLs from the `images` field of the given LinkedIn post (if present).
    2. For each image:
       2.1 Provide a textual description of the image using the Visual Tool.
       2.2 Evaluate its relevance to the post text.
       2.3 Produce a Markdown analysis containing all this information.
    3. Combine the individual Markdown analyses for each image into a final comprehensive Markdown report.
  expected_output: >
    If the post contains at least one image, return a Markdown report that includes, for each image, a textual description and an evaluation of its relevance to the post text. Otherwise, return a message indicating that the post has no images.
  agent: post_image_analyst
```

See how this describes the logic explained earlier.

After running this agent, it will generate a `post_image_report.md` in the correct `output/` nested folder:

Appreciate how the agent accurately identified and described the image. For context, below is the LinkedIn image the report refers to:

Fantastic! The most complex part of this AI agent has just been implemented.

### Step #8: Implement the Final Post Report Generator Agent

Now that you have the raw LinkedIn post data, along with its text and image analyses, you can feed all that information into a final report generator agent.

In `crew.py`, add the *Post Report Generator* agent:

```none
@agent
def post_report_generator(self) -> Agent:
    return Agent(
        config=self.agents_config["post_report_generator"],
    )

@task
def post_report_generation_task(self) -> Task:
    return Task(
        config=self.tasks_config["post_report_generation_task"],
        context=[self.linkedin_post_scraping_task(), self.post_text_analysis_task(), self.post_image_analysis_task()],
        markdown=True,
        output_file=f"./output/{self.linkedin_post_id}/post_report.md",
    )
```

Note that this agent’s task depends on the outputs of the previous three agents. It combines all the data produced by the *LinkedIn Post Retriever*, *Post Text Analyzer*, and *Post Image Analyzer* into a final, structured Markdown report called `post_report.md`.

Next, specify the agent in `agents.yml`:

```none
post_report_generator:
  role: >
    Post Report Generator
  goal: >
    Create a Markdown report that includes an analysis of both the text and images of a LinkedIn post.
  backstory: >
    You are a content analyst who summarizes all provided information in a clean, structured, and organized Markdown format for further human review.
```

And specify its task in `tasks.yml`:

```none
post_report_generation_task:
  description: >
    1. Access the LinkedIn post data and extract the main information into a table
       (URL, author, headline, text, hashtags, etc.).
    2. Access the text analysis Markdown report.
    3. Access the image analysis Markdown report.
    4. Combine all this information into a final Markdown report that includes:
       - A summary table of the LinkedIn post and its stats
       - The text analysis section
       - The image analysis section
  expected_output: >
    A comprehensive, organized, structured, and detailed Markdown report
    containing the LinkedIn post summary, text analysis, and image analysis.
  agent: post_report_generator
```

Mission complete! All agents in your multimodal AI system are now fully defined.

### Step #9: Finalize the Crew

Now that you have all the building blocks in your Crew, finalize it as follows:

```none
@crew
def crew(self) -> Crew:
    return Crew(
        agents=self.agents,
        tasks=self.tasks,
        process=Process.sequential,
        output_log_file=f"./output/{self.linkedin_post_id}/run.txt",
    )
```

Amazing! The `LinkedinPostCrew` class in `crew.py` has been fully implemented. This Crew is executed asynchronously using the logic defined in `main.py` in Step #3.

Your multimodal, multi-agent AI system is now fully operational and ready to process LinkedIn posts efficiently!

### Step #10: Test the Multimodal, Multi-Agent AI System

Assuming you have followed all the previous steps in this tutorial and configured the agents as explained in Step #3, you are ready to run the AI system.

Before proceeding, you may want to enable [`verbose=True`](https://docs.crewai.com/en/learn/customizing-agents#verbose-mode-and-rpm-limit) in your agents, tasks, and Crew definition in `crew.py` to get detailed logs during execution.

Then, in your project folder, start your multimodal, multi-agent AI system with:

```none
crewi run
```

In the terminal, if you enabled verbose mode, you should see output similar to this:

You will notice that the AI system runs each crew in parallel. For each run:

- *LinkedIn Post Retriever* agent retrieves the JSON content of the post using Bright Data integration and stores it as `post.json` in the appropriate output folder.
- *Post Text Analyzer* and *Post Image Analyzer* agents run in parallel to analyze the text and images of the LinkedIn posts retrieved earlier. When complete, `post_text_report.md` and `post_image_report.md` are produced, respectively.
- *Post Report Generator* agent aggregates all the collected data into a final Markdown report.

Execution may take some time, especially for image processing. At the end, your `output/` folder in the project root will look like this:

For example, this is the final `post_report.md` generated for the post ID `7348656708367343617` (referenced in Step #5 and the first entry in `posts.json`):

This is a 1,700+ word, highly detailed contextual report offering an in-depth analysis of the LinkedIn post, including how its text and images influence the post’s performance.

**Note**: You can easily customize the behavior of each agent by modifying the descriptions in `agents.yaml` and `tasks.yaml`. For instance, you could focus on specific aspects of the analysis or add additional actionable insights.

Et voilà! Thanks to the Bright Data integration in CrewAI, you have successfully built an enterprise-ready, highly scalable, multi-agent AI system with concurrent execution for multimodal LinkedIn post analysis.

## Conclusion

In this article, you learned how to leverage Bright Data’s AI integration capabilities to build an enterprise-ready, scalable, multi-agent, multimodal AI system in CrewAI for LinkedIn post analysis (text + images).

The AI workflow presented here is ideal for companies/individuals looking to enhance their own LinkedIn posts or study others’ posts to understand why they perform well,or poorly.

To build similar advanced AI workflows, explore Bright Data’s full suite of solutions for AI.

Create a free Bright Data account today and start integrating with our powerful, AI-ready, scalable web data tools!



Contact usStart for free

No credit card required











 [ ](https://www.linkedin.com/in/antonello-zanini/)

Antonello Zanini

 Technical Writer



  5.5 years experience



Antonello Zanini is a technical writer, editor, and software engineer with 5M+ views. Expert in technical content strategy, web development, and project management.



Expertise

  Web Development   Web Scraping   AI Integration



 [ View all articles ](https://brightdata.com/blog/authors/antonello-zanini)











 Table of Contents







Data for AI

Supercharge your AI with instant and reliable access to web data. No blockers. No hassle.

Talk to an expert

Bright Data MCP

Get started with Bright Data’s Web MCP Server today with 5000 free monthly requests and unlock your AI’s full potential.

Start free now







 [ ](https://news.ycombinator.com/submitlink?t=Build+a+Multimodal%2C+Multi-Agent+AI+System+for+LinkedIn+Post+Analysis&u=https://brightdata.com/blog/ai/multimodal-multi-agent-linkedin-post-analysis) [ ](https://www.linkedin.com/shareArticle?mini=true&title=Build+a+Multimodal%2C+Multi-Agent+AI+System+for+LinkedIn+Post+Analysis&url=https://brightdata.com/blog/ai/multimodal-multi-agent-linkedin-post-analysis) [ ](http://www.reddit.com/submit?title=Build+a+Multimodal%2C+Multi-Agent+AI+System+for+LinkedIn+Post+Analysis&url=https://brightdata.com/blog/ai/multimodal-multi-agent-linkedin-post-analysis)







##  You might also be interested in

 [ ](https://brightdata.com/blog/web-data/linkedin-data-maps-careers-at-scale "How Bright Data’s LinkedIn Data Maps Careers at Scale")

 [Web Data





Jennifer Burns

Senior Director of PR and Communications





### How Bright Data’s LinkedIn Data Maps Careers at Scale

See how ABC reporters used Bright Data’s LinkedIn profiles dataset to trace career moves, and how the same filters track role changes at scale.



 29-Nov-2026

 6 min read

 ](https://brightdata.com/blog/web-data/linkedin-data-maps-careers-at-scale)

 [ ](https://brightdata.com/blog/ai/best-cli-tools "Best CLI Tools for Developers and AI Agents in 2027: Top 12 Compared")

 [AI





Antonello Zanini

Technical Writer





### Best CLI Tools for Developers and AI Agents in 2027: Top 12 Compared

A comparison of 12 CLI tools for coding and AI agents, led by Bright Data CLI for web data, plus GitHub CLI, Docker, AWS CLI, and more.



 29-Nov-2026

 28 min read

 ](https://brightdata.com/blog/ai/best-cli-tools)

 [ ](https://brightdata.com/blog/ai/best-cursor-plugins "12 Best Cursor Plugins to Boost Your Coding Workflow in 2026")

 [AI





Antonello Zanini

Technical Writer





### 12 Best Cursor Plugins to Boost Your Coding Workflow in 2026

Explore 12 Cursor plugins for web data, docs, security, and deployment, plus a step-by-step setup guide for the Bright Data plugin.



 29-Nov-2026

 14 min read

 ](https://brightdata.com/blog/ai/best-cursor-plugins)
