Skip to content

AISentiment Node

The AISentiment node allows users to analyze the emotional tone of a given piece of text using AI. It categorizes the sentiment as Positive, Neutral, or Negative, and returns associated confidence and strength scores.

🧠 Purpose

This node is designed to help workflows that require automated understanding of user input, customer feedback, or textual analysis, providing a structured JSON result indicating the sentiment classification.

🛠️ Configuration

The AISentiment node uses a modal form to collect inputs from the user. The input text is submitted to an AI service (such as OpenAI) with a specific prompt and schema, ensuring strict JSON compliance for integration with subsequent nodes.

📥 Inputs

Field LabelTypeRequiredDescription
User InputText✅ YesThe string of text to analyze for sentiment.
Save to Variable NameText✅ YesName of the variable in which the result (JSON object) will be stored.
ServiceAccount-OpenAIText✅ Yes (internal)The identifier for the OpenAI service account used for API access. (Automatically resolved from system accounts)

📤 Outputs

OutputDescription
statusReturnThe detected sentiment category: Positive, Neutral, or Negative.
taskMessageReturns "AI Sentiment Completed" if successful, otherwise an error message.
Variable OutputThe full JSON result is stored in the variable defined by Save to Variable Name, structured as:
json
{
  "sentiment": "Positive",
  "strength": 0.85,
  "confidence": 0.92
}

Tentech 2024