CraftMyPDF

Let your AI agent generate polished PDFs mid-conversation

Customers request invoices, quotes, or certificates and your AI agent builds them instantly. CraftMyPDF templates fill with live data, produce pixel-perfect documents, and deliver download links before the conversation ends. No manual document creation required.

Chosen by 800+ global brands across industries

Document generation on autopilot

Your AI agent taps into CraftMyPDF's template library and PDF API to produce professional documents during live customer interactions, no human formatting needed.

CraftMyPDF

Use Cases

Documents delivered in real time

From invoices to enrollment certificates, see how businesses use AI agents to generate and deliver professional documents during live conversations.

Instant Invoice Generation After Purchase

A customer completes a purchase and asks for an invoice. Your AI Agent collects their billing details, populates your CraftMyPDF invoice template with line items and tax calculations, triggers the async PDF API, and returns a branded invoice PDF within the same chat. The customer downloads their invoice immediately. Your finance team never touches a manual template.

On-Demand Certificates for Course Completions

A learner finishes a training module and asks for their certificate. Your AI Agent verifies completion, fills the certificate template with the learner's name, course title, and date, and generates a polished PDF. The certificate arrives in the chat ready for download. No admin queue, no waiting for business hours, no manual data entry.

Custom Quotes Built During Sales Conversations

A prospect describes their requirements during a website chat. Your AI Agent calculates pricing based on their inputs, selects the appropriate quote template from your CraftMyPDF library, populates it with service details and totals, and delivers a professional proposal PDF. The prospect gets a formal quote before the conversation ends, accelerating your sales cycle.

Try
CraftMyPDF

CraftMyPDF

FAQs

Frequently Asked Questions

How does the AI agent select the right CraftMyPDF template for each document?

The agent calls CraftMyPDF's List Templates API and filters by group name or template ID. You can organize templates into groups like 'invoices,' 'certificates,' or 'proposals' in CraftMyPDF, and the agent picks the correct one based on the customer's request context. No manual selection needed.

Can the agent generate PDFs with dynamic line items and calculated totals?

Yes. CraftMyPDF templates support expressions for currency formatting, date calculations, and JavaScript functions. The agent passes a JSON data payload with nested arrays for line items, and the template handles subtotals, taxes, and formatting automatically using CraftMyPDF's built-in expression engine.

What happens if the PDF takes longer to render than expected?

The agent uses CraftMyPDF's asynchronous generation endpoint with a webhook URL. If rendering takes time, the customer continues their conversation while CraftMyPDF processes the document in the background. Once complete, the webhook delivers the PDF link and the agent shares it with the customer.

Does Tars store the generated PDF documents?

Tars does not permanently store your PDFs. The generated documents are hosted by CraftMyPDF and accessible via the returned URL. You can set an expiration time on PDF links using the expiration parameter, and optionally configure CraftMyPDF to store documents in your own cloud storage.

Can customers edit a document before downloading it?

Yes. The agent can create an embeddable editor session using CraftMyPDF's Editor Session API. You control what customers can do with boolean flags for previewing, saving, editing JSON, and generating the final PDF. The session URL works directly in the chat window.

How do I authenticate the CraftMyPDF integration in Tars?

In your Tars dashboard, navigate to Tools and select CraftMyPDF. Paste your API key from your CraftMyPDF account settings. The connection authenticates immediately. Your templates become available for the agent to use in any Gambit that requires document generation.

What document formats can the agent produce besides PDF?

CraftMyPDF primarily generates PDF files through its API, which is the format the Tars integration supports. The platform also supports image generation from templates. If you need other formats like DOCX or XLSX, you would handle that through CraftMyPDF's broader feature set outside the API integration.

How is this different from attaching a static PDF in a chatbot response?

Static attachments are the same file for everyone. With CraftMyPDF integration, every document is generated dynamically with the customer's actual data, including their name, order details, calculated pricing, and current date. Each PDF is unique, branded, and accurate to the specific conversation.

How to add Tools to your AI Agent

Supercharge your AI Agent with Tool Integrations

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

We’ll never let you lose sleep over privacy and security concerns

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

GDPR
ISO
SOC 2
HIPAA

Still scrolling? We both know you're interested.

Let's chat about AI Agents the old-fashioned way. Get a demo tailored to your requirements.

Schedule a Demo