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 updates the prompt template reference of an existing chat session. It allows users to change which prompt template is associated with a specific chat session by specifying the session ID and optionally providing a new prompt template ID. This is useful in scenarios where you want to modify the behavior or context of an ongoing chat session by switching its prompt template, for example, to adjust the style or focus of AI responses.

Practical examples:

  • Updating the prompt template of a customer support chat session to use a more formal tone.
  • Switching the prompt template in a research chat session to include additional context or instructions.
  • Dynamically changing the prompt template based on user input or workflow conditions.

Properties

Name Meaning
Session ID The unique identifier of the chat session to update.
Additional Options A collection of optional parameters:
  Prompt Template ID The ID of the new prompt template to associate with the chat session.

Output

The output contains the full HTTP response from the API call that updates the prompt template reference of the chat session. The json field will typically include details about the updated chat session or confirmation of the update operation. No binary data is involved.

Dependencies

  • Requires an API key credential for authentication to the backend service.
  • The node sends a PUT request to the endpoint /chats/{session_id}/prompt_template with JSON body containing the new prompt template ID if provided.
  • The base URL and headers are configured via credentials and node settings.

Troubleshooting

  • Missing or invalid Session ID: The operation requires a valid session ID. Ensure the session ID is correct and exists.
  • Invalid Prompt Template ID: If provided, the prompt template ID must be valid and accessible. Otherwise, the update may fail.
  • Authentication errors: Verify that the API key credential is correctly configured and has permissions to update chat sessions.
  • Network or timeout issues: Check connectivity to the API endpoint and consider increasing timeout settings if necessary.
  • API errors: Review error messages returned by the API for details such as permission denied, resource not found, or validation errors.

Links and References

  • Chat Session API Documentation (example link, replace with actual)
  • General information on prompt templates and chat sessions in the H2O GPT platform documentation.

This summary is based solely on static analysis of the provided source code and property definitions.

Discussion