A production-style AI agent that extracts structured insights from meeting notes using schema validation and self-healing.
This project implements a task-oriented AI agent designed to process meeting text and return structured insights, including:
- Summary
- Action Items
- Decisions
- Risks
The agent is built with:
- OpenAI API
- Strict JSON schema enforcement
- Validation + self-healing retry mechanism
- Modular project structure
Always returns JSON with the following schema:
{
"summary": "...",
"action_items": ["..."],
"decisions": ["..."],
"risks": ["..."]
}- Ensures correct schema
- Enforces types (string vs list)
- Prevents malformed responses
If the model returns:
- invalid JSON
- incorrect schema
The agent:
- Detects the issue
- Sends a repair prompt
- Retries automatically
This is not a chatbot.
It is a single-purpose agent: Analyze meeting notes → return structured data
meeting-intelligence-agent/
│
├── app/
│ ├── agent.py # Core agent logic
│ ├── config.py # Settings (model, debug)
│ ├── prompts.py # System prompt
│ ├── validators.py # JSON validation logic
│ └── main.py # CLI interface
│
├── run.py # Entry point
├── requirements.txt # Dependencies
├── .env # API key (not committed)
├── .gitignore
└── README.md
git clone https://github.com/dmartinezbeltrami/meeting-intelligence-agent.git
cd meeting-intelligence-agentpython -m venv venvWindows (PowerShell):
.\venv\Scripts\activatepip install -r requirements.txtCreate a .env file:
OPENAI_API_KEY=your_api_key_here
python run.pyWe had a meeting with the product team.
John will redesign the signup flow.
Maria will analyze drop-off rates.
There is a risk due to unstable backend services.
{
"summary": "The product team discussed improvements to the signup flow and analytics.",
"action_items": [
"John will redesign the signup flow",
"Maria will analyze drop-off rates"
],
"decisions": [],
"risks": [
"Unstable backend services"
]
}- Prompt engineering for structured outputs
- Schema validation
- Self-healing AI responses
- Task-scoped agent design
- Separation of concerns (modular architecture)
- API keys are stored in .env
- .env is excluded via .gitignore
- No secrets are hardcoded
- Add unit tests for validation
- Add logging system
- Extend to multi-agent workflows
- Add API (FastAPI) for deployment
- Add UI (optional)
This project demonstrates:
- Real-world AI agent design
- Reliability-focused architecture
- Production-ready structure
Built by Diego Martínez Beltrami
AI Engineer (Computer Vision / Edge AI → Agentic AI transition)