Actions22
- Content Plan Actions
- Document Actions
- Generation Actions
- Language Actions
- Tool Actions
- Business Route Actions
Business Route → Create Document From Template
AI-generatedOverview
This node operation allows users to create a document from a predefined template using the Nichesss API. It supports sending template variables either as structured fields or raw JSON, and optionally waits for the document generation to complete by polling the queue. Users can customize the language and formality of the generated text, provide a webhook URL to receive the generated content, and control polling behavior such as interval and maximum attempts. This operation is useful for automating document creation workflows where templates are used, such as generating reports, marketing materials, or business documents dynamically based on input data.
Use Case Examples
- Generating a marketing brochure by filling a template with product details.
- Creating a business report by providing data fields to a predefined template.
- Automating the creation of personalized letters or contracts using template variables.
Properties
| Name | Meaning |
|---|---|
| JSON Parameters | Whether to send the request body as raw JSON instead of structured fields. |
| Template ID | The identifier of the template to use for document creation. |
| Template Fields | Key-value pairs representing the variables required by the chosen template, including their data types (string, number, boolean, JSON). |
| Webhook URL | Optional URL to receive the generated text via webhook. |
| Language | Overrides for language and formality settings for the generated text, including language ID and formality level. |
| Content (JSON) | Raw JSON string representing the entire request body when JSON Parameters is true. |
| Wait For Result | Whether to poll the queue until the document generation is complete. |
| Poll Interval | Seconds to wait between each poll attempt when waiting for the result. |
| Max Poll Attempts | Maximum number of polling attempts before giving up. |
| Return | Determines what data to return after waiting: either the full queue response or just the generated content entries. |
| Include Initial Response | Whether to include the initial push-to-queue response in the output when waiting for the result and returning the queue response. |
Output
JSON
id- The unique identifier of the created document or queue entry.status- The current status of the document generation process.content- The generated content entries of the document, if available.queueResponse- The full response from the queue when waiting for the document generation to complete.
Dependencies
- Nichesss API key credential
Troubleshooting
- Ensure the Template ID is valid and accessible; invalid IDs will cause errors.
- If using JSON Parameters, ensure the JSON content is correctly formatted and includes all required fields.
- When waiting for the result, network issues or long processing times may cause polling to fail or timeout; adjust poll interval and max attempts accordingly.
- If the webhook URL is provided, ensure it is reachable and correctly configured to receive POST requests.