Overview
This node retrieves a specific prompt from the InteractiveAI Prompt Management system by its name and deployment label. It is useful when you want to dynamically fetch prompt configurations or templates stored in InteractiveAI for use in workflows, such as generating content, automating responses, or integrating AI-driven prompts into your processes.
For example, you might use this node to:
- Fetch a predefined prompt template named "WelcomeMessage" deployed under the "production" label to send personalized greetings.
- Retrieve different versions of prompts by specifying different deployment labels like "staging" or "testing" for development and testing purposes.
Properties
| Name | Meaning |
|---|---|
| Prompt Name | The exact name of the prompt to retrieve from InteractiveAI. |
| Prompt Label | The deployment label of the prompt version to retrieve. Common values include "production". |
Output
The node outputs JSON data representing the retrieved prompt object from InteractiveAI. This typically includes all details of the prompt such as its content, metadata, and configuration as stored in the InteractiveAI system.
No binary data output is produced by this node.
Dependencies
- Requires an API key credential for authenticating with the InteractiveAI service.
- Needs the base URL of the InteractiveAI API configured in the credentials.
- The node makes a GET request to the endpoint
/api/public/v2/prompts/{promptName}with a query parameterlabelspecifying the deployment label.
Troubleshooting
- Prompt Not Found: If the specified prompt name does not exist, the node will likely return a 404 error. Verify the prompt name spelling and existence in InteractiveAI.
- Authentication Errors: Missing or invalid API credentials will cause authentication failures. Ensure the API key and host URL are correctly set in the node credentials.
- Incorrect Deployment Label: Using a non-existent or misspelled deployment label may result in no prompt being returned or errors. Confirm the label value matches one deployed in InteractiveAI.
- Network Issues: Connectivity problems to the InteractiveAI API endpoint can cause timeouts or connection errors. Check network access and firewall settings.
Links and References
- InteractiveAI Documentation (replace with actual URL)
- REST API Reference for Prompts:
/api/public/v2/prompts/{promptName}endpoint details in InteractiveAI API docs