Skip to main content

OpenAI

Introduction

The WeHub Dashboard offers a variety of plugins to enhance and automate your workflows. These plugins are categorized into Triggers, Processors, and Apps. This documentation provides an overview of the "OpenAI" plugin, which falls under the Processors category.

OpenAI Plugin

The "OpenAI" plugin allows seamless interaction with OpenAI's models for tasks like text generation, summarization, and classification. This plugin provides three actions: Generation, Summarization, and Classification. Below are the configuration requirements for each action.


Actions

1. Generation (Processor)

Generate creative or informative text using OpenAI's models.

Configurations:

  1. Label (String): A descriptive label to identify this action within your workflow.
  2. Input API Key (String): Provide your OpenAI API key.
  3. Select Model Type (Dropdown): Choose the model type (e.g., GPT-3, GPT-4).
  4. Input Temperature (Number): Set the creativity level (0 to 2). Higher values produce more creative responses.
  5. Input Max Token (Dropdown): Choose the maximum token length for the output.
    • Short: 0-100 tokens.
    • Medium: 100-200 tokens.
    • Long: 200-500 tokens.

2. Summarization (Processor)

Summarize long text into concise summaries using OpenAI's models.

Configurations:

  1. Label (String): A descriptive label to identify this action within your workflow.
  2. Input API Key (String): Provide your OpenAI API key.
  3. Select Model Type (Dropdown): Choose the model type (e.g., GPT-3, GPT-4).
  4. Input Temperature (Number): Set the creativity level (0 to 2). Higher values produce more diverse summaries.
  5. Input Max Token (Dropdown): Choose the maximum token length for the summary.
    • Short: 0-100 tokens.
    • Medium: 100-200 tokens.
    • Long: 200-500 tokens.

3. Classification (Processor)

Classify text into predefined categories using OpenAI's models.

Configurations:

  1. Label (String): A descriptive label to identify this action within your workflow.
  2. Input API Key (String): Provide your OpenAI API key.
  3. Select Model Type (Dropdown): Choose the model type (e.g., GPT-3, GPT-4).
  4. Input Temperature (Number): Set the creativity level (0 to 2). Higher values produce more diverse responses.
  5. Input Max Token (Dropdown): Choose the maximum token length for the output.
    • Short: 0-100 tokens.
    • Medium: 100-200 tokens.
    • Long: 200-500 tokens.
  6. Input Categories (String): Specify the categories for classification.

Configuration Tables

Common Fields for All Actions

FieldTypeDescription
LabelStringDescriptive label for identifying the action.
Input API KeyStringProvide your OpenAI API key.
Select Model TypeDropdownChoose the model type (e.g., GPT-3, GPT-4).
Input TemperatureNumberSet creativity level (0 to 2).
Input Max TokenDropdownChoose the maximum token length (Short, Medium, Long).

Additional Field for Classification Action

FieldTypeDescription
Input CategoriesStringSpecify the categories for classification.

Example Configurations

Generation Action

FieldValue
LabelGenerate Email Content
Input API Keysk-****************************
Select Model TypeGPT-4
Input Temperature1.0
Input Max TokenMedium

Summarization Action

FieldValue
LabelSummarize Report
Input API Keysk-****************************
Select Model TypeGPT-3.5
Input Temperature0.7
Input Max TokenLong

Classification Action

FieldValue
LabelClassify Feedback
Input API Keysk-****************************
Select Model TypeGPT-4
Input Temperature0.5
Input Max TokenShort
Input CategoriesPositive, Neutral, Negative

Conclusion

The OpenAI plugin in the WeHub Dashboard provides advanced AI capabilities for text generation, summarization, and classification. Its flexible configurations make it a powerful tool for integrating AI into your workflows.

If you have any further questions or need additional assistance, please refer to the WeHub Dashboard support documentation or contact our support team.