Last updated: Dec-19-2023
On this page:
Overview
Tag assets automatically during upload by applying AI using Cloudinary and Google Auto Tagging, in Node.js.
Video tutorial
Tutorial contents
This tutorial presents the following topics. Click a timestamp to jump to that part of the video.
What's auto-tagging helpful for?
0:05 | Auto-tagging is helpful when searching for an asset by a characteristic that's not revealed through its public ID, for example finding a picture of a flower whose public ID is nondescriptive, such as cld_sample . Adding tags manually is time consuming, so Cloudinary provides add-ons that use AI to tag your assets automatically. |
Subscribe to the Google Auto Tagging add-on
0:47 | Click Add-ons in the Console options sidebar to view the available add-ons. Select the Google Auto Tagging add-on, and select a plan. (You can select the Free plan, which allows for 50 monthly categorizations.) Agree to the terms to enable your add-on. For more information about this add-on, see Google Auto Tagging. |
Apply auto-tagging when uploading
1:18 | Within your upload function, pass this additional configuration parameter, categorization: 'google_tagging' , to automatically tag the asset you upload. Then, set the minimum confidence score that a detected category needs to get in order to automatically be assigned as a tag. This is done by setting the auto_tagging parameter to the desired minimum score. For example, auto_tagging:0.6 will assign any detected category with a minimum confidence score of 60% as a tag. |
Find the auto-tags in the upload response and Media Library
2:39 | Once you've added the tagging parameters to your upload call, your upload response will include the automatically assigned tags as an array called tags . In addition, the info field in the JSON response contains all the tags along with their associated confidence scores. View a sample response that includes tagging information here. You can also view all the tags that were assigned to the asset in the Media Library by double-clicking the asset to open the Manage page, and then selecting the Metadata tab. |
Search the Media Library for an asset based on its tags
3:43 | Enter the name of a tag as free text in the Global Search located at the top right of the Media Library and click either your desired match or See matching results from the drop-down menu. The search results will include assets with that tag. |
Keep learning
Related topics
- Watch more Dev Hints videos on the Cloudinary YouTube channel.
- Read all about the Google Auto Tagging addon.
- Find out more about searching for assets by tags and other criteria using the Advanced and Global Searches.
- Read this blog post to learn how to make product recommendations in Python using auto-tagging.
If you like this, you might also like...
Upload Programmatically
Use a Cloudinary SDK to upload media assetsCreate Upload Presets
Streamline media uploads using signed upload presetsComplex Transformations
Combine transformations to generate a 3D canvas
Check out the Cloudinary Academy for free self-paced Cloudinary courses on a variety of developer or DAM topics, or register for formal instructor-led courses, either virtual or on-site.
✖️