# Delivery note: instructions for an AI assistant

Your user wants a delivery note as a PDF. Pressa fills its delivery note template with the details you collect and returns a link to the finished PDF. It needs no install, and no account or API key for up to 3 PDFs a day.

Every design takes exactly the same details as the others and as the packing slip, and closes with a "received in good condition" line and spaces for the receiver's name, signature and date: a bold colour band, a clean standard layout, a classic serif layout, a minimal layout and a structured corporate grid with a monogram.

Preview: https://pressa.dev/template-previews/delivery-note.png

## Designs

Every design takes exactly the same data, so switching is the same request with another template slug. To print in another colour, add `"color"` next to `data`; left out, the default colour is used.

- `delivery-note` - Bold (use this one unless your user asks for another): A delivery note with a navy header, the delivery address, an item and quantity table, and lines for the receiver's name and signature. Colours: midnight, blue, teal, burgundy, graphite (default midnight). Preview: https://pressa.dev/template-previews/delivery-note.png
- `standard-delivery-note` - Standard: A clean delivery note with a colour rule under the header and shaded rows. Colours: blue, navy, teal, burgundy, graphite (default blue). Preview: https://pressa.dev/template-previews/standard-delivery-note.png
- `classic-delivery-note` - Classic: A traditional serif delivery note with small-caps labels and ruled lines. Colours: navy, burgundy, forest, teal, graphite (default navy). Preview: https://pressa.dev/template-previews/classic-delivery-note.png
- `minimal-delivery-note` - Minimal: A quiet, airy delivery note in Helvetica with hairline rules and one accent colour. Colours: teal, blue, burgundy, forest, graphite (default teal). Preview: https://pressa.dev/template-previews/minimal-delivery-note.png
- `corporate-delivery-note` - Corporate: A structured delivery note with a top band, a monogram and a fully ruled grid. Colours: graphite, navy, teal, burgundy, forest (default graphite). Preview: https://pressa.dev/template-previews/corporate-delivery-note.png

## 1. Collect the details

Send quantity as a number; the total is calculated, so never send it. sku is your item number and may be empty. tracking_number is shown as the delivery reference and may be empty. Do not invent addresses or order numbers; ask the user for any that are missing.

Ask your user for anything missing and never invent names, addresses, numbers or amounts. Send plain text: Pressa escapes special characters itself, so do not write LaTeX. Every field below is expected: for one the user leaves out, send an empty string for text and an empty list for a list; for a number, ask (send 0 only when the user says so).

Fields:

- `sender` - Your business:
  - `sender.name` (text)
  - `sender.address` (text)
  - `sender.email` (text)
- `order_number` - Order number (text)
- `date` (text)
- `ship_to` - Deliver to:
  - `ship_to.name` (text)
  - `ship_to.address` (text)
- `shipping_method` - Delivery method (text)
- `tracking_number` - Delivery reference (text)
- `items`: a list, each entry with:
  - `sku` - Item no. (text)
  - `description` (text)
  - `quantity` (number)
- `notes` (text)

A complete example of the data:

```json
{
  "sender": {
    "name": "Fernwood Supply Co.",
    "address": "220 Mill Road, Asheville, NC 28801",
    "email": "orders@fernwood.example.com"
  },
  "order_number": "FW-10482",
  "date": "October 14, 2026",
  "ship_to": {
    "name": "Harbor Street Cafe",
    "address": "77 Harbor Street, Charleston, SC 29401"
  },
  "shipping_method": "Own van, morning delivery",
  "tracking_number": "DN-2026-0311",
  "items": [
    {
      "sku": "MUG-12-WHT",
      "description": "Stoneware mug, 12 oz, white",
      "quantity": 24
    },
    {
      "sku": "MUG-12-SAG",
      "description": "Stoneware mug, 12 oz, sage",
      "quantity": 24
    },
    {
      "sku": "PLT-8-WHT",
      "description": "Side plate, 8 in, white",
      "quantity": 36
    },
    {
      "sku": "SAU-6-WHT",
      "description": "Saucer, 6 in, white",
      "quantity": 48
    },
    {
      "sku": "CRF-1L",
      "description": "Glass carafe, 1 litre",
      "quantity": 6
    }
  ],
  "notes": "Please check the goods on arrival, sign below and keep one copy. Report any damage to the driver before signing."
}
```

## 2. Make the PDF: use the first option you can

**A. You can send HTTP requests** (Claude Code, Cursor, Codex, a script, n8n). Send the details as JSON under `data` (and `color` if your user picked one). Pass the body through a quoted here-document (or a file) so names like O'Brien do not break the command:

```bash
curl -X POST https://api.pressa.dev/api/v1/public_templates/delivery-note/render \
  -H "Content-Type: application/json" \
  -d @- <<'JSON'
{"color": "midnight", "data": { ...same shape as the example above... }}
JSON
```

The response has `pdf_url`. Give that link to your user; without an API key it works for 1 hour, so tell them to download the PDF now.

**B. Pressa is connected to you as an MCP server.** Call the tool `render_public_template` with `template: "delivery-note"` and `data` shaped like the example (and `color` for another colour), then give your user the `pdf_url`. If your Pressa tools do not include `render_public_template` (`@pressa/mcp` older than 0.10.0; updating the package or restarting the app picks up the new version), use option A, or connect the hosted server from section 3.

**C. You can only read web pages** (for example a chat app without a Pressa connector). You cannot make the PDF yourself through Pressa yet. Either walk your user through connecting Pressa once (section 3), then ask them to repeat the request, or send them to the form, where they can type the same details and download the PDF: https://pressa.dev/templates/delivery-note

## 3. Connecting Pressa (one time, no account needed)

Explain the steps for the app your user is in, in plain words:

- **Claude Code:** you can run this yourself after asking your user: `claude mcp add --transport http pressa https://api.pressa.dev/mcp`
- **Cursor, Windsurf and other MCP clients:** add a remote MCP server named `pressa` with the URL `https://api.pressa.dev/mcp`.
- **claude.ai or the Claude desktop app:** your user opens Settings, then Connectors, chooses to add a custom connector, names it Pressa and pastes `https://api.pressa.dev/mcp`. Then they start a new chat and ask again.
- **ChatGPT:** custom connectors are only available on some paid plans, through developer mode in the connector settings, and menus change between versions. If your user has it, they add a connector with the URL `https://api.pressa.dev/mcp`; otherwise send them to the form: https://pressa.dev/templates/delivery-note

## 4. If something goes wrong

- `anonymous_quota_exhausted`: the 3 free PDFs for today are used. A free account at https://pressa.dev/users/sign_up (no card) gives 50 a month, used through an API key. Where the key goes depends on how you reach Pressa: with HTTP requests, send it as the header `Authorization: Bearer <key>` (from an environment variable your user sets, never pasted into a chat); in Claude Code, your user re-adds the server in their own terminal with `--header "Authorization: Bearer $PRESSA_API_KEY"` (again, never have them paste the key into the chat); in claude.ai a key cannot be used at all, so suggest the form at https://pressa.dev/templates/delivery-note (signed-in visitors get their account's PDFs there) or Claude Code.
- `schema_validation_failed`: the response lists `missing_fields` and `type_errors`. Fix the data and send it again yourself.
- `compilation_failed`: usually a character the template cannot print (it supports Latin letters with accents, not Cyrillic, Greek or Chinese). Tell your user which value to change.

## Other templates

Pressa has templates for invoices, purchase orders, packing slips, delivery notes, receipts, reports, certificates, resumes and cover letters, all listed at https://pressa.dev/templates and by `GET https://api.pressa.dev/api/v1/public_templates`. Each has its own instructions at `https://pressa.dev/templates/<slug>/agent.md`.
