workflows.fit
Back to n8n workflows
n8n templateFreeBy Praneel S

Automate blog updates via Discord with GitHub and Gemini AI

Automate blog updates via Discord with GitHub and customizable AI chatbot ![flow.png](fileId:2290) > ⚠️ Disclaimer: This template uses the [n8n-nodes-discord-trigger](https://github.com/katerlol/n8n-nodes-discord-t...

CommunicationHITLAILangchainAgentLm Chat Google GeminiDate Time ToolGithub Tool
Loading interactive preview...

Template notes

Automate blog updates via Discord with GitHub and customizable AI chatbot

![flow.png](fileId:2290)

> ⚠️ Disclaimer: This template uses the [n8n-nodes-discord-trigger](https://github.com/katerlol/n8n-nodes-discord-trigger) community node, which means it works only in self-hosted n8n instances.(works for both cloud and localhost)

Who’s it for This workflow is designed for developers, bloggers, and technical writers who want a hands-free way to draft and publish blog posts directly from Discord. Instead of juggling multiple tools, you just send a message to your Discord bot, and the workflow creates a properly formatted Markdown file in your GitHub repo.

How it works - Listens for new messages in a Discord channel or DM using the Discord Trigger (community node). - Passes your message to an AI chatbot model (Google Gemini, OpenAI GPT, or any other connector you prefer) to draft or format the content. - Uses GitHub nodes to check existing files, read repo contents, and create new .md posts in the specified directory. - Adds the correct timestamp with the Date & Time node. - Sends a confirmation reply back to Discord(Regular Message Node). - Guardrails ensure it only creates new Markdown files in the correct folder, without overwriting or editing existing content.

How to set up 1. Import the workflow (or download the file here [BlogAutomationclean.json](https://github.com/Praneel7015/n8n-discord-github-blog-buddy/blob/main/BlogAutomationclean.json)) into your self-hosted n8n. 2. Install the [n8n-nodes-discord-trigger](https://github.com/katerlol/n8n-nodes-discord-trigger) community node inside n8n workflow dashboard(click the link for the steps of setup). 3. Create credentials for: - Discord bot trigger from the community node - Discord bot send Message from the Regular Discord Message Node - GitHub (personal access token with repo permissions) - Your AI provider (Gemini, OpenAI, etc.) 4. Update the GitHub nodes with: - Owner → your GitHub username - Repo → your blog repo name - Path → target directory for new Markdown posts 5. Customize the AI agent’s system prompt to match your tone and workflow. (Default prompt included below.) 6. Test it in a private Discord channel before going live.

Requirements - Self-hosted n8n instance(works both on cloud and localhost) - GitHub repository with write access - Discord bot credentials(BOTH ARE REQUIRED: COMMUNITY NODE FOR TRIGGER AND REGULAR NODE read below for reasoning) - AI model credentials (Gemini, OpenAI, or other supported provider)

How to customize the workflow - Swap the AI model node for any provider you like: Gemini, OpenAI, or even a local LLM. - Adjust the prompt to enforce your blog style guide. - Add additional steps like auto-publishing, Slack notifications, or Notion syncs. - Modify the directory path or file naming rules to fit your project.