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 you to change the vote value of a specific chat message within a chat system. It is useful in scenarios where users or administrators want to update the voting score (such as upvotes or downvotes) on messages generated by an AI language model or other participants in a chat session. For example, if a user finds an AI-generated response helpful or unhelpful, they can adjust the vote count accordingly to reflect feedback or quality assessment.

Properties

Name Meaning
Message ID The unique identifier of the chat message whose vote value you want to change.
Votes The exact numeric value to set for the vote count of the specified chat message.

Output

The output will contain the full HTTP response from the API endpoint that updates the vote value of the chat message. This typically includes confirmation of the update and the updated message data in JSON format. The node does not output binary data.

Dependencies

  • Requires an API key credential for authentication with the backend service.
  • The node sends a PUT request to the endpoint /messages/{message_id}/votes with the new vote value in the request body.
  • The base URL for the API is configured via credentials and is appended with /api/v1.

Troubleshooting

  • Invalid Message ID: If the provided Message ID does not exist or is incorrect, the API may return a 404 error. Verify the Message ID is correct.
  • Authentication Errors: Missing or invalid API key credentials will cause authentication failures. Ensure valid credentials are configured.
  • Invalid Vote Value: Providing a non-numeric or out-of-range vote value might result in validation errors. Use integer values appropriate for the system.
  • Network Issues: Connectivity problems to the API server will cause request failures. Check network access and API server status.

Links and References

  • No direct external links available from the source code.
  • Refer to your chat system's API documentation for details on message voting endpoints and expected payloads.

Discussion