skills/document/document-screening/SKILL.md
Screen inbound documents for completeness, policy risk, and routing readiness before extraction or case workflows
npx skillsauth add happy-technologies-llc/happy-servicenow-skills document-screeningInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This skill adds a document screening stage before extraction or fulfillment workflows in ServiceNow®. It helps teams:
Use this when your intake process receives mixed document quality, high volume, or compliance-sensitive content.
admin, sn_doc_intelligence_admin, or equivalent intake operations rolesys_attachment, sn_doc_template, sn_doc_intelligence_extraction, and taskCollect newly submitted documents and classify by source, type, and priority.
Using MCP:
Tool: SN-Query-Table
Parameters:
table_name: sys_attachment
query: sys_created_on>=javascript:gs.hoursAgoStart(24)^table_nameISNOTEMPTY
fields: sys_id,file_name,content_type,size_bytes,table_name,table_sys_id,sys_created_on,sys_created_by
limit: 100
order_by: sys_created_on
Using REST API:
GET /api/now/table/sys_attachment?sysparm_query=sys_created_on>=javascript:gs.hoursAgoStart(24)^table_nameISNOTEMPTY&sysparm_fields=sys_id,file_name,content_type,size_bytes,table_name,table_sys_id,sys_created_on,sys_created_by&sysparm_limit=100
Map each document to a known template and required evidence checklist.
Decision points:
Evaluate required attributes and extraction confidence signals.
Using MCP:
Tool: SN-Query-Table
Parameters:
table_name: sn_doc_intelligence_extraction_result
query: extraction=[extraction_sys_id]
fields: field_name,extracted_value,confidence_score,validation_status
limit: 200
Checks to apply:
Set one of three outcomes:
Using MCP:
Tool: SN-Create-Record
Parameters:
table_name: task
fields:
short_description: "Document screening failed: missing required evidence"
description: "File [file_name] failed screening checks. Review checklist and resubmit."
priority: 3
state: 1
Document the screening rationale and the exact routing decision.
| Tool | Purpose |
|---|---|
| SN-Query-Table | Retrieve attachments, templates, and extraction results |
| SN-Read-Record | Inspect source record context for submitted documents |
| SN-Create-Record | Create remediation tasks for failed screenings |
| SN-Update-Record | Update screening status and routing fields |
| SN-Add-Work-Notes | Persist decision rationale for auditability |
Symptom: No documents appear in intake query.
Cause: Time-window filter or source table filter is too restrictive.
Solution: Broaden query window and verify attachment source integration.
Symptom: Most documents route to fail or conditional pass.
Cause: Confidence threshold or required field set is misaligned with real inputs.
Solution: Tune thresholds by document type and add exception handling rules.
document/document-extraction - Extract structured data from documentsdocument/smart-documents - Manage document templates and generationprocurement/invoice-management - Apply screened invoice documents to AP workflowstesting
Manage supplier onboarding, qualification, performance monitoring, and offboarding with auditable lifecycle controls
tools
Identify emerging risks, prioritize intake signals, and route candidates into formal GRC risk assessment workflows
testing
Generate concise task summaries with status, timeline, blockers, SLA risk, and recommended next actions
development
Triage, prioritize, and assign ServiceNow incidents using impact/urgency matrix and category-based routing. Use when an alert fires, a ticket lands unassigned, an outage is reported, an escalation is needed, severity must be classified, an on-call team must be paged, or an SLA is at risk.