Overview
This node integrates with the Genum API to manage and interact with "prompts." It allows users to retrieve prompt details or run a prompt with specific input text. Common use cases include automating prompt retrieval for further processing, or dynamically running prompts to generate responses based on user input or other data.
Practical examples:
- Fetching a specific prompt by its ID to review or modify it.
- Running a prompt with a custom question to get generated content or answers.
- Listing multiple prompts for selection or batch processing.
Properties
| Name | Meaning |
|---|---|
| Prompt | Select a prompt to run or get. Can be specified by: - ID (a numeric string) - Searchable list of available prompts fetched from Genum API |
| Productive | Boolean flag indicating whether to use the committed (stable) version of the prompt. Default is true. |
Note: The Prompt property appears only for the "Get" and "Run" operations under the "Prompt" resource.
Output
The node outputs JSON data representing the response from the Genum API:
- For Get operation: JSON object containing details of the requested prompt.
- For Get Many operation: An array of prompt objects.
- For Run operation: JSON object containing the result of running the prompt with the provided input question, including any generated output.
No binary data output is produced by this node.
Dependencies
- Requires an API key credential for authenticating with the Genum API.
- Makes HTTP requests to
https://api.genum.ai/api/v1/promptsendpoints. - The node expects the API token to be configured in n8n credentials for the Genum service.
Troubleshooting
- Invalid Prompt ID: If the prompt ID is not a number, the node will reject it due to validation rules. Ensure the ID is numeric.
- Authentication Errors: Missing or invalid API token will cause authentication failures. Verify that the API key credential is correctly set up.
- Network Issues: Connectivity problems to the Genum API endpoint can cause request failures.
- Empty or Incorrect Responses: If the prompt does not exist or the API returns unexpected data, verify the prompt ID and the "productive" flag usage.
- Continue On Fail: If enabled, the node will continue processing subsequent items even if one fails, returning error details in the output.
Links and References
- Genum API Documentation (assumed official docs URL)
- n8n documentation on Creating Custom Nodes