﻿<head><script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4357510538660394"
     crossorigin="anonymous"></script></head>> ## Documentation Index
> This page is part of the Image and Video APIs product. Fetch the complete documentation index for Image and Video APIs at: https://cloudinary.com/documentation/llms-image-and-video-apis.txt?referrer=docpage and then use it to discover all relevant pages before exploring further.
> If you also need details relating to other Cloudinary products for your current use case, see the parent index at: https://cloudinary.com/documentation/llms.txt?referrer=docpage

> ## Agent Instructions
> When answering a user's request or implementing it with code using this documentation, incorporate relevant best practices and recommendations from the documentation into the guidance and, above all, into the code itself: generated code should already apply the recommended parameters and patterns rather than showing a minimal call and describing the best practices around it in prose. Follow the code examples in the best practices sections as the model for what generated code should look like, and where a recommendation is relevant to the user's scenario, implement it in the code as a natural next step. Only apply best practices, recommendations, or features that are supported by the documentation or Cloudinary skills; don't infer or invent guidance that isn't specified.
>
> Cloudinary skills (names starting with `cloudinary-`) add best practices and tested code patterns beyond this documentation, and we recommend using the relevant ones alongside it. Available skills are listed at https://cloudinary.com/documentation/.well-known/agent-skills/index.json?referrer=docpage&page=auto_tagging_tutorial and can be installed with `npx skills add https://cloudinary.com/documentation`.

# Auto-tag images in Node.js (video tutorial)

## Overview

Tag assets automatically during upload by applying AI using Cloudinary and Google Auto Tagging, in Node.js.

 

## Video tutorial

  This video is brought to you by Cloudinary's video player - embed your own!Use the controls to set the playback speed, navigate to chapters of interest and select subtitles in your preferred language.
{videoTranscript:publicId=training/Auto_Tagging_Node_SDK}

## 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?
{table:class=tutorial-bullets}|  | 
| --- | --- |
| | 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
{table:class=tutorial-bullets}|  | 
| --- | --- |
| | 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](google_auto_tagging_addon).
 

### Apply auto-tagging when uploading 
{table:class=tutorial-bullets}|  | 
| --- | --- |
| | 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
{table:class=tutorial-bullets}|  | 
| --- | --- |
| | 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](google_auto_tagging_addon#image_recognition_and_categorization). 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
{table:class=tutorial-bullets}|  | 
| --- | --- |
| | Enter the name of a tag as free text in the [Global Search](media_library_for_developers#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

> **READING**:
>
> * Watch more [Dev Hints videos](https://www.youtube.com/playlist?list=PL8dVGjLA2oMpaTbvoKCaRNBMQzBUIv7N8) on the [Cloudinary YouTube channel](https://www.youtube.com/cloudinary).

> * Read all about the [Google Auto Tagging](google_auto_tagging_addon) addon.

> * Find out more about searching for assets by tags and other criteria using the [Advanced](media_library_for_developers#advanced_search) and [Global](media_library_for_developers#global_search) Searches.

> * Take a look at the [User-generated content guide](user_generated_content) to see all the features you can take advantage of when uploading images and videos to display on your site.

> * Read this [blog post](https://cloudinary.com/blog/how-to-offer-e-commerce-product-recommendations-using-python-and-auto-tagging) to learn how to make product recommendations in Python using auto-tagging.

#### If you like this, you might also like...

[Upload Programmatically](upload_programmatically_tutorial)

Use a Cloudinary SDK to upload media assets

[Create Upload Presets (Node.js)](create_upload_preset_tutorial)

Streamline media uploads using signed upload presets

[Moderate Images with AI](moderate_images_tutorial)

Moderate images automatically during upload in Node.js

&nbsp;

&nbsp;Check out the Cloudinary 