This is a function that runs on the Serverless framework with AWS Lambda. The function is invoked by an event generated by Box Skills, and uses Clarifai to generate potential image categories.
The purpose of this app is to demonstrate:
- A Serverless deployment of a simple application
- A live example of the Node.JS code required to both read and write to a file from Box based on an event generated by Box Skills
- Using the skills-kit-2.0 library in a live application
- Using a common third-party AI provider in Clarifai
Assuming that the prerequisites are filled, follow these steps in order:
- Follow steps 1-3 at Build a Box Skill
- Clone this repository to a local directory
- Run
npm install
- Register for Clarifai
- Create a config file with the key "clarifaiKey" and fill in the API key from Clarifai's website
- Deploy the function to Serverless with
serverless deploy -v
- Trigger the skill by uploading an image into your folder of choice, configured during step 1.