{
  "title": "Sentiment Analysis",
  "video_id": "HBxqzhhOtG0",
  "published": "2023-10-12T11:24:54+0000",
  "complexity": "Easy",
  "old_url": "https://workflows-of-ai.com/workflow/sentiment-analysis",
  "description": "Rate the sentiment of reviews on a 1 to 5 scale in Drupal with a list field and the AI Interpolator OpenAI module.",
  "subtitle": "Let OpenAI read a review and set a 1 to 5 rating field on its own, in under five minutes of setup.",
  "summary": "A list (integer) field holds the rating, with labels from worst to great for the values 1 to 5. The AI Interpolator reads the article text with GPT-3.5 and picks a value whenever the field is empty. A Gollum review gets bad and Zelda: Ocarina of Time gets great, and the stored ratings can be filtered in Views or used over an API.",
  "categories": [
    "Drupal AI"
  ],
  "intro_html": "<p>Having developed the AI Interpolator OpenAI module, I wanted to ensure that tasks such as sentiment analysis are intuitive and user-friendly. In this specific case, the implementation process is streamlined; a user merely needs to incorporate an HTML text field where the raw textual content will be inputted. Adjacently, a ratings field is added, which is designed to display the analyzed sentiment score post-processing. The integration is straightforward, void of complexities, enabling users to set it up in less than five minutes.</p><p>When a user inputs text into the HTML field, the intricately designed algorithms of the OpenAI module are invoked, meticulously examining and evaluating the sentiment embedded in the text. The module parses the nuances, context, and lexical choices within the content, deducing the prevailing emotion or sentiment. This processed sentiment score or category is then instantaneously populated in the ratings field, offering users immediate, actionable insights without delay. Every element and line of code is meticulously optimized for speed and accuracy, ensuring an efficient and responsive user experience.</p>",
  "intro_added": false,
  "chapters": [
    "0:00 Why rate reviews with AI",
    "2:01 Adding the rating list field",
    "2:49 The sentiment prompt",
    "4:18 Rating Gollum and Zelda",
    "4:57 Using ratings in views and APIs"
  ],
  "corrections": [
    [
      "Markus",
      "Marcus"
    ],
    [
      "zelog Arena of time",
      "Zelda: Ocarina of Time"
    ],
    [
      "golum",
      "Gollum"
    ],
    [
      "gbd3 five",
      "GPT-3.5"
    ],
    [
      "graph kill",
      "GraphQL"
    ],
    [
      "Json API",
      "JSON:API"
    ],
    [
      "druple",
      "Drupal"
    ],
    [
      "workflows of ai.com",
      "workflows-of-ai.com"
    ]
  ],
  "ai_note": "The video and the introduction are Marcus's own, first published on workflows-of-ai.com. AI wrote the subtitle, the summary and the video chapters from the transcript, and corrected misheard names in YouTube's automatic captions."
}