Automate Blogger Related Posts with LLM API

Preface

At that time I didn't implement an automated solution, so the final modifications were done manually by hand.

Approach

Blogger has an API that can be used.
Chat reply introducing Blogger API v3 features

With the AI's "step-by-step" companionship, I enabled the Blogger API, set up OAuth permissions, and downloaded the OAuth credentials. Then I started letting hermes operate on the blog
First I did a simple test publishing a blog. OK
API auto-published test post highlighting Hello from API and related posts

Then I tested modifying a blog, appending "Related Recommendations" at the end. OK
Test post auto-published via API, with homepage and related posts

Practice

Add some test articles
Chat message showing several test posts added from test4 to test8

Next, I told hermes
Assume you're in a state of not knowing what content has been published on https://icdyct.blogspot.com/ ,
you do this

Iterate through every article on this blog
If the article's URL matches the page in the table, append link1, link2, link3 from the table to the end of the article

Here is the table
| page | link1 | link2 | link3 |
| page | link1 | link2 | link3 | | page
|---|------|------|-----|
| https://icdyct.blogspot.com/2026/04/test-4.html | https://icdyct.blogspot.com/2026/04/test-5.html | https://icdyct.blogspot.com/2026/04/test-6.html | https://icdyct.blogspot.com/2026/04/test-7.html |
| https://icdyct.blogspot.com/2026/04/test-5.html | https://icdyct.blogspot.com/2026/04/test-6.html | https://icdyct.blogspot.com/2026/04/test-7.html | https://icdyct.blogspot.com/2026/04/test-8.html |
| https://icdyct.blogspot.com/2026/04/test-6.html | https://icdyct.blogspot.com/2026/04/test-7.html | https://icdyct.blogspot.com/2026/04/test-8.html | https://icdyct.blogspot.com/2026/04/test-4.html |
| https://icdyct.blogspot.com/2026/04/test-7.html | https://icdyct.blogspot.com/2026/04/test-8.html | https://icdyct.blogspot.com/2026/04/test-4.html | https://icdyct.blogspot.com/2026/04/test-5.html |

Don't implement it yet, first discuss with me how you plan to do it
The result matched expectations
Post list showing test content and a yellow-highlighted related recommendation

========

Postscript

Enabling the Blogger API and setting up OAuth was quite a hassle. I got stuck on a lot of issues.
But this time I didn't look for tutorials online. Instead, I chatted with hermes, and hermes connected to a vision-capable model kimi-k2.6
Google Cloud console API Library page, asking why OAuth consent screen does not appear

Finally, I also tried the free web version of ChatGPT, and it can assist me too.
Google Cloud console welcome page: Gemini API and create key entry


Comments