#AbstractAI reduces back-end costs using Serverless Framework


AbstractAI (Abstract), based in Los Angeles, develops software and services to enable users to get the results they need faster.
Conversational Interfaces (CI) are among the types of software that Abstract develops with less emphasis on conversation and more emphasis on CI's inherent light weight platform.

Abstract partnered with Brainitch, a Los Angeles-based startup that offers personalized, 1-to-1 marketing to artists on Facebook Messenger and related platforms. Brainitch’s client in this case was Laidback Luke (LBL), an electronic music artist based in the Netherlands. AbstractAI and Brainitch were collaborating to offer a bot for LBL's birthday bash, which he was throwing in NYC and Amsterdam. LBL wanted to build a bot that would ask recipients trivia questions, and if the user got enough questions right, the user could attend the party.

#The Challenge

AbstractAI created DAM (Digital Asset Monitor) which was among the first 10,000 FB Messenger public bots and was also featured on Product Hunt. DAM's' architecture leveraged Heroku and Heroku's dyno product to add scalability. That same architecture supported other deployments for artists and events, but these bots had hundreds or thousands of attendees or users.

Laidback Luke has almost 2 million fans on Facebook!

Simply changing LBL's profile picture with a QR code linking to the bot caused a huge spike in traffic. Because of the myriad of APIs (a database, NLP, etc.) the bot had to call, it was clear the legacy architecture would not scale.

In response, AbstractAI engineers deployed additional Dynos to maintain an acceptable response time.

#Why Serverless

In short, Abstract chose the Serverless Framework because it abstracts Amazon Lambda and it took the Abstract team one week to develop the skills to do a production level deployment.

Using the Serverless Framework, Abstract reduced the recurring costs associated with Laidback Luke's bank-end services nearly 95%. When there are large spikes in users, the architecture will provide the needed network resources, but the user will not be charged otherwise. In short, leveraging Amazon Lambda, Serverless Framework requires payment only when network resources are used.

Unlike some frameworks, developing proficiency with Serverless Framework took only a week. There are resources available within the Serverless Framework community which taught the Abstract team how to create RESTful API's in less than ten minutes.

Finally, by providing a theoretically infinitely scalable bot at a reduced cost Abstract, developed peace of mind.


Feedback from the client was extremely positive. The bot sent and received over 100k messages in the first week and hundreds of people signed up to attend his birthday party in Amsterdam and New York.

Most importantly, the following table shows the change in monthly cost after implementing the Serverless Framework:

Cost without Serverless Framework ($/month) Cost with Serverless Framework ($/month)
$340.00 $17.00

The ability to build a model quickly with the Serverless Framework has had a positive effect on Abstract's product development methodology. Specifically, abstracting serverless deployment is a huge benefit to the developer community. For example, as mentioned above, an engineer at Abstract found a tutorial that explained how to build a RESTful API in less than ten minutes using the Serverless Framework.

Abstract's clients are interested in products that leverage both artificial intelligence and machine learning. Removing the friction associated with publishing an API, Abstract is able to concentrate on the area where Abstract creates the most value: abstracting resources and functionality . In doing so, front-end developers can focus on the design and implementation of the UI/UX.

At AbstractAI, the Serverless Framework is the backbone of proprietary methodology for developing rest API's and chatbots. In the words of Abstract's client on this engagement:

Laidback Luke’s Messenger (bot) experience was a success and Luke’s birthday bash guest lists are filled up with super fans who deserve a free show!
Todd T. - CEO of Brainitch, LLC