# Timesheet Assistant

> A local Python agent for Microsoft 365 activity collection, AI hour proposals, and Excel timesheet automation.

Timesheet Assistant is a subscription AI agent skill on Agensi by Giddy, in Workflow Automation. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $8/mo (subscription, cancel anytime)
- Creator: [Giddy](https://www.agensi.io/creators/giddy)
- Category: [Workflow Automation](https://www.agensi.io/skills/workflow-automation)
- Version: 1.0
- Last updated: 2026-11-27
- Security: scan passed (2026-11-27); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/timesheet-assistant
- Tags: automation, python, langgraph, fastapi, microsoft-365, excel

## About this skill

Stop manually tallying hours from emails and calendars. This skill provides the development context to maintain and extend a local Python application that automates Microsoft 365 activity collection and Excel timesheet generation.

### What it does
- **Automates activity ingestion** via Work IQ and Microsoft 365 APIs to track email, calendar, and chat events.
- **Generates project proposals** using Azure OpenAI to map raw activity data to specific project codes and hour increments.
- **Enforces human approval** by requiring explicit user verification in a FastAPI dashboard before any data is saved or exported.
- **Exports to Excel** by writing approved entries into standard templates using `openpyxl` without overwriting existing formulas.
- **Secures local data** using Windows DPAPI for profile-specific settings and keeping all dashboard traffic on the local loopback.

### How it works
1. **Collector phase** uses MSAL authentication and MCP tools to gather mailbox and calendar evidence for a specific time window.
2. **Analysis phase** processes untrusted activity text through a LangGraph workflow to propose structured `Entry` models.
3. **Review phase** serves a local FastAPI dashboard on port 8765 for the user to edit, reject, or approve proposals.
4. **Persistence phase** saves approved records to a local SQLAlchemy/SQLite database and triggers the Excel export worker.

### Frameworks & tools
Built with Python 3.11, FastAPI, LangGraph, SQLAlchemy, MSAL, and Azure OpenAI. Packaging is handled via PyInstaller and MSIX for Windows desktop environments.

### Why this beats prompting it yourself
Prompting alone lacks the state management required for multi-step approval workflows and the deterministic validation needed for project registries. This skill ensures that activity data is treated as untrusted evidence rather than instructions, preventing prompt injection from mailbox content.

### Use cases
- Build custom MCP integrations for new Microsoft 365 data sources.
- Modify the LangGraph workflow to implement stricter project code validation.
- Extend the Excel export logic to support complex enterprise timesheet templates.
- Debug local MSAL authentication flows and Windows-specific profile locking.

### Known limitations
Requires Python 3.11 or later and a Windows environment for DPAPI and MSIX features. Limited to single-user local deployment; not designed for multi-tenant cloud hosting.

## Requires

- Ic MCP
- Langchain Adapters MCP
- Python

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Timesheet Assistant skill from Agensi" and describe your task.
3. Subscribe on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### How does this skill simplify the weekly timesheet process?

The assistant automates the collection of activity data from Microsoft 365, uses AI to categorize those events into project codes, and populates your Excel timesheets, saving hours of manual data entry.

### What are the system requirements and environment limitations for this assistant?

This skill requires a Windows environment (for DPAPI security) and Python 3.11+. It is designed for local deployment rather than cloud hosting to ensure your sensitive activity data stays on your machine.

### How is my Microsoft 365 data secured during the collection and analysis process?

Security is a priority; the tool uses Windows DPAPI for profile-specific encryption and hosts the review dashboard on a local loopback (port 8765), ensuring your data never leaves your local network during the review phase.

### What exactly is included in the purchase of this skill?

You receive the complete development context including the FastAPI dashboard, LangGraph workflows, and MSIX packaging logic, allowing you to customize project validation rules or Excel templates.

### Can I extend this skill to track activities from sources other than Microsoft 365?

Yes, the collector phase is built using Model Context Protocol (MCP) tools, making it highly extensible if you need to integrate additional data sources beyond standard email and calendar events.

### Why is this agentic approach better than just using a standard LLM prompt for timesheets?

Unlike simple prompts, this skill uses a structured LangGraph workflow and a human-in-the-loop FastAPI dashboard to ensure every AI-generated proposal is verified and validated before it hits your official records.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
