- Setup up an app - Create a Custom Skills Box application that listens for files being uploaded within the entire enterprise or one or more folders.
- Configure the
invocation_url- After creating the Custom Skills app, aninvocation_urlwill need to be configured. This URL will be called every time a new file is uploaded to Box. - Parse the event payload - When a file is uploaded, copied, or moved into a folder that the Box Skill listens to, an event payload is sent to the
invocation_url. This payload contains two Access Tokens that can be used to access the uploaded file in Box and store metadata back onto the file. - Verify Key Signatures - Before the service that handles the Skill payload does other actions, it should verify the
invocation_urlwas called by Box. See the link for examples of doing this manually or using the SDKs. - Send the file for processing - The service that handles the Skill payload sends the file URL or file content to an external service for processing. This service can be a third party machine learning system, or an in-house service.
- Store the metadata on the file - Once the processing service has extracted the metadata for the file, those insights can be stored back on the uploaded file as custom metadata.
To simplify your integration with Box Skills, a Skills
Kit has been made available to obfuscate many
complexities of the above steps. The Skills Kit is currently only available in
Node.
