AI & Documents · 2026

Design a PDF Template in a Claude Conversation

7 min read Last updated: October 2026

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.

You describe it
→
Claude calls MCP
→
Preview in chat
→
PDF download
A
Written by Arun, Founder, DocuQueue
10+ years in document automation • Last updated October 2026
Overview

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, calls create_template
  • Preview, revise, approve — all in chat
  • The PDF renders — create a PDF template with AI, in one conversation
Before you start:

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.

Next: Design your template in four steps
Walkthrough

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.

01

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.

02

Describe your template in chat

Describe the document in plain English. Claude calls create_template with HTML and {{variable}} placeholders.

Full chat transcript
Gift voucher design Design the gift voucher template
You
brand-notes.md
Design a gift voucher for our shop: gold foil header, a {{voucher_code}} placeholder, a recipient line, a value line, and an expiry date.
Thinking…
Claude

Creating the template now.

Calling create_template…
create_template DocuQueue MCP · Completed
Claude

Template saved as tmpl_voucher_001. Want me to preview it with sample data?

You
Yes, preview it.
03

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
Gift voucher design Design the gift voucher template
Claude

Rendering a preview with sample values.

Calling preview_template…
preview_template DocuQueue MCP · Completed
Claude

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?

You
Make the header solid gold and add a signature line at the bottom.
Claude

Updating the template and re-previewing.

Calling create_template…
create_template DocuQueue MCP · Completed
Calling preview_template…
preview_template DocuQueue MCP · Completed
Claude

Revised template saved as tmpl_voucher_002. Solid gold header, signature line added. Happy with it?

You
Yes, generate the PDF.
04

Generate the PDF

Approve the design: Claude calls fill_template, polls get_status, hands you the download_pdf link.

Full chat transcript
Gift voucher design Design the gift voucher template
Claude

Generating the PDF now.

Calling fill_template…
fill_template DocuQueue MCP · Completed
Calling get_status…
get_status DocuQueue MCP · Completed
Calling download_pdf…
download_pdf DocuQueue MCP · Completed
Claude

Done. Your voucher PDF is ready: https://docuqueue.com/api/v1/download/...

Design approved, document generated, link in hand.
Next: MCP tools used in this walkthrough
Reference

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.
Honest detail:

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.

Next: Example prompts you can copy
Try it

Example prompts you can copy

Start a template design with one sentence, then steer it from there.

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

Next: Common questions
FAQ

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.

Next: Ship your first document workflow

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.

A
Arun, Founder, DocuQueue
10+ years building document automation tools. Tests every MCP integration personally, from Claude Desktop to Claude Code, and documents the exact chat flows that work.

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).

References