Promptify icon

Promptify

Basic Promptify Node

Overview

This node, named "Promptify," is designed to interact with a templating API service. It allows users to select a predefined template and provide input data that fills the template's placeholders. The node then sends these inputs to the external API, which processes the template and returns generated content. This content can optionally be streamed, have a title generated, and be saved as output.

Common scenarios for this node include:

  • Automating content generation based on dynamic inputs, such as generating personalized messages, reports, or documents.
  • Using predefined templates to standardize outputs while customizing them per input data.
  • Streaming large generated content progressively rather than waiting for full completion.

Practical example:

  • A marketing automation workflow where user data is mapped into an email template to generate personalized campaign emails.
  • Generating summaries or titles dynamically from input data using AI-powered templates.

Properties

Name Meaning
Template Should Stream Boolean option to enable streaming of the template output progressively (true/false).
Generate Title Boolean option to automatically generate a title for the output content (true/false).
Save Output Boolean option to save the generated output content within the node's result (true/false).
Base Url String specifying a custom base URL for the API endpoint; if empty, defaults are used.
Templates Dropdown list of available templates loaded dynamically from the API. Required field.
Inputs Resource mapper allowing users to define or map input fields required by the selected template. Required.

Output

The node outputs an array of items, each containing a json object with a single property:

  • content: The generated content string returned from the template processing API.

Each output item corresponds to one set of inputs processed through the selected template.

If streaming is enabled, the content may be received progressively during execution but is ultimately output as a complete string.

No binary data output is produced by this node.

Dependencies

  • Requires an API key credential for authenticating with the external Promptify API service.
  • The node dynamically loads available templates and their input schemas via API calls.
  • Optional configuration of a custom base URL for the API endpoint.
  • Network connectivity to the Promptify API service.

Troubleshooting

  • Missing Required Inputs: If any required input fields for the selected template are not provided or mapped, the node throws an error listing the missing fields. Ensure all required inputs are supplied.
  • API Authentication Errors: Failure to authenticate with the API due to missing or invalid credentials will cause errors. Verify the API key credential is correctly configured.
  • Template Loading Issues: If templates fail to load, check network connectivity and API availability.
  • Streaming Issues: Enabling streaming requires stable network conditions; intermittent connections may cause incomplete data.
  • Invalid Base URL: Providing an incorrect custom base URL may lead to connection failures.

Links and References

Discussion