This Valentine’s Day, we are kicking off a fun, easy API challenge that everyone from all technical backgrounds and levels can enjoy! Participate in the Symbl.ai Sentiment Analysis Challenge throughout the month of February for your chance to win a limited Valentine’s themed Darth Vader or Yoda POP Funko.

We’re challenging you to take a verse from your favorite love song and generate the sentiment from it — should take less than 5 minutes. To participate in the challenge, follow the instructions below. We have provided two options of ways you can complete the challenge, both equally fast and simple:

  1. Using Node.js, or
  2. Using Postman

Option #1 – Process sentiments using Node.js

Step 1 – Sign in to your Symbl.ai account OR sign up HERE (it’s free)

Step 2 – Install Node.js on your machine: https://nodejs.org/en/download/ (skip if already installed).

Step 3 – Create a new folder on your device and paste the sentiment script and package.json file in it. Access HERE

Step 4 – Create a .txt file with a verse from your favorite love song and save it in the same folder as the one you created above.

Step 5 – Open the terminal application on your machine and move to the folder in which you have pasted the script.

Step 6 – Grab both your `appId` and your `appSecret` from your Symbl.ai account and insert it in the script.

Step 7 – Run the script using “node script_name.js filename.txt” command.

Step 8 – Tweet a screenshot to @symbldotai or post on LinkedIn tagging Symbl.ai of the sentiment you generated from the song verse with the hashtags #BuildWithSymbl #SymblChallenge

Option #2 – Process Sentiments using Postman

Step 1 – Sign in to your Symbl.ai account OR sign up HERE (it’s free).

Step 2 – Open up Postman on your browser/device and download the Symbl.ai API collection or explore the public workspace online in Postman.

Step 3. Grab both your `appId` and your `appSecret` from your Symbl.ai account to authenticate with Postman.

Step 4. Google your favorite love song and copy the verse of your choice, paste it in any line break tool. https://www.textfixer.com/tools/remove-line-breaks.php (We’ll need to get rid of the paragraph breaks)

Step 5. On Postman, once you’ve received your authentication token (Step 3), navigate to the Async APIs and find the Text API. Copy and paste the JSON below into the Body of the request.

{
   "name": "Song Lyrics",
   "messages": [
     {
       "payload": {
         "content": "<song lyrics go here>",
         "contentType": "text/plain"
       }
     }
   ]
}

Copy and paste your song verse in the JSON where it says song lyrics go here

{
   "name": "Song Lyrics",
   "messages": [
     {
       "payload": {
         "content": "Baby it's you You're the one I love You're the one I need You're the only one I see Come on baby it's you You're the one that gives your all You're the one I can always call When I need to make everything stop Finally you put my love on top",
         "contentType": "text/plain"
       }
     }
   ]
}

Step 6. Hit send to make the POST request and receive your conversationID

Step 7. Copy your conversationID and navigate to the Conversation APIs to find the Messages (Transcript) API. Make a simple REST endpoint call to

‘GET https://api.symbl.ai/v1/conversations/{conversationID}/messages?sentiment=true

Step 8 – Tweet a screenshot to @symbldotai or post on LinkedIn tagging Symbl.ai of the sentiment you generated from the song verse with the hashtags #BuildWithSymbl #SymblChallenge

Tweets/posts must be posted by March 14 to qualify.

**We will randomly select four winners on March 15, 2022.

Best of luck, and many thanks in advance to those participating and helping us constantly improve our APIs. Feel free to leave us your feedback once you have completed, we’d love to hear your thoughts!

Additional Resources:

Avatar photo
Deva DeDios
Sr. Developer Marketing Manager