PageSourceSearch

https://www.documentpro.ai/_next/static/chunks/pages/replit-6f114d0b99d0f95d.js

js documentpro.ai collected 2026-10-05 01:55:45 UTC 9,662 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[192],{464:(e,t,s)=>{"use strict";s.d(t,{A:()=>i});var a=s(7876);s(4232);var r=s(8230),n=s.n(r);let i=()=>(0,a.jsx)("div",{className:"bg-gradient-to-b from-[#FAF9FF] to-white",children:(0,a.jsx)("div",{className:"container mx-auto px-4 py-16 md:py-24",children:(0,a.jsxs)("div",{className:"mx-auto max-w-3xl text-center",children:[(0,a.jsx)("h2",{className:"mb-4 text-4xl font-bold tracking-tight text-gray-900 sm:text-5xl",style:{fontWeight:500},children:"Ready to give your platform document intelligence?"}),(0,a.jsx)("p",{className:"mx-auto mb-10 max-w-2xl text-lg text-gray-600",children:"Talk to us about your use case."}),(0,a.jsxs)("div",{className:"mt-10 flex flex-col items-center justify-center space-y-4 sm:flex-row sm:space-x-4 sm:space-y-0",children:[(0,a.jsx)(n(),{href:"https://app.documentpro.ai/sign-up",target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center rounded-md border border-transparent bg-blue-500 px-6 py-4 text-lg font-medium text-white shadow-lg transition-all duration-200 hover:bg-blue-600 sm:px-10",children:"Get API Access"}),(0,a.jsx)(n(),{href:"/contact",className:"flex items-center justify-center rounded-md border border-blue-600 bg-transparent px-6 py-4 text-lg font-medium text-blue-600 shadow-lg transition-all duration-200 hover:bg-blue-50 hover:bg-opacity-10 sm:px-10",children:"Talk to Sales"})]})]})})})},1447:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>o});var a=s(7876),r=s(8230),n=s.n(r),i=s(4433),l=s(464),c=s(2522);let o=()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(c.W,{title:"DocumentPro + Replit | Document Extraction for Replit Agent",description:"Add production-grade document extraction to apps built with Replit Agent. Connect the DocumentPro MCP server and your agent can parse invoices, purchase orders, and tax forms with typed schemas."}),(0,a.jsx)("div",{className:"bg-white py-20",children:(0,a.jsxs)("div",{className:"mx-auto max-w-3xl px-4 text-center",children:[(0,a.jsx)("h1",{className:"mb-6 text-4xl font-medium tracking-tight text-gray-900 md:text-5xl",children:"DocumentPro + Replit"}),(0,a.jsx)("p",{className:"mx-auto max-w-2xl text-lg text-gray-600",children:"Building on Replit and your app needs to read documents? DocumentPro is an API-first extraction engine your Replit Agent can wire up directly: it discovers the extraction tools over MCP, reads the exact field schema for invoices, purchase orders, receipts, or tax forms, and generates code against real field names instead of guessing. You ship document understanding without building a parsing pipeline."})]})}),(0,a.jsx)("div",{className:"bg-gray-50 py-16",children:(0,a.jsxs)("div",{className:"mx-auto max-w-3xl px-4",children:[(0,a.jsx)("h2",{className:"mb-4 text-center text-sm font-semibold uppercase tracking-wider text-gray-500",children:"TRY IT"}),(0,a.jsx)("h3",{className:"mb-8 text-center text-3xl font-medium tracking-tight text-gray-900",children:"Paste this into Replit Agent"}),(0,a.jsx)(i.A,{code:"When a user uploads an invoice, extract the vendor name, invoice total, and line items using DocumentPro, then save them to the database and show them in a review table.",label:"Example prompt"}),(0,a.jsxs)("p",{className:"mt-4 text-center text-sm text-gray-500",children:["With the MCP server connected, the agent calls"," ",(0,a.jsx)("code",{className:"rounded bg-gray-200 px-1",children:"list_templates"})," and"," ",(0,a.jsx)("code",{className:"rounded bg-gray-200 px-1",children:"get_schema"})," to get the exact field names, then wires"," ",(0,a.jsx)("code",{className:"rounded bg-gray-200 px-1",children:"extract_document"})," ","into your app."]})]})}),(0,a.jsx)("div",{className:"bg-white py-16",children:(0,a.jsxs)("div",{className:"mx-auto max-w-3xl px-4",children:[(0,a.jsx)("h2",{className:"mb-4 text-center text-sm font-semibold uppercase tracking-wider text-gray-500",children:"SETUP"}),(0,a.jsx)("h3",{className:"mb-12 text-center text-3xl font-medium tracking-tight text-gray-900",children:"Connected in three steps"}),(0,a.jsxs)("ol",{className:"space-y-10",children:[(0,a.jsxs)("li",{className:"flex items-start",children:[(0,a.jsx)("div",{className:"mr-4 flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-full bg-blue-100 font-semibold text-blue-600",children:"1"}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h4",{className:"mb-2 text-lg font-medium text-gray-900",children:"Get an API key"}),(0,a.jsxs)("p",{className:"text-gray-500",children:[(0,a.jsx)("a",{href:"https://app.documentpro.ai/sign-up",target:"_blank",rel:"noreferrer",className:"text-blue-600 hover:underline",children:"Create a free account"})," ","and copy your API key from the dashboard. The free tier is enough to build and test the full integration."]})]})]}),(0,a.jsxs)("li",{className:"flex items-start",children:[(0,a.jsx)("div",{className:"mr-4 flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-full bg-blue-100 font-semibold text-blue-600",children:"2"}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h4",{className:"mb-2 text-lg font-medium text-gray-900",children:"Connect the MCP server"}),(0,a.jsx)("p",{className:"mb-4 text-gray-500",children:"Add DocumentPro as an MCP integration in Replit (or tell the agent to call the API directly with your key):"}),(0,a.jsx)(i.A,{code:"Server URL: https://api.documentpro.ai/mcp\nHeader:     x-api-key: <your DocumentPro API key>",label:"MCP connection"})]})]}),(0,a.jsxs)("li",{className:"flex items-start",children:[(0,a.jsx)("div",{className:"mr-4 flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-full bg-blue-100 font-semibold text-blue-600",children:"3"}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h4",{className:"mb-2 text-lg font-medium text-gray-900",children:"Prompt your agent"}),(0,a.jsx)("p",{className:"text-gray-500",children:"Use the example prompt above, or describe your own document flow. Extraction is asynchronous: the agent submits a document, polls for completion, and gets back JSON keyed exactly to the template schema."})]})]})]})]})}),(0,a.jsx)("div",{className:"bg-gray-50 py-16",children:(0,a.jsxs)("div",{className:"mx-auto max-w-4xl px-4",children:[(0,a.jsx)("h2",{className:"mb-4 text-center text-sm font-semibold uppercase tracking-wider text-gray-500",children:"UNDER THE HOOD"}),(0,a.jsx)("h3",{className:"mb-12 text-center text-3xl font-medium tracking-tight text-gray-900",children:"What your agent can call"}),(0,a.jsx)("div",{className:"grid gap-8 md:grid-cols-2",children:[{name:"extract_document",description:"Submit a file by URL or inline content against a template. Returns a job id; results come back as structured JSON."},{name:"check_extraction_status",description:"Poll a job until it completes. Terminal states and error details are explicit, so generated code handles failures cleanly."},{name:"list_templates",description:"Discover available extraction templates — invoices, purchase orders, receipts, W-2s, 1099s, and your custom layouts."},{name:"get_schema",description:"Fetch the exact field definitions for a template so the agent can generate a matching data model instead of guessing field names."}].map(e=>(0,a.jsxs)("div",{className:"rounded-lg border border-gray-200 bg-white p-6",children:[(0,a.jsx)("h4",{className:"mb-2 font-mono text-base font-semibold text-blue-600",children:e.name}),(0,a.jsx)("p",{className:"text-sm text-gray-500",children:e.description})]},e.name))}),(0,a.jsxs)("p",{className:"mt-10 text-center text-gray-500",children:["Full reference in the"," ",(0,a.jsx)("a",{href:"https://docs.documentpro.ai/d
1ocs/getting-started/about",target:"_blank",rel:"noreferrer",className:"text-blue-600 hover:underline",children:"API documentation"}),". Building something bigger on Replit?"," ",(0,a.jsx)(n(),{href:"/contact?ref=replit",className:"text-blue-600 hover:underline",children:"Talk to us"}),"."]})]})}),(0,a.jsx)(l.A,{})]})},2079:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/replit",function(){return s(1447)}])},4433:(e,t,s)=>{"use strict";s.d(t,{A:()=>n});var a=s(7876),r=s(4232);let n=e=>{let{code:t,label:s}=e,[n,i]=(0,r.useState)(!1),l=async()=>{try{await navigator.clipboard.writeText(t),i(!0),setTimeout(()=>i(!1),2e3)}catch(e){}};return(0,a.jsxs)("div",{className:"overflow-hidden rounded-lg border border-gray-200 bg-gray-900 text-left",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between border-b border-gray-700 px-4 py-2",children:[(0,a.jsx)("span",{className:"text-xs font-medium uppercase tracking-wider text-gray-400",children:null!=s?s:"Prompt"}),(0,a.jsx)("button",{type:"button",onClick:l,className:"flex items-center gap-1.5 rounded px-2 py-1 text-xs font-medium text-gray-300 transition hover:bg-gray-700 hover:text-white","aria-label":"Copy to clipboard",children:n?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("svg",{className:"h-4 w-4 text-green-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),"Copied"]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"})}),"Copy"]})})]}),(0,a.jsx)("pre",{className:"overflow-x-auto whitespace-pre-wrap px-4 py-4 text-sm leading-relaxed text-gray-100",children:(0,a.jsx)("code",{children:t})})]})}}},e=>{var t=t=>e(e.s=t);e.O(0,[636,593,792],()=>t(2079)),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.