# Automate blog updates with Discord and GitHub: n8n workflow

> Started by an event in a connected app, and works across Discord. It puts Gemini behind a retrieval step, so answers are drawn from documents you supply...

Source: https://millionrounds.com/workflow/automate-blog-updates-with-discord-and-github (Millionrounds; every figure on the page links to its filing or article)

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

# Automate blog updates with Discord and GitHub

Started by an event in a connected app, and works across Discord. It puts Gemini behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 10 steps: a working afternoon to understand properly.

Medium Calls a model: Gemini Retrieval

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fautomate-blog-updates-with-discord-and-github)

**10 steps** Medium: a working afternoon

**0** Branches: places the flow splits

**0** Loops or waits

**1** Service it connects to

## The flow

Starts it 1 Model 3 Service 6

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

- 1 **Google Gemini Chat Model** Lm Chat Google Gemini *Model*
- 2 **Date & Time** Date Time Tool *Service*
- 3 **Create a file in GitHub** Github Tool *Service*
- 4 **Get a file in GitHub** Github Tool *Service*
- 5 **List files in GitHub** Github Tool *Service*
- 6 **Edit a file in GitHub** Github Tool *Service*
- 7 **Simple Memory** Memory Buffer Window *Model*
- 8 **Discord Message Reader** Discord trigger *Starts it*
- 9 **AI Agent** Agent *Model*
- 10 **Sends Message to Discord** Discord *Service*

## How it's built

- **Starts on:** An event in a connected app
- **Steps:** 10
- **Size:** Medium: a working afternoon
- **Connects to:** Discord
- **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 Discord account, and a key for Gemini. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an event in a connected app.

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. 10 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 10 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%2Fautomate-blog-updates-with-discord-and-github)
- **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.

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

## Workflows like it

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

- [**Summarize Bitcoin news in Japanese and post to Discord** 10 steps · calls a model · Discord, Google Sheets](https://millionrounds.com/workflow/summarize-bitcoin-news-in-japanese-and-post-to-discord)
- [**AI-optimized content posting to X, Discord & LinkedIn** 9 steps · calls a model · Discord, LinkedIn](https://millionrounds.com/workflow/ai-optimized-content-posting-to-x-discord-and-linkedin)
- [**Post a new tweet to Discord** 9 steps · Discord, X](https://millionrounds.com/workflow/post-a-new-tweet-to-discord)
- [**Post new and moved Trello cards to a Discord channel** 9 steps · Discord](https://millionrounds.com/workflow/post-new-and-moved-trello-cards-to-a-discord-channel)
- [**Discord > AI blog publisher with Gemini and Perplexity** 8 steps · calls a model · Discord, Notion](https://millionrounds.com/workflow/discord-ai-blog-publisher-with-gemini-and-perplexity)
- [**YouTube video summary to Discord with OpenAI and Slack** 8 steps · calls a model · Discord, Google Sheets](https://millionrounds.com/workflow/youtube-video-summary-to-discord-with-openai-and-slack)
