---
title: Deploy Carbone with AI on Blossom
url: "/deploy/carbone/"
canonical_url: https://blossom88.com/deploy/carbone/
markdown_url: https://blossom88.com/deploy/carbone.md
summary: Generate internal invoice PDFs from a reusable document template and JSON
  data.
categories:
- deployment
- documents
- automation
stack:
- Carbone Community
- LibreOffice
- HTTP API
---

# Deploy Carbone with AI on Blossom

[Carbone](https://carbone.io/) turns templates and JSON into invoices,
reports, and other documents. This recipe uses the vendor's Community
edition to generate a PDF invoice for internal use.

![A Carbone invoice with a recipient, service and amount.](/deploy/assets/images/carbone/sample-invoice.webp)

![A second Carbone invoice with new values from the same template.](/deploy/assets/images/carbone/second-invoice.webp)

## Ask Your Agent

> **Ask your AI agent:** Deploy Carbone Community on Blossom for internal use and help me render a sample invoice as a PDF.
>
> Follow this guide: https://blossom88.com/deploy/carbone/

[Install the Blossom CLI and skill](https://docs.blossom88.com/learn/getting-started/install/) on your agent's machine and [choose a Location in your cloud account](https://docs.blossom88.com/learn/getting-started/choose-your-cloud/#connect-your-provider).

## Have Ready

- **Community edition terms** (Required): Community Edition covers internal use. Its license restricts offering hosted document generation to third parties.

## How It Runs

| Part | Role | Where |
|---|---|---|
| Carbone Community | Render PDFs from document templates and JSON | Private Persistent Service with LibreOffice |
| Volume | Keep templates available through app updates | Mounted at /app/template |

## Deploy Carbone

Deploy the full Community image so Carbone can convert a document template
to PDF with LibreOffice. Keep the endpoint behind Blossom Account access.
We tested this on [Blossom](https://docs.blossom88.com/learn/getting-started/choose-your-cloud/#connect-your-provider).

<details class="optional-reading" markdown="1">
<summary>Deployment details</summary>

Use the official [full Carbone image](https://carbone.io/documentation/developer/self-hosted-deployment/deploy-with-docker.html)
with LibreOffice. Set `CARBONE_DISABLE_CHROME=true` for this OpenDocument
template. Keep the endpoint protected and use a
[Persistent Service Volume](https://docs.blossom88.com/docs/apps/persistent-services/)
at `/app/template` for reusable templates.

The [On-Premise License](https://carbone.io/company/on-premise-license.html)
covers the free Community edition, including internal use and limits on
offering document generation as a hosted service.

    blossom service:create --data carbone.yml
    blossom environment:deploy --id environment-100 --follow

For one-off renders, the [render API](https://carbone.io/documentation/developer/http-api/generate-reports.html)
can accept an inline template and return the PDF directly.

</details>

## Store a Sample Template

Upload an OpenDocument template with fields for the invoice number,
customer and total. Save the template ID for the next step.

> **Ask your AI agent:** Upload a sample invoice template and give me its template ID.

> Follow this guide: https://blossom88.com/deploy/carbone/



## Render an Invoice

Send sample values as JSON with that template ID and download the PDF.

> **Ask your AI agent:** Use the stored template to generate a PDF with mock invoice details.

> Follow this guide: https://blossom88.com/deploy/carbone/



## Reuse the Template

After an update, render another invoice from the same stored template with
a new invoice number and total.

> **Ask your AI agent:** Use the same template to create another invoice with new sample values.

> Follow this guide: https://blossom88.com/deploy/carbone/



## What You Get

- A private service for generating documents
- An invoice template you can reuse with new JSON data
- A downloadable PDF

Tested on Blossom: The same stored template rendered a new invoice after Container replacement.
