AI Incident Response Team: My First Tech Win
Explore how an AI incident response team can use Python, an LLM and specialist agents to investigate incidents while keeping people in control.

✍️ Translate this blog into Hindi, Tamil or Telugu
Have you ever opened an incident ticket that says, “The application is not working,” and wondered where to start?
I’m exploring how an AI incident response team can bring incident details, logs and deployment data together to help investigate the issue.
Who this roadmap is for
This roadmap is for someone who knows a little Python or AI and wants to build a project that solves a real problem.
You don’t need to connect to a company’s live systems. You can begin with sample incident tickets, log messages and a short deployment list. That is enough to understand how the project works and show your idea to others.
It’s not about AI taking over incident response. It is about helping a person investigate a problem by bringing useful information together.
🧑🏫✨ From the author · ByteClass live cohortGenAI & AI Agents Hands-On Internship – Zero to Agent Builder₹15,000Join the cohort →Stage 1: foundations
I started with a problem I understand.
Imagine an employee says:
“The customer portal is really slow. It started around 10:30 this morning.”
That tells us the symptom, but not the cause. The support team still needs to find out whether the portal is slow for everyone, whether an error appeared and whether anything changed recently.
The team might find three clues:
- An error message in the application logs.
- A rise in response time in the monitoring data.
- A deployment made shortly before the issue began.
These clues may or may not be related. A person still needs to investigate.
I listed the steps I wanted my project to support:
- Read the incident and identify the basic details.
- Check the logs for errors.
- Check whether a recent deployment is worth investigating.
- Pull the findings together.
- Have someone review the evidence and decide what to do.
Starting with the problem helped me avoid building something just because AI is popular. I had a reason for each part.
I focused on three foundation skills:
- Python helps me read and organise incident information. For example, I can read a sample incident from a file and pass its description to the next step.
- AI prompting helps me give each agent a clear task. “Find what caused the incident” may lead to a guess. “Find log messages that match this incident, show them and say when you are unsure” is clearer and easier to review.
- Basic data handling helps me work with incident numbers, timestamps, service names, log messages and deployment dates.
I started with small examples. First, I asked AI to summarise one incident. Then I gave it sample logs and asked it to find messages related to that incident.
Stage 2: core tools
So once I knew what the problem was I started thinking about the technological design. I wanted each piece of the system to have a clear job so I could understand where the information came from and evaluate how the AI reached its conclusion.
LLM Framework
For the next iteration I'd use GPT-6.2 Sol via the OpenAI Responses API. The model would read an occurrence, examine information returned by approved tools and create structured findings. The Responses API allows tool use and structured outputs, which are helpful when an application needs the model to return information in a predictable way.
For the first prototype I would utilise a single model for all four agent roles. The agents would have distinct instructions and tools, but one model would make the system easy to construct and compare.
The LLM itself would not directly search a computer or database . It would ask for a certain tool, for example, search_logs. My Python application would check that request, run the tool and send the results to the model.
The key tools
How I would use it PythonConnect agents, tools and incident data.
FastAPI- Build backend endpoints for submitting an incident and getting the investigation report.
Streamlit -Build a simple screen to insert an incident and check the results.
SQLite -Store fake incidents, log information, deployments and investigation outcomes for prototype.
OpenAI Answers- APISend instructions and evidence to GPT-6.2 Sol, obtain structured findings and process tool calls.
LangGraph-Control the order in which search stages are executed and exchange information across agents.
With the OpenAI API’s Agents SDK you can construct workflows with tools, handoffs, approvals and tracing. For this prototype, I would choose one orchestration approach and keep the workflow simple to follow.
How the agents would operate together I would not allow the agents to call each other in any order they like. I would define a clear job flow:
1. The Triage Agent reads the event and determines the service, symptoms, start time and missing information.
2. The Log Analyst Agent accepts that information and looks for matching log data.
3. The Change Analyst Agent searches for deployments occurring around the event period.
4. The Coordinator Agent receives all three findings and compiles the final report.
5. The prototype user evaluates the evidence and determines what to do next.
LangGraph would depict this workflow as connected nodes. The shared process state can comprise the incident information, log findings, deployment findings, uncertainty and final report. That way, the following agent has the essential knowledge without needing to repeat the entire inquiry.
What is a tool call?
The Log Analyst Agent has to search for faults. It might ask for a tool call like this:
{
"tool": "search_logs",
"arguments": {
"service_name": "customer-portal",
"start_time": "10:15",
"end_time": "10:45",
"keywords": ["timeout", "error"]
}
}The Python application would validate the request, search the sample log records and return the matching records. The agent would then tell you what it had discovered.
For instance:
{
"findings": [
{
"timestamp": "10:34",
"service": "customer-profile",
"message": "Request timed out after 30 seconds"
}
],
"summary": "One timeout message was found during the incident window.",
"limitations": "This log entry alone does not confirm the root cause."
}Such a framework helps the application digest the answer and makes it easier for a person to check the evidence.
🛍️✨ From the author · ByteStore1:1 AI Career Transition & Mentorship – 30 Days₹3,999View offer →How I would look at the incident data …
For the first edition I will keep the data in SQLite or basic CSV formats. Each log entry could have a timestamp, service name, severity and message. The log search tool may filter by service and time, and then search the remaining messages for keywords of interest.
For instance, if the event started at 10:30 the program may search from 10:15 to 10:45. That gives the analyst a nice window to go over without sending every log line to the llm.
I could add RAG or retrieval-augmented generation if I upload runbooks or prior incident reports later. I would chunk the documents, make embeddings, and save them into some kind of vector database like Chroma. When an incident comes in, the system might pull up relevant runbook sections and show their origin in the report.
I would not begin with RAG for raw logs. Logs already provide valuable fields, such as timestamps and service names, so normal filtering and search is a better first step.
Connecting to other systems later
Sample files are enough for a demo. If I connect to monitoring, issue management or deployment systems later on, I would construct read-only integrations with limited access.
MCP is one option to think about, since it gives a common interface for AI applications to access tools and data sources. An MCP server could offer whitelisted tools such as get_incident, search_logs or list_recent_deployments . The Python application will still figure out what tools are accessible and what data each tool may return.
How I would verify the results I would create sample incidents where I already know the evidence expected. Then I could verify:- Did the Triage Agent get the proper service/time?
“Did Log Analyst Agent find matching log entries?- Did the Change Analyst Agent report the right deployment?
- Did the Coordinator discern evidence from guesses?
- Did the final report clearly state the cause unknown?
I would also keep a history of each step: the agent's task, the tool it called, the tool result and the ultimate discovery. This would enable me to understand why the wrong or partial answer was given.
The crucial technical insight is that the LLM is not given free rein. It is the Python application that selects which tools are available to it, validates each request and returns only the approved results. The workflow and the person assessing it maintain control over the process, and the model helps to evaluate the evidence.
Stage 3: real projects
I would build the prototype in small steps:
- Enter or select a sample incident.
- Ask the Triage Agent to summarise the ticket.
- Ask the Log Analyst Agent to search the sample logs.
- Ask the Change Analyst Agent to check recent deployments.
- Ask the Coordinator Agent to prepare the report.
- Review the findings and decide what to do next.
I would try different examples. One incident might have a matching error in the logs. Another might have no useful log messages. A third might have a recent deployment that turns out to be unrelated.
Testing different examples matters because the AI should be able to say, “I didn’t find enough evidence,” instead of making up an answer.
I would also set some clear boundaries:
- The prototype uses sample data or approved read-only information.
- All findings include supporting evidence.
- Possible causes are marked as possible, not confirmed.
- Agents cannot run commands or change systems.
- A person reviews any suggested action.
- The investigation report can be saved so the team can review what happened.
For example, an agent can flag that a deployment happened shortly before an incident. It cannot say the deployment caused the incident unless someone investigates and confirms it.
The agents can help the team investigate, but people remain responsible for decisions.
Resources I actually used
I built on my Python and AI learning and my experience working on an AIOps Copilot. For this project, I would use Python documentation, the documentation for the AI model or API I choose, and sample data created for testing.
I would also keep a notebook of the examples I tried, what the agents got right and where they needed clearer instructions. This would help me improve the project gradually.
How long it really takes
A basic demo could take a few weeks of focused learning and building. A more reliable prototype would take longer because each agent needs to be tested with different examples.
I would build it in stages. First, I would summarise an incident. Then I would add log analysis, check deployment records and connect the agents. Finally, I would make sure the report is clear about what is known and what is still uncertain.
My first tech win was seeing an AI idea come together around a real problem. Next, I want to explore how a team of agents can help people investigate issues faster while keeping people in control.
That’s what I like about this project. It’s not just about getting AI to answer a question. It’s about giving it a clear task, checking its evidence and letting a real person decide what to do next.
Want to explore more real-world AI ideas with me? Follow DaisyWithAI for practical projects, simple technical explainers and lessons from my AI journey. And tell me in the comments: which agent would you add to this team?
🛍️ Daisy grace Thomas's shelf
Courses, cohorts and more from the authorGet Daisy grace Thomas's next blog by email
One email a week when they publish. Add the weekly Best of ByteBlog too. No spam, unsubscribe with one click.
We email you once to confirm. By subscribing you agree to the privacy policy.

💬 Comments (0)
Top · NewestSign in to comment