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

The "List Prompt Templates" operation of the h2oGPTe node retrieves a list of existing prompt templates from the connected AI-powered system. Prompt templates are predefined text structures used to guide or customize interactions with large language models (LLMs) within the platform. This operation is useful for users who want to browse, filter, and sort available prompt templates to select or manage them in their workflows.

Typical use cases include:

  • Fetching prompt templates to display in a UI for selection.
  • Filtering prompt templates by type or other criteria before applying them.
  • Sorting prompt templates by update time, name, or other attributes.
  • Paginating through prompt templates when many exist.

For example, a user might list all user-created prompt templates sorted by name ascending, or retrieve only system default templates updated recently.

Properties

Name Meaning
Additional Options A collection of optional parameters to control filtering, sorting, pagination, and template type.

Details of Additional Options:

Name Meaning
Ascending Boolean; if true, results are sorted by the specified sort column in ascending order.
Filter String; a filter string applied to some columns of prompt templates to narrow down results.
Limit Number; maximum number of prompt templates to return (minimum 1).
Offset Number; how many prompt templates to skip before starting to return results (for pagination).
Sort Column Option; the column to sort results by. Possible values: Description, Is Default, Lang, Name, Updated At, User Count, Username. Default is "updated_at".
Template Type Option; filter by template type. Possible values: All, User, System. Default is "all".

Output

The output JSON contains an array of prompt templates matching the query parameters. Each prompt template object typically includes attributes such as its unique identifier, name, description, language code, whether it is a default template, user count, username of the creator, and timestamps like last updated.

The node does not output binary data for this operation.

Dependencies

  • Requires connection credentials to the h2oGPTe API endpoint, including a valid API key credential.
  • The base URL for API requests is derived from the provided credentials.
  • The node sends HTTP GET requests to the /prompt_templates endpoint with query parameters based on input properties.

Troubleshooting

  • Empty Results: If no prompt templates are returned, verify that the filter criteria are correct and that the user has access permissions.
  • Authentication Errors: Ensure the API key credential is valid and has sufficient permissions to list prompt templates.
  • Invalid Parameter Values: Check that numeric values like limit and offset are within allowed ranges (limit ≥ 1).
  • API Endpoint Issues: Confirm the base URL is correctly configured without trailing slashes and the server is reachable.

Links and References


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

Discussion