TemplateTo icon

TemplateTo

Powerful Template Based Document Generation

Actions6

Overview

This node integrates with a template-based document generation service, focusing on rendering templates as plain text (TXT) documents. Specifically, the "Txt Renderer" resource with the "Render as TXT" operation allows users to convert predefined templates into TXT format outputs.

Common scenarios for this node include:

  • Generating plain text reports or documents from dynamic data using templates.
  • Automating the creation of textual content such as letters, logs, or summaries based on templates.
  • Exporting template-rendered content in TXT format for further processing or storage.

For example, a user might select a specific template representing an invoice layout and render it as a TXT file to send via email or save in a text archive.

Properties

Name Meaning
Template The template to be rendered. Users select from available templates loaded dynamically.

The "Template" property is required and offers options loaded via a method that fetches available templates from the connected service.

Output

The node outputs JSON data representing the rendered TXT content. Depending on the operation chosen:

  • For "Render as TXT Byte Array": The output contains the template rendered as a byte array representing the TXT file content.
  • For "Render as TXT": The output contains the rendered TXT content in a standard string format.

The output is returned as a JSON array where each item corresponds to one input item processed, containing the rendered TXT data.

Dependencies

  • Requires an API key credential for authenticating with the external template rendering service.
  • The node communicates with the service's REST API at https://api.templateto.com.
  • The "Template" options are dynamically loaded from the service via an API call.

Troubleshooting

  • Common issues:

    • Invalid or missing API credentials will cause authentication failures.
    • Selecting a non-existent or deleted template ID will result in errors from the API.
    • Network connectivity problems can prevent successful API requests.
  • Error messages:

    • Authentication errors typically indicate invalid or expired API keys; verify and update credentials.
    • "Template not found" errors suggest the selected template ID does not exist; refresh the template list.
    • Timeout or connection errors require checking network access and service availability.

Links and References

Discussion