Icon

01 Three Steps GenAI - exercise

<p>This workflow demonstrates how <strong>a simple prompt</strong> can be used to determine the sentiment of product reviews.</p><p>The reviews are read from an Excel file, transformed into sentiment classification prompts, and sent to a connected LLM. The model returns the sentiment for each review, which is then cleaned and formatted for easier analysis.</p>

Set up the OpenAI API key, authenticate, and select the LLM

Sendthe prompt,receive the sentiment, and prepare the output for display

Read data and create the prompt which instructs an LLM

01 3 Steps GenAI - Sentiment Analysis

This workflow demonstrates how a simple prompt can be used to determine the sentiment of product reviews.

The reviews are read from an Excel file, transformed into sentiment classification prompts, and sent to a connected LLM. The model returns the sentiment for each review, which is then cleaned and formatted for easier analysis.

Authenticate

Connect to LLM

Prompt the LLM
Call the output column

"Sentiment Prediction"

Get API Key
Remove whitespacefrom the response
String Cleaner
Create prompt
Expression
Read reviews
Excel Reader
Format text for display
String Format Manager

Nodes

Extensions

Links