Overview
DocuTrust integrates with Google Gemini to provide intelligent document analysis. The AI can detect signature fields, extract form data, suggest field placements, and respond to natural-language instructions for template configuration.Detection Pipeline v2
DocuTrust’s AI field detection runs through a staged pipeline that produces materially more accurate templates than the earlier single-pass approach: stricter field-type discrimination, PDF text-layer position anchoring, canonicalkey matching for cross-document consistency, per-field
confidence scores, and a gated self-review pass on uncertain extractions.
Pipeline v2 rolls out per-account and is backward compatible — existing
consumers continue to receive the same response shape, plus a new
pipeline metadata block and richer preferences fields per detected
field. No action required on your side.What’s new in responses
Accounts on v2 see these additions onsmart_setup and smart_create:
pipeline— top-level metadata withversion,request_id,latency_ms,anchor_hits,anchor_misses,corrections_applied,critic_ran.preferences.key— canonical snake_case identifier (e.g.full_name,signature,signed_date). Stable across documents with the same semantic field, making downstream field mapping trivial.preferences.confidence— float 0–1 indicating the model’s certainty on both field type AND placement.preferences.anchor_text— verbatim label text from the PDF (e.g."Printed Name:").preferences.anchor_method— one ofsnapped_to_blank,snapped_to_label,llm_only,no_text_layer— describes how the field’s position was determined.
Check AI Configuration Status
Verify that the AI backend is properly configured before making analysis requests.Analyze Document
Run a targeted analysis pass on a template’s uploaded document. Usetype=detect_rotations to identify page orientations, or type=extract_fields to detect fillable areas.