Skip to content

Files

Latest commit

author
dvonthenen
Apr 3, 2023
9d7b1dd · Apr 3, 2023

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Sep 28, 2022
Apr 3, 2023

Using the FollowUp Async API

This is a simple main-style sample application using Symbl's Async API. This application will post an audio file to the platform and obtain the FollowUp results when they become available.

Getting started

Open .env file and add your APP_ID, APP_SECRET, SUMMARY_EMAIL. You can get APP_ID and APP_SECRET from https://platform.symbl.ai

Most of the heavy lifting is done in the common library which you can read about its plumbing here.

Async Conversation Processing

Obtaining intelligence on FollowUps using the Async API is pretty straight forward, the steps are:

  1. Login
  2. Post the audio file and wait for the Symbl platform to process it
  3. Retrieve the FollowUps
async function main() {
  /*
    Login and get token
  */
  var token = await common.Login();

  /*
    Post the audio file to the Symbl platform
  */
  var result = await post.Post(token, "All_I_Really_Want.mp3");

  /*
    Process FollowUps for the audio file
  */
  var followUps = await intelligence.FollowUps(token, result.conversationId);
  output = JSON.parse(followUps);
  console.log(output);
}

main();