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 collection reference from an existing chat session. It is useful when you want to disassociate or unlink a specific collection from a chat session, effectively removing the context or data grouping that the collection provided within that chat. This can be beneficial in scenarios where the chat session should no longer be tied to certain document collections or when cleaning up references after a collection is deprecated or deleted.

Practical example:
If you have a chat session that was initially linked to a collection of documents for answering questions, but later you want to remove that association (perhaps because the collection is outdated or irrelevant), this operation will remove that link without deleting the chat session itself.

Properties

Name Meaning
Session ID The unique identifier of the chat session from which the collection reference will be removed.

Output

The output of this operation typically includes the full HTTP response returned by the API call that deletes the collection reference from the chat session. The json output field will contain the server's response confirming the removal action. There is no binary data output for this operation.

Dependencies

  • Requires an API key credential for authentication with the external service.
  • The node sends an HTTP DELETE request to the endpoint /chats/{session_id}/collection.
  • The base URL and headers are configured via credentials and node settings.

Troubleshooting

  • Common issues:

    • Invalid or missing Session ID: The operation requires a valid chat session ID; if it is missing or incorrect, the API will return an error.
    • Authentication failure: Ensure the API key credential is correctly configured and has permissions to modify chat sessions.
    • Network or timeout errors: If the request times out or network issues occur, verify connectivity and increase timeout settings if necessary.
  • Error messages:

    • "Chat session not found": Indicates the provided session ID does not exist.
    • "Unauthorized" or "Authentication failed": Check API key credentials.
    • "Method Not Allowed" or "Invalid operation": Confirm that the operation is supported on the current API version.

Links and References

  • Refer to the official API documentation of the chat service for details on the endpoint: DELETE /chats/{session_id}/collection
  • n8n documentation on how to configure API key credentials and HTTP request nodes.

Discussion