# How to use Gemini to turn stories into DevOps tasks

Power Automate orchestrates Gemini generation, codebase retrieval, and Azure DevOps API calls to create story documentation and work items using rigid JSON outputs.

Agent: Gemini
Tools: Power Automate, Gemini API, Azure OpenAI, Azure AI Search, Azure DevOps REST API
Category: Software & DevOps
Date: 2025-09-02

Outcome: The author reports saving hours on every user story and producing consistent, high-quality documentation and tasks through codebase-aware generation.

## Steps

1. An Azure OpenAI model creates vector embeddings of the codebase.
2. Azure AI Search retrieves actual code context for the generation workflow.
3. Gemini API calls generate requirements, technical specifications, and test strategy content.
4. Azure DevOps REST API calls create wiki pages and work items from structured output.

Human oversight: The author configured the workflow and output schema; the post does not describe review checkpoints for generated documents or tasks.

Source: [antonybrahin on Hacker News](https://news.ycombinator.com/item?id=45103205)

Canonical URL: https://agentsinuse.com/use-cases/gemini-to-turn-stories-into-devops-tasks/
