Design a PDF Template in a Claude Conversation
Design a PDF template with Claude right in the chat window: describe the layout, let Claude write the HTML and save it through the DocuQueue MCP server, then preview the result before anything renders. Create a PDF template with AI in a single conversation, then download the PDF.
TL;DR: Connect the DocuQueue MCP server, describe the template in chat, preview the HTML, approve the design, and download the PDF. The whole loop happens inside one Claude conversation.
How does template design in a conversation work?
You talk, Claude builds, the MCP server saves. No editor, no canvas, no dragging boxes around.
No drag-and-drop editor. You describe the document; Claude does the layout:
- You describe it in plain English
- Claude writes the HTML with
{{variable}}placeholders, callscreate_template - Preview, revise, approve — all in chat
- The PDF renders — create a PDF template with AI, in one conversation
Set up the DocuQueue MCP server first — our guide to generating PDFs with Claude walks through it.
New here? Start with the MCP page, the MCP benchmark, or the free gift voucher generator.
Design your template in four steps
A real session, tool calls and all. Copy the flow and it works the same way in your account.
Connect the DocuQueue MCP server to Claude
Add the DocuQueue MCP server to Claude Desktop or Claude Code, restart, done. Full setup: guide to generating PDFs with Claude.
Describe your template in chat
Describe the document in plain English. Claude calls create_template with HTML and {{variable}} placeholders.
Full chat transcript
Creating the template now.
Template saved as tmpl_voucher_001. Want me to preview it with sample data?
Preview and refine
Claude calls preview_template with sample data and shows the rendered HTML in chat. Iterate until it is right.
Full chat transcript
Rendering a preview with sample values.
Preview is back. Note that preview_template returns rendered HTML rather than a PDF, so you can read the layout right here in chat: gold header, recipient line, code, value, expiry. Anything to change?
Updating the template and re-previewing.
Revised template saved as tmpl_voucher_002. Solid gold header, signature line added. Happy with it?
Generate the PDF
Approve the design: Claude calls fill_template, polls get_status, hands you the download_pdf link.
Full chat transcript
Generating the PDF now.
Done. Your voucher PDF is ready: https://docuqueue.com/api/v1/download/...
MCP tools used in this walkthrough
Every call Claude makes while designing and generating your template.
Same tools in Claude Desktop, Claude Code, or any MCP client — see the MCP page or MCP benchmark.
| Tool | What it does |
|---|---|
| list_templates | Browse available document designs. |
| create_template | Design a new document layout. |
| preview_template | See how your document will look. |
| fill_template | Create a document. Preview first, then confirm to generate PDF. |
| get_status | Check if your document is ready. |
| download_pdf | Get your finished document. |
preview_template returns rendered HTML, not a PDF, so previews cost you nothing and never leave a file behind. The PDF appears only after you confirm generation with fill_template.
Example prompts you can copy
Start a template design with one sentence, then steer it from there.
-
Design a gift voucher with gold accents
Prompt: "Design a gift voucher with gold accents, a {{voucher_code}} placeholder, and an expiry date."
Claude writes, saves, and previews it with sample values. Start from our free gift voucher generator if you would rather restyle an existing design.
-
Make an invoice template with placeholders
Prompt: "Make an invoice template with {{client_name}}, {{invoice_number}}, and {{total}} placeholders, plus a payment terms row."
Claude drafts the table and previews it with a sample client.
-
Redesign my certificate
Prompt: "Redesign my certificate with a border and a signature line."
Paste your HTML or describe the certificate; Claude rebuilds and previews it in chat.
-
Turn this HTML into a template
Prompt: "Turn this HTML into a template with a logo top-left and {{company_name}} in the footer."
Claude swaps fixed text for variables so one design serves every future document.
-
Generate a filled sample
Prompt: "Generate a filled sample so I can check it."
Preview with sample data first, then approve to start the PDF job.
Common questions
Can Claude design a PDF template for me?
Yes. You describe the layout in chat, Claude writes the HTML with variables, and the DocuQueue MCP server saves it as a template. Claude then previews it with sample data and generates the PDF only after you approve.
Do I need to use a drag-and-drop editor?
No. Templates are plain HTML with placeholders, so the design happens in the conversation. Claude drafts the markup, you ask for changes in plain English, and the saved template is ready to reuse.
Which MCP tools create and preview templates?
create_template designs a new document layout and returns a template_id. preview_template renders that template with sample data and returns HTML, so you can inspect the result before anything is generated.
Can I preview the template before generating a PDF?
Yes. preview_template returns rendered HTML rather than a PDF, so you can read the layout in chat. fill_template previews first when confirm is false, and generates the PDF only when you set confirm to true.
Can I use Claude Code as well as Claude Desktop?
Yes. Both clients connect to the same DocuQueue MCP server, so the flow is identical: describe the template, preview it, and generate the PDF. Add the server with a config entry in Claude Desktop or a CLI command in Claude Code.
About this guide: This guide is maintained by the DocuQueue team. Instructions verified as of October 2026.
Ship your first document workflow in under 5 minutes
Connect the MCP server, describe a template, and generate your first PDF from chat. Curious what else Claude can call? Explore the MCP connector.
How This Guide Was Created
Written by Arun, who ran this flow end to end: create, preview, refine, generate, download. Tool names and parameters come from DocuQueue's MCP server; setup verified against the MCP specification (modelcontextprotocol.io).