The Blog Publisher module lets your AI agent write and publish SEO-optimized blog posts directly to your website. Under the hood, it uses GitHub Pages — a free static hosting service from GitHub. Your agent commits new posts to a repository, and GitHub automatically publishes them to the web.

To set this up, you need to provide two things through the Integrations page in your AgentGrow dashboard:

What You Will Need

FieldWhat it is
GITHUB_REPO_URLThe HTTPS URL of the GitHub repository where blog posts will be published
GITHUB_PATA Personal Access Token that gives your agent permission to push commits to the repository
GitHub Pages is completely free for public repositories. Your agent pushes HTML files to the repo, and GitHub serves them as a live website within seconds.

Prerequisites


Part 1 — Create a GitHub Repository

If you already have a GitHub Pages repository for your blog, skip to Part 2.

1

Sign in to GitHub

Go to github.com and sign in (or create an account if you do not have one).

2

Create a new repository

Click the + icon in the top-right corner, then New repository.

Click Create repository.

3

Enable GitHub Pages

In your new repository:

GitHub will display your site URL. It will look like:

https://yourusername.github.io/my-business-blog/
It may take 1–2 minutes for the site to go live the first time. Subsequent updates publish within seconds.
4

Copy the repository URL

Go to the main page of your repository. Click the green Code button and copy the HTTPS URL. It will look like:

https://github.com/yourusername/my-business-blog

This is your GITHUB_REPO_URL.


Part 2 — Create a Personal Access Token (PAT)

A Personal Access Token lets your AI agent push blog posts to your repository without needing your GitHub password.

1

Open GitHub token settings

Go to github.com/settings/tokens. You can also get there by clicking your profile picture (top-right) → SettingsDeveloper settings (bottom of left sidebar) → Personal access tokens.

2

Choose token type

You will see two options. We recommend Fine-grained tokens for better security, but classic tokens also work.

Option A — Fine-grained token (recommended)

Option B — Classic token

3

Copy the token immediately

GitHub shows the token only once. Copy it now and save it somewhere safe. The token will look like:

ghp_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

(Fine-grained tokens start with github_pat_ instead.)

Important: If you lose this token, you cannot retrieve it. You will need to generate a new one and update your AgentGrow configuration.

This is your GITHUB_PAT.


Part 3 — Enter Credentials in AgentGrow

1

Open your Integrations page

Log in to your AgentGrow dashboard at agentgrow.io/user/integrations.

2

Configure Blog Publisher

Find the Blog Publisher module and click Configure (or Reconfigure). Enter:

Click Save & Restart Agent. Your agent pod will restart in about 30 seconds.

3

Verify it works

After the restart, your agent will begin publishing blog posts on its next scheduled run. You can check the Dashboard for activity updates or visit your GitHub Pages URL to see published content.

Your agent automatically creates well-structured HTML files, updates the blog index, and pushes everything to your repository. No manual editing required.

Part 4 — Use a Custom Domain (Optional)

By default, your blog is served at yourusername.github.io/repo-name. If you want it on your own domain (e.g. blog.yourcompany.com):

1

Add a CNAME record

In your domain registrar or DNS provider, add a CNAME record:

TypeNameValue
CNAMEblogyourusername.github.io
2

Set the domain in GitHub

In your repository, go to SettingsPagesCustom domain. Enter your domain (e.g. blog.yourcompany.com) and click Save. Check "Enforce HTTPS" once the DNS propagates (usually a few minutes).

GitHub will automatically create a CNAME file in your repository. Your agent will preserve this file when publishing new posts.

Troubleshooting

My GitHub Pages site shows a 404

Check these settings in your repository under Settings → Pages:

After changing settings, wait 1–2 minutes for the site to rebuild.

Agent says "authentication failed" or "403 Forbidden"

Your Personal Access Token may have expired or lacks the right permissions. Generate a new token following Part 2 and make sure:

Update the token in your Integrations page and click Save & Restart Agent.

Agent published but I do not see the post on my site

GitHub Pages takes a few seconds to rebuild after a push. If you still do not see the post after a minute:

How do I rotate or update my token?

Generate a new token on GitHub following Part 2, then go to agentgrow.io/user/integrations, click Reconfigure on Blog Publisher, paste the new token, and save. Your agent will use the new token after the restart.

Can I use a private repository?

Yes, but free GitHub accounts only get GitHub Pages for public repositories. If you have GitHub Pro, Team, or Enterprise, you can use private repos with Pages. Your agent works the same either way — only the repository visibility differs.