
Docraptor
Your customer asks for an invoice, a quote, or a report. Your AI agent generates a pixel-perfect PDF or Excel file on the spot using DocRaptor's PrinceXML engine, then delivers a download link before the conversation ends. Professional documents created in seconds, not hours.




Your AI agent converts HTML into high-quality PDFs and Excel files using DocRaptor's rendering engine, delivering polished documents during active customer conversations.
Docraptor
Real scenarios where your AI agent produces professional PDFs and spreadsheets during customer interactions, eliminating manual document creation entirely.
A customer completes a purchase and asks for an invoice. Your AI Agent assembles the order details into an HTML invoice template, sends it to DocRaptor's Create Doc API for PDF conversion, and delivers a download link in the same message thread. The customer gets a professionally formatted invoice in seconds, and your accounting team never touches the document manually.
A client requests a quarterly performance report they can share with their board. Your AI Agent generates the report as a hosted PDF through DocRaptor with a 7-day expiration and a 10-download limit. The client receives a clean URL they can email to stakeholders, and the link automatically expires for security.
A customer asks for their transaction history in Excel format. Your AI Agent formats the data as an HTML table, calls DocRaptor's API with the xlsx document type, and returns a downloadable spreadsheet file. The customer gets their data ready for pivot tables and analysis without waiting for a manual export from your backend team.

Docraptor
FAQs
The agent can generate PDF, XLS (Excel 97-2003), and XLSX (modern Excel) documents. DocRaptor's API accepts HTML content or a URL as input and converts it into the specified format using the PrinceXML rendering engine for PDFs or native Excel generation for spreadsheets.
For documents with heavy formatting, charts, or many pages, the agent uses DocRaptor's asynchronous creation endpoint. It submits the HTML, receives a status ID, then polls the status endpoint until rendering completes. The customer gets notified the moment the file is ready.
Yes. The agent uses DocRaptor's hosted async document endpoint to generate PDFs at unbranded URLs. You can configure download limits and expiration dates so the link auto-expires after a set number of downloads or a specific date. Ideal for sharing reports with external parties.
Tars uses your DocRaptor API key, which you copy from your DocRaptor dashboard. Enter it in the Tars Tools section when adding the integration. DocRaptor uses HTTP Basic Auth with the API key as the username. No OAuth or complex setup required.
Yes. Set the javascript parameter to true in the API call, and DocRaptor will execute JavaScript on the page before converting it to PDF. This is useful for charts, dynamic content, and client-side rendering that needs to complete before the PDF snapshot is taken.
DocRaptor is the only HTML-to-PDF API that supports WCAG 2.0, Section 508, and PDF/UA (ISO 14289) accessibility standards. The PrinceXML engine automatically tags content and converts HTML forms into accessible PDF forms, making it suitable for government and enterprise compliance requirements.
No. Tars calls DocRaptor's API and delivers the resulting document link or file to the customer. If you use hosted documents, the file lives on DocRaptor's servers with your configured expiration. Tars does not retain copies of generated documents.
Calling the API directly requires a developer to write code for each document scenario. With Tars, the AI agent decides when to generate a document based on customer requests, assembles the HTML dynamically, calls DocRaptor, and delivers the result, all without engineering involvement for each interaction.
Don't limit your AI Agent to basic conversations. Watch how to configure and add powerful tools making your agent smarter and more functional.

Privacy & Security
At Tars, we take privacy and security very seriously. We are compliant with GDPR, ISO, SOC 2, and HIPAA.