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 allows users to delete specific chat messages by their IDs within the "Chat" resource. It is useful in scenarios where you want to remove one or more particular messages from a chat session, such as deleting erroneous, sensitive, or outdated messages. For example, if a user accidentally sends incorrect information or wants to clear certain parts of a conversation, this operation can selectively remove those messages without affecting the entire chat session.

Properties

Name Meaning
Message IDs IDs of messages to be deleted (string)

The "Message IDs" property expects a string containing one or multiple message identifiers that specify which chat messages should be deleted.

Output

The output of this operation typically includes the full HTTP response returned by the API after attempting to delete the specified messages. This response may contain status information indicating success or failure of the deletion request. The exact structure depends on the API but generally includes confirmation of deleted message IDs or error details if the operation failed.

No binary data output is expected for this operation.

Dependencies

  • Requires an API key credential for authentication with the external service.
  • The base URL for API requests is configured via credentials and must be correctly set.
  • The node sends an HTTP DELETE request to the endpoint /messages/{message_ids}, where {message_ids} is replaced by the provided message IDs.

Troubleshooting

  • Invalid or missing message IDs: If the message IDs are not provided or incorrectly formatted, the API will likely return an error. Ensure the "Message IDs" field contains valid IDs separated appropriately if multiple.
  • Authentication errors: Missing or invalid API key credentials will cause authorization failures. Verify that the API key credential is properly configured.
  • Message not found: Attempting to delete messages that do not exist or belong to another user/session may result in errors. Confirm the message IDs are correct and accessible.
  • Timeouts or network issues: Network problems or server timeouts can cause the request to fail. Retry or check connectivity.
  • API rate limits: Excessive deletion requests might trigger rate limiting. Check API usage policies.

Links and References

  • Refer to the external API documentation for the chat message deletion endpoint for detailed response formats and error codes.
  • Consult your API provider's authentication setup guide to configure the required API key credential.

Discussion