cd /news/developer-tools/build-an-ai-changelog-generator-in-p… · home topics developer-tools article
[ARTICLE · art-53499] src=dev.to ↗ pub= topic=developer-tools verified=true sentiment=↑ positive

Build an AI Changelog Generator in Python

Telnyx released a Python example that uses its AI Inference API to generate structured changelog JSON from commit messages or git diffs. The Flask app exposes endpoints to generate, list, and retrieve changelogs, storing them in memory with unique IDs. The project is available on GitHub as part of Telnyx's code examples repository.

read2 min views1 publishedJul 10, 2026

Writing changelogs is one of those developer tasks that sounds simple until you are staring at a messy commit history.

Some commits matter to users. Some are internal cleanup. Some are merge commits. Some are meaningful only if you already know the codebase. I built a small Python example that turns commit messages or git diffs into structured changelog JSON using Telnyx AI Inference.

Code: https://github.com/team-telnyx/telnyx-code-examples/tree/main/changelog-generator-python

The Flask app exposes:

POST /generate
POST /generate/from-diff
GET /changelogs
GET /changelogs/<id>
GET /health

POST /generate

accepts a list of commit messages:

{
  "version": "v1.4.0",
  "repo_name": "billing-service",
  "commits": [
    "feat: add Stripe webhook retry with exponential backoff",
    "fix: correct tax calculation for EU VAT exemption",
    "docs: update API reference for invoice endpoint"
  ]
}

The app asks Telnyx AI Inference to return grouped changelog JSON with sections like:

There is also a POST /generate/from-diff

endpoint if you want to summarize a git diff instead of commit messages.

For a changelog tool, plain text is useful, but structured output is more flexible.

If the response comes back as JSON, you can:

The example stores generated changelogs in memory and gives each one an ID, so you can list recent changelogs or retrieve a specific one.

Clone the examples repo:

git clone https://github.com/team-telnyx/telnyx-code-examples.git
cd telnyx-code-examples/changelog-generator-python

Create your .env

file:

cp .env.example .env

Add your Telnyx API key:

TELNYX_API_KEY=your_telnyx_api_key
AI_MODEL=moonshotai/Kimi-K2.6
HOST=127.0.0.1

Install and run:

pip install -r requirements.txt
python app.py

Try it:

curl -X POST http://localhost:5000/generate \
  -H "Content-Type: application/json" \
  -d '{
    "version": "v1.4.0",
    "repo_name": "billing-service",
    "commits": [
      "feat: add Stripe webhook retry with exponential backoff",
      "fix: correct tax calculation for EU VAT exemption",
      "docs: update API reference for invoice endpoint"
    ]
  }' | python3 -m json.tool

This is a small example, but it is a pretty practical developer tooling pattern:

The Telnyx code examples repo is also agent-readable, so you can use this example as a starting point and ask a coding agent to add GitHub integration, tag comparison, a UI, or a docs publishing step.

── more in #developer-tools 4 stories · sorted by recency
── more on @telnyx 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/build-an-ai-changelo…] indexed:0 read:2min 2026-07-10 ·