# Gemini-powered Facebook comment & DM assistant with Notion: n8n workflow

> Started by another system calling it, and works across Notion. It hands the judgement calls to Gemini.

Source: https://millionrounds.com/workflow/gemini-powered-facebook-comment-and-dm-assistant-with-notion (Millionrounds; every figure on the page links to its filing or article)

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

# Gemini-powered Facebook comment & DM assistant with Notion

Started by another system calling it, and works across Notion. It hands the judgement calls to Gemini. 23 steps, 5 branches: large, and worth reading before you trust it with anything live.

Large Calls a model: Gemini

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fgemini-powered-facebook-comment-and-dm-assistant-with-notion)

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

**5** Branches: places the flow splits

**0** Loops or waits

**1** Service it connects to

## The flow

Starts it 1 Model 2 Logic 9 Service 11

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

- 1 **Google Gemini Chat Model** Lm Chat Google Gemini *Model*
- 2 **Webhook1** Webhook *Starts it*
- 3 **AI Agent** Agent *Model*
- 4 **If2** If *Logic*
- 5 **Separate rep&sent** Set *Logic*
- 6 **Parse Comms** Set *Logic*
- 7 **Appropriate?** If *Logic*
- 8 **Code2** Code *Logic*
- 9 **Reply** Facebook Graph Api *Service*
- 10 **If3** If *Logic*
- 11 **Check Database** Notion *Service*
- 12 **Add to DB** Notion *Service*
- 13 **Reply1** Facebook Graph Api *Service*
- 14 **Delete Comms1** Facebook Graph Api *Service*
- 15 **Fetch KB** Http Request *Service*
- 16 **If4** If *Logic*
- 17 **Delete Comms** Facebook Graph Api *Service*
- 18 **Arrange KB** Code *Logic*
- 19 **Messages** Http Request *Service*
- 20 **Add to DB1** Notion *Service*
- 21 **Who's there?** If *Logic*
- 22 **Messages1** Http Request *Service*
- 23 **Comment** Facebook Graph Api *Service*

## How it's built

- **Starts on:** Another system calling it
- **Steps:** 23, with 5 branches
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Notion
- **Model:** Gemini

## Questions

What does it need to run?

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

What starts it?

It starts on another system calling it.

Does it use AI?

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

How long does it take to set up?

Take your time. At 23 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 23 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%2Fgemini-powered-facebook-comment-and-dm-assistant-with-notion)
- **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.

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

## Workflows like it

Also data collection, with the same services where possible, closest in size first.

- [**Score job applications and write AI feedback with OpenAI** 23 steps · calls a model · Notion](https://millionrounds.com/workflow/score-job-applications-and-write-ai-feedback-with-openai)
- [**Create a new team for a project in Notion** 23 steps · Notion](https://millionrounds.com/workflow/create-a-new-team-for-a-project-in-notion)
- [**Generate and deploy Notion chat assistants with OpenAI** 24 steps · calls a model · Notion](https://millionrounds.com/workflow/generate-and-deploy-notion-chat-assistants-with-openai)
- [**2-way-sync assignments/completion between Canvas LMS and Notion** 22 steps · Notion](https://millionrounds.com/workflow/2-way-sync-assignments-completion-between-canvas-lms-and-not)
- [**Time tracking with Notion** 24 steps · Notion](https://millionrounds.com/workflow/time-tracking-with-notion)
- [**Build AI-ready knowledge base from Outlook & Notion** 25 steps · calls a model · Notion, Outlook](https://millionrounds.com/workflow/build-ai-ready-knowledge-base-from-outlook-and-notion)
