# Answer Instagram FAQ DMs with Gemini and Qdrant: n8n workflow

> Started by a clock, and works across Google Drive and Qdrant. It puts Gemini behind a retrieval step, so answers are drawn from documents you supply rather...

Source: https://millionrounds.com/workflow/answer-instagram-faq-dms-with-gemini-and-qdrant (Millionrounds; every figure on the page links to its filing or article)

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

# Answer Instagram FAQ DMs with Gemini and Qdrant

Started by a clock, and works across Google Drive and Qdrant. It puts Gemini behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 17 steps, 2 branches, 1 loop or waits: a working afternoon to understand properly.

Medium Calls a model: Gemini Retrieval

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fanswer-instagram-faq-dms-with-gemini-and-qdrant)

**17 steps** Medium: a working afternoon

**2** Branches: places the flow splits

**1** Loop or waits

**2** Services it connects to

## The flow

Starts it 3 Model 8 Logic 3 Service 3

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

- 1 **Chat Memory Buffer** Memory Buffer Window *Model*
- 2 **Generate Embeddings with Gemini** Embeddings Google Gemini *Model*
- 3 **When Google Drive File Created** Google Drive trigger *Starts it*
- 4 **Split Text Recursively** Text Splitter Recursive Character Text Splitter *Model*
- 5 **Daily Schedule Trigger** Schedule trigger *Starts it*
- 6 **Google Gemini Chat Model** Lm Chat Google Gemini *Model*
- 7 **Instagram Message Trigger** Instagram trigger *Starts it*
- 8 **AI Chat Response Agent** Agent *Model*
- 9 **Update Qdrant Vector Store** Vector Store Qdrant *Model*
- 10 **Store Embeddings in Qdrant** Vector Store Qdrant *Model*
- 11 **If File MimeType Allowed** If *Logic*
- 12 **Load Default Documents** Document Default Data Loader *Model*
- 13 **Refresh Instagram Access Token** Instagram *Service*
- 14 **If Chat Is Valid** If *Logic*
- 15 **Send Instagram Direct Messages** Instagram *Service*
- 16 **Loop Over Batches of 10** Split In Batches *Logic*
- 17 **Download File from Drive** Google Drive *Service*

## How it's built

- **Starts on:** A clock
- **Steps:** 17, with 2 branches, 1 loop or waits
- **Size:** Medium: a working afternoon
- **Connects to:** Google Drive, Qdrant
- **Model:** Gemini
- **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 Google Drive and Qdrant accounts, and a key for Gemini. 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 Gemini. 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. 17 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 17 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%2Fanswer-instagram-faq-dms-with-gemini-and-qdrant)
- **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.

[Google Drive](https://millionrounds.com/workflows?service=Google+Drive#library)[Qdrant](https://millionrounds.com/workflows?service=Qdrant#library)

## Workflows like it

Also customer support, with the same services where possible, closest in size first.

- [**Answer infrastructure questions in Mattermost with OpenRouter** 17 steps · calls a model · Mattermost, Qdrant](https://millionrounds.com/workflow/answer-infrastructure-questions-in-mattermost-with-openroute)
- [**Automate ITSM ticket classification and resolution with Gemini** 17 steps · calls a model · Qdrant](https://millionrounds.com/workflow/automate-itsm-ticket-classification-and-resolution-with-gemi)
- [**Draft customer support email replies with Gmail** 17 steps · calls a model · Gmail, Google Drive](https://millionrounds.com/workflow/draft-customer-support-email-replies-with-gmail)
- [**AI voice chatbot with ElevenLabs and OpenAI** 18 steps · calls a model · Google Drive, Qdrant](https://millionrounds.com/workflow/ai-voice-chatbot-with-elevenlabs-and-openai)
- [**Answer infrastructure questions in Slack with OpenAI** 16 steps · calls a model · Qdrant, Slack](https://millionrounds.com/workflow/answer-infrastructure-questions-in-slack-with-openai)
- [**Automated customer support with OpenAI** 16 steps · calls a model · Gmail, Google Drive](https://millionrounds.com/workflow/automated-customer-support-with-openai)
