# Buying-intent leads on Twitter and Instagram with OpenAI: n8n workflow

> Started by someone opening a chat with it, and works across Gmail, Notion and Slack. It puts Azure OpenAI behind a retrieval step, so answers are drawn from...

Source: https://millionrounds.com/workflow/buying-intent-leads-on-twitter-and-instagram-with-openai (Millionrounds; every figure on the page links to its filing or article)

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

# Buying-intent leads on Twitter and Instagram with OpenAI

Started by someone opening a chat with it, and works across Gmail, Notion and Slack. It puts Azure OpenAI behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 13 steps: a working afternoon to understand properly.

Medium Calls a model: Azure OpenAI Retrieval

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fbuying-intent-leads-on-twitter-and-instagram-with-openai)

**13 steps** Medium: a working afternoon

**0** Branches: places the flow splits

**0** Loops or waits

**3** Services it connects to

## The flow

Starts it 2 Model 8 Service 3

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

- 1 **Receive User Lead Discovery Query (Chat Trigger)** Chat trigger *Starts it*
- 2 **Maintain Short-Term Conversation Context** Memory Buffer Window *Model*
- 3 **External Social Search & Enrichment Tool (MCP Client)** Mcp Client Tool *Model*
- 4 **LLM Reasoning Engine for Lead Qualification** Lm Chat Azure Open Ai *Model*
- 5 **LLM Reasoning Engine for Insight Structuring** Lm Chat Azure Open Ai *Model*
- 6 **Enforce Structured Lead Insight Output Schema** Output Parser Structured *Model*
- 7 **Workflow Error Handler** Error trigger *Starts it*
- 8 **Discover Buying-Intent Leads from Social Platforms (AI)** Agent *Model*
- 9 **Generate Slack & Notion Lead Insight Summary (AI)** Agent *Model*
- 10 **Send a message1** Gmail *Service*
- 11 **Generate CRM-Ready Lead Discovery Response** Chat *Model*
- 12 **Send Lead Discovery Summary to Slack** Slack *Service*
- 13 **Store Lead Discovery Insight in Notion CRM** Notion *Service*

## How it's built

- **Starts on:** Someone opening a chat with it
- **Steps:** 13
- **Size:** Medium: a working afternoon
- **Connects to:** Gmail, Notion, Slack
- **Model:** Azure OpenAI
- **Retrieval:** Answers are drawn from documents you supply, not from the model alone

## Questions

What does it need to run?

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

What starts it?

It starts on someone opening a chat with it.

Does it use AI?

Yes. It calls Azure OpenAI. Its answers draw on documents you give it, not on the model alone. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Plan an afternoon. 13 steps is enough that you should read each one before running it.

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 13 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%2Fbuying-intent-leads-on-twitter-and-instagram-with-openai)
- **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.

## Connects to

Each opens the other workflows that use it.

[Gmail](https://millionrounds.com/workflows?service=Gmail#library)[Notion](https://millionrounds.com/workflows?service=Notion#library)[Slack](https://millionrounds.com/workflows?service=Slack#library)

## Workflows like it

Also lead generation, with the same services where possible, closest in size first.

- [**AI-powered lead qualification with Zoho CRM** 13 steps · calls a model · Gmail](https://millionrounds.com/workflow/ai-powered-lead-qualification-with-zoho-crm)
- [**Appointment booster: Leads are great… but appointments are better** 13 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/appointment-booster-leads-are-great-but-appointments-are-bet)
- [**Create a founder digest and leads from Hacker News with OpenAI** 13 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/create-a-founder-digest-and-leads-from-hacker-news-with-open)
- [**Draft and approve LinkedIn outreach openers with Apify** 13 steps · calls a model · Apify, Gmail](https://millionrounds.com/workflow/draft-and-approve-linkedin-outreach-openers-with-apify)
- [**Generate weekly cold email performance reports with ManyReach** 13 steps · calls a model · Slack](https://millionrounds.com/workflow/generate-weekly-cold-email-performance-reports-with-manyreac)
- [**Identify buying-intent leads on Twitter and Instagram** 13 steps · calls a model · Gmail, Notion](https://millionrounds.com/workflow/identify-buying-intent-leads-on-twitter-and-instagram)
