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 creates a job to delete one or more chat sessions by their IDs. It is useful in scenarios where you want to programmatically remove chat session data from the system, for example, to clean up old or irrelevant chat histories, comply with data retention policies, or manage storage space.

Practical examples:

  • Automatically deleting chat sessions older than a certain date.
  • Removing chat sessions related to a specific project or user.
  • Batch deletion of multiple chat sessions as part of maintenance workflows.

Properties

Name Meaning
Session IDs IDs of chat sessions to be deleted (string, required). Multiple IDs can be provided as a string, typically comma-separated or JSON array depending on API expectations.

Output

The output will contain the full HTTP response from the API call that creates the delete job for the specified chat sessions. The json field will include details about the job created, such as its ID, status, and any relevant metadata returned by the server.

If the node supports binary data output, it is not applicable here since this operation deals with job creation and management via JSON payloads.

Dependencies

  • Requires an API key credential for authentication to the backend service.
  • The base URL for API requests is configured via credentials.
  • The node sends a POST request to the /chats/delete_job endpoint with the session IDs in the request body.

Troubleshooting

  • Missing or invalid Session IDs: Ensure that the Session IDs property is provided and correctly formatted. The API requires valid session identifiers.
  • Authentication errors: Verify that the API key credential is correctly set up and has permissions to create delete jobs.
  • API endpoint errors: If the server returns errors, check if the session IDs exist and are accessible by the authenticated user.
  • Timeouts or network issues: Network connectivity problems may cause failures; ensure stable connection and correct API URL configuration.

Links and References

  • Refer to the API documentation of the chat service for details on the /chats/delete_job endpoint and job management.
  • Consult n8n documentation on how to configure API key credentials and use HTTP request nodes for similar operations.

Discussion