@tpmjs/tools-postmortem-action-extractor
Extract action items from postmortem or incident review documents. Detects action items with patterns like "Action:", "TODO:", "Follow-up:", etc., and extracts owners, priorities (high/medium/low), and due dates when present. Returns a structured list of all action items found.
Test @tpmjs/tools-postmortem-action-extractor (postmortemActionExtractorTool) with AI-powered execution
0/2000 characters
Install this tool and use it with the AI SDK
npm install @tpmjs/tools-postmortem-action-extractorpnpm add @tpmjs/tools-postmortem-action-extractoryarn add @tpmjs/tools-postmortem-action-extractorbun add @tpmjs/tools-postmortem-action-extractordeno add npm:@tpmjs/tools-postmortem-action-extractorimport { postmortemActionExtractorTool } from '@tpmjs/tools-postmortem-action-extractor';import { generateText } from 'ai';
import { openai } from '@ai-sdk/openai';
import { postmortemActionExtractorTool } from '@tpmjs/tools-postmortem-action-extractor';
const result = await generateText({
model: openai('gpt-4o'),
tools: { postmortemActionExtractorTool },
prompt: 'Your prompt here...',
});
console.log(result.text);Available configuration options
textstringPostmortem or incident review text to analyze for action items
Schema extracted: 1/1/2026, 8:18:40 AM
Extract action items from postmortem and incident review documents with automatic detection of owners, priorities, and due dates.
npm install @tpmjs/tools-postmortem-action-extractor
import { postmortemActionExtractorTool } from '@tpmjs/tools-postmortem-action-extractor'; const postmortemText = ` ## Incident Summary Database outage on 2024-01-15 from 14:00 to 14:45 UTC ## Actions - Add monitoring for connection pool exhaustion (@john) [P0] due: 2024-01-20 - Update runbook with connection reset procedure (@sarah) [P1] - Review and increase connection pool limits (devops team) [P2] within 7 days - Schedule architecture review to discuss scaling strategy ## Follow-up TODO: Document the incident in knowledge base (@mike) `; const result = await postmortemActionExtractorTool.execute({ text: postmortemText }); console.log(result.actions); // [ // { // action: "Add monitoring for connection pool exhaustion", // owner: "john", // priority: "high", // dueDate: "2024-01-20", // context: "Actions" // }, // ... // ] console.log(result.count); // 5
text (string, required): Postmortem or incident review text to analyzeReturns an object with:
actions (array): Array of extracted action items, each containing:
action (string): The action item text (cleaned)owner (string, optional): Person assigned to the actionpriority (string, optional): 'high', 'medium', or 'low'dueDate (string, optional): Due date in YYYY-MM-DD formatcontext (string, optional): Section header where action was foundcount (number): Total number of actions extractedmetadata (object):
extractedAt: ISO timestamp of extractiontextLength: Length of input texthasOwners: Number of actions with assigned ownershasPriorities: Number of actions with prioritieshasDueDates: Number of actions with due datesAction:, TODO:, Follow-up:, Next step:[action], [todo], [follow-up](@username) or @usernameassigned to usernameowner: username[owner: username][P0], [P1], [P2], [P3] (high, high, medium, low)priority: high/medium/lowdue: 2024-01-20by 2024-01-20[due: 2024-01-20]deadline: 2024-01-20within 3 days, in 2 weeks (converted to absolute dates)## Actions - Implement retry logic (@alice) [P1] - Add integration tests (@bob)
Action: Update the deployment guide with new steps (@charlie) due: 2024-02-01 TODO: Review error handling in payment service [P0]
We should add monitoring for this metric within 7 days. The team needs to review the architecture by 2024-03-15.
MIT
Downloads/month
0
Quality Score