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 deletes a Prompt Template identified by its unique ID. It is useful in scenarios where you want to remove obsolete, incorrect, or no longer needed prompt templates from your system to keep the prompt template list clean and relevant.

Practical examples:

  • Removing a prompt template that was created for a temporary use case.
  • Deleting outdated prompt templates after updating your AI assistant's prompts.
  • Cleaning up unused prompt templates to maintain an organized environment.

Properties

Name Meaning
Prompt Template ID The unique identifier of the prompt template to delete. This is a required string input.

Output

The output of this operation typically contains the full HTTP response from the API call that deletes the prompt template. This includes status information indicating whether the deletion was successful. The json output field will contain the response body, which may be empty or include confirmation details depending on the API implementation.

No binary data is expected from this operation.

Dependencies

  • Requires an API key credential for authentication with the external service.
  • The node sends an HTTP DELETE request to the endpoint /prompt_templates/{prompt_template_id}.
  • The base URL for the API is configured via credentials and must be set correctly.
  • Proper permissions are required to delete prompt templates on the server.

Troubleshooting

  • Common issues:

    • Providing an invalid or non-existent Prompt Template ID will result in an error.
    • Insufficient permissions or invalid API credentials can cause authorization failures.
    • Network connectivity issues may prevent the request from completing.
  • Common error messages:

    • 404 Not Found: The specified prompt template ID does not exist. Verify the ID.
    • 401 Unauthorized or 403 Forbidden: Authentication failed or user lacks permission. Check API key and user rights.
    • Timeout errors: Increase timeout settings or check network stability.
  • Resolution tips:

    • Double-check the Prompt Template ID input.
    • Ensure the API key credential is valid and has necessary permissions.
    • Confirm network access to the API endpoint.
    • Adjust timeout options if available.

Links and References

  • Refer to the API documentation of the service managing prompt templates for detailed information on the delete operation.
  • Consult n8n documentation on configuring API credentials and HTTP request nodes for best practices.

Discussion