h2oGPTe icon

h2oGPTe

h2oGPTe is an AI-powered search assistant for your internal teams to answer questions gleaned from large volumes of documents, websites and workplace content.

Actions198

Overview

This node operation removes a prompt template reference from a specified collection in the system. It is useful when you want to disassociate or unlink a prompt template that was previously linked to a collection, effectively cleaning up or updating the collection's configuration.

Common scenarios:

  • You have a collection associated with a prompt template but want to remove this association without deleting the collection itself.
  • You are managing collections and need to update their prompt templates by first removing old references.
  • Automating workflows where prompt templates linked to collections need to be dynamically managed.

Practical example:
If you have a collection of documents used for AI-powered search and it currently uses a specific prompt template for querying, but you want to remove that prompt template reference (perhaps to assign a new one later), this operation will delete that link.

Properties

Name Meaning
Collection ID The unique identifier (ID) of the collection from which the prompt template reference will be removed. This property is required.

Output

The output of this operation is the full HTTP response returned by the API after attempting to remove the prompt template reference from the collection. Typically, this will include status information indicating success or failure of the deletion request.

  • The json field contains the parsed JSON response from the API.
  • No binary data output is expected from this operation.

Dependencies

  • Requires an API key credential for authentication to the external service.
  • The node sends an HTTP DELETE request to the endpoint /collections/{collection_id}/prompt_template.
  • The base URL and authentication headers must be configured properly in the node credentials.

Troubleshooting

  • Common issues:

    • Invalid or missing Collection ID: Ensure the Collection ID provided exists and is correct.
    • Authentication errors: Verify that the API key credential is valid and has permissions to modify collections.
    • Network or timeout errors: Check connectivity to the API endpoint and consider increasing timeout settings if necessary.
  • Error messages:

    • 404 Not Found: The specified collection does not exist or the prompt template reference is not found.
    • 401 Unauthorized: Authentication failed due to invalid or missing API key.
    • 400 Bad Request: The request parameters are invalid; verify the Collection ID format.

Links and References

  • Refer to the API documentation of the service managing collections and prompt templates for detailed information on the endpoint /collections/{collection_id}/prompt_template.
  • n8n documentation on HTTP Request node usage and credential setup for API integrations.

Discussion