Actions18
- Content Plan Actions
- Document Actions
- Tool Actions
Overview
The "Create Document Using Template" operation in the Nichesss n8n node allows users to generate a new document based on a specified template. This is particularly useful for automating content creation workflows where documents need to be generated with consistent structure but dynamic content, such as reports, articles, or marketing materials. For example, you could use this node to automatically create blog posts or product descriptions by providing different input data while reusing a predefined template.
Properties
| Name | Type | Meaning |
|---|---|---|
| Content | String | The JSON string containing all necessary information for document creation. This includes the template ID, title, description, topic, outline items, webhook URL, and language preferences. The structure must match the expected template. |
Example value for Content:
{
"template_id": "nSw3cz9E3",
"title": "The Beauty of Jamaica",
"about": "The beautiful things Jamaica has to offer for tourists and locals.",
"TOPIC": "Swimming and other activities in Jamaica",
"OUTLINE_ITEM_1": "Jamaica's beaches",
"OUTLINE_ITEM_2": "Jamaica's nature trails",
"OUTLINE_ITEM_3": "Jamaica's waterfalls and hiking trails",
"webhook_url": "https://a-cool-webhook.com",
"language": {
"ID": "deepl_PT-BR",
"formality": "more"
}
}
Output
- The node outputs a
jsonfield containing the response from the Nichesss API after creating the document. - The structure of the output will typically include details about the created document, such as its ID, status, and any relevant metadata returned by the API.
- If the API supports it, binary data (such as the generated document file) may also be included, but this depends on the specific API response.
Dependencies
- External Service: Requires access to the Nichesss.com API.
- Credentials: May require an API key or credentials configured in n8n under the name
nichesssApi. - Environment: No special environment variables are mentioned, but network access to https://nichesss.com/api is required.
Troubleshooting
- Invalid Content Format: If the
Contentproperty is not a valid JSON string or does not match the expected structure, the API may return an error. Ensure your input matches the required format. - Missing Required Fields: Omitting required fields like
template_idortitlecan result in errors from the API. - Authentication Errors: If credentials are missing or incorrect, you may receive authentication or authorization errors.
- API Connectivity Issues: Network problems or incorrect base URL configuration can cause connection failures.