# Automatic LinkedIn engagement with OpenAI and Phantombuster: n8n workflow

> Started by a clock. It calls services over plain HTTP rather than through connectors. It hands the judgement calls to OpenAI.

Source: https://millionrounds.com/workflow/automatic-linkedin-engagement-with-openai-and-phantombuster (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [AI assistants](https://millionrounds.com/workflows?category=AI+assistants#library)

# Automatic LinkedIn engagement with OpenAI and Phantombuster

Started by a clock. It calls services over plain HTTP rather than through connectors. It hands the judgement calls to OpenAI. 29 steps, 1 branch, 3 loops or waits: large, and worth reading before you trust it with anything live.

Large Calls a model: OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fautomatic-linkedin-engagement-with-openai-and-phantombuster)

**29 steps** Large: read it before trusting it with anything live

**1** Branch: places the flow splits

**3** Loops or waits

**0** Services by connector: it calls them over plain HTTP

## The flow

Starts it 1 Model 6 Logic 9 Service 13

The steps in the order they run, from what starts it.

- 1 **OpenAI Chat Model** Lm Chat Open Ai *Model*
- 2 **Schedule Trigger** Schedule trigger *Starts it*
- 3 **OpenAI Chat Model1** Lm Chat Open Ai *Model*
- 4 **OpenAI Chat Model2** Lm Chat Open Ai *Model*
- 5 **Create Comment** Agent *Model*
- 6 **Get Available Session Cookies** Microsoft Share Point *Service*
- 7 **Generate Random Search Term** Agent *Model*
- 8 **Select Cookie** Agent *Model*
- 9 **Create CSV Binary** Code *Logic*
- 10 **Extract Cookies** Extract From File *Service*
- 11 **Set ENV Variables** Set *Logic*
- 12 **Upload CSV** Microsoft Share Point *Service*
- 13 **Get Search Agent** Phantombuster *Service*
- 14 **Get Autocomment Agent** Phantombuster *Service*
- 15 **Launch Agent** Phantombuster *Service*
- 16 **Launch AC Agent** Phantombuster *Service*
- 17 **Wait** Wait *Logic*
- 18 **Wait1** Wait *Logic*
- 19 **Get Posts** Phantombuster *Service*
- 20 **Get Response** Phantombuster *Service*
- 21 **Wait2** Wait *Logic*
- 22 **Get Random Post** Code *Logic*
- 23 **Download file** Microsoft Share Point *Service*
- 24 **Extract from File** Extract From File *Service*
- 25 **Check if in List** Code *Logic*
- 26 **If** If *Logic*
- 27 **Prepare Updated Data** Code *Logic*
- 28 **Convert to File** Convert To File *Service*
- 29 **Update file** Microsoft Share Point *Service*

## How it's built

- **Starts on:** A clock
- **Steps:** 29, with 1 branch, 3 loops or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Nothing by connector; it calls services over plain HTTP
- **Model:** OpenAI

## Questions

What does it need to run?

An n8n account, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on a clock.

Does it use AI?

Yes. It calls OpenAI. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 29 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 29 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fautomatic-linkedin-engagement-with-openai-and-phantombuster)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Workflows like it

Also ai assistants, with the same services where possible, closest in size first.

- [**The art of crafting effective prompts** 29 steps · calls a model](https://millionrounds.com/workflow/the-art-of-crafting-effective-prompts)
- [**Voice memos into daily journals & tasks with Gemini** 29 steps · calls a model · Google Drive](https://millionrounds.com/workflow/voice-memos-into-daily-journals-and-tasks-with-gemini)
- [**Wix chat auto-responder with OpenAI** 29 steps · calls a model](https://millionrounds.com/workflow/wix-chat-auto-responder-with-openai)
- [**Adaptive RAG strategy with Gemini and Qdrant** 30 steps · calls a model · Qdrant](https://millionrounds.com/workflow/adaptive-rag-strategy-with-gemini-and-qdrant)
- [**Adaptive RAG with Gemini and Qdrant:** 30 steps · calls a model · Qdrant](https://millionrounds.com/workflow/adaptive-rag-with-gemini-and-qdrant)
- [**Build an All-Source Knowledge Assistant with Claude and RAG** 30 steps · calls a model · Google Drive, Supabase vectors](https://millionrounds.com/workflow/build-an-all-source-knowledge-assistant-with-claude-and-rag)
