An automated system for generating weekly presentations has been implemented, replacing manual data collection and formatting tasks that previously took over 20 managers several hours each week. The pipeline extracts data from Redash, processes it via pandas and matplotlib, and generates a .pptx file using python-pptx, which is then stored on Nextcloud and shared via Mattermost.
The system handles over 40 queries, with a full build time of 10 minutes. It supports manual slides by copying them from the previous week's file. To ensure reliability, each slide generation function is wrapped in a try/except block, allowing the presentation to be built even if individual slides fail. Links to Redash queries are included in the slide notes for transparency.
To manage feedback, an AI bot was integrated into the Mattermost thread. Users can request changes directly in the chat, such as modifying labels or titles. The bot uses an agentic workflow to identify the correct slide, apply code changes, and generate a preview. It does not overwrite the main presentation to avoid losing manual edits made by colleagues throughout the week.
The bot manages requests using a draft system stored in JSON format to prevent conflicts when multiple users submit requests simultaneously. Once a week, the developer reviews these drafts and merges them into the main codebase via a single pull request. The agentic tools were developed with the assistance of Claude Code, focusing on specific tasks like slide re-generation and code adjustments.






