Actions74
- ai Actions
- array Actions
- audiovideo Actions
- carbone Actions
- charts Actions
- code Actions
- data Actions
- datetime Actions
- events Actions
- files Actions
- geo Actions
- hellospaces Actions
- images Actions
- Get Metadata of an Image
- Scale an Image
- Overlay an Image on another Image
- Scale an Image to Fit Given Dimensions
- Resize an Image
- Mask an Image with Another Image
- Mask an Image with a Circle Mask
- Crops an image by the given x, y, width and height paramters.
- Convert Texts to an Image
- Convert HTML String or URL to an Image
- Generates a QRCode with given text and color.
- Get EXIF from Image
- Remove EXIF from Image
- Modify Image EXIF
- playground Actions
- spreadsheet Actions
- stripe Actions
- youtube Actions
carbone → Render Carbone Cloud Template
AI-generatedOverview
The Render Carbone Cloud Template operation in the "carbone" resource allows you to generate documents by rendering a template stored on carbone.io with your provided data. This is useful for automating the creation of reports, invoices, certificates, or any document where a predefined layout needs to be filled with dynamic content.
Common scenarios:
- Generating PDF invoices from order data.
- Creating personalized certificates for event attendees.
- Producing custom reports in various formats (PDF, DOCX, CSV, etc.) based on user input or database records.
Practical example:
You have a template for an invoice stored on carbone.io. By providing the template ID and customer/order data, this node will return a filled-in invoice as a PDF or other supported format.
Properties
| Name | Meaning |
|---|---|
| API Key | Your carbone.io API Key. Required to authenticate requests to the Carbone Cloud service. |
| Template ID | The unique identifier of your template stored on carbone.io. |
| Data | The JSON data object used to fill placeholders in your template. Either this or a stringified version must be provided. |
| Output Format | The desired output file format for the rendered document. Options: csv, docx, ods, odt, pdf, txt, xslx. Defaults to pdf if not specified. |
| Binary Property | The name of the binary property under which the resulting file will be available in n8n. Default is "data". |
Output
- Binary Data:
The node outputs the rendered document as binary data under the property name specified in "Binary Property" (default:data).- The binary field contains the generated file (e.g., PDF, DOCX).
- The original JSON data is preserved in the output's
jsonfield. - If there was already binary data present, it is retained alongside the new output.
Example output structure:
{
"json": { /* original item data */ },
"binary": {
"data": {
"data": "<base64-encoded file>",
"fileName": "output.pdf",
"mimeType": "application/pdf"
}
},
"pairedItem": { "item": 0 }
}
- If an error occurs and "Continue On Fail" is enabled, the
jsonfield will contain anerrorproperty with details.
Dependencies
- External Service: Requires access to carbone.io and a valid API key.
- n8n Credentials: You must configure the "1001fxApi" credential in n8n with your API key.
- Environment: No additional environment variables are required beyond standard n8n setup.
Troubleshooting
Common issues:
Invalid API Key:
Error message:"error": "Unauthorized"
Solution: Ensure your API Key is correct and has sufficient permissions.Template Not Found:
Error message:"error": "Template not found"
Solution: Double-check the Template ID; ensure the template exists in your carbone.io account.Malformed Data:
Error message:"error": "Invalid data format"
Solution: Make sure the "Data" property is valid JSON and matches the placeholders in your template.Output Format Issues:
Error message:"error": "Unsupported output format"
Solution: Use one of the supported formats: csv, docx, ods, odt, pdf, txt, xslx.Binary Property Name Conflicts:
If the specified binary property name already exists, it may overwrite previous data. Choose unique names if needed.