How to translate titles and descriptions in YouTube Studio
Translating your YouTube descriptions (the title and text describing your content) into other languages is likely to increase your views. Yet translation is costly and time consuming, and let’s face it, many of us simply don’t bother. But what if you could do it with a bot using Google Translate?
In this guide, we’ll teach you how to automate translating your YouTube descriptions without a single line of code, using Axiom’s no-code bot building tool. If you’re interested in learning more about browser automation and how it can be used to automate tasks throughout the YouTube ecosystem, this guide is a great starting point.
# Why build a bot?
Have you ever seen a bot do your work for you? This was one user’s reaction on Twitter:
“Help! I’m addicted to writing bots with @browserbots that make my job and life easier”
YouTube automation frees up time and resources normally spent on routine tasks that can instead be used to focus on growing and scaling your business. Of course there’s a learning curve when it comes to building bots, but once mastered, you can automate much more than just translations for YouTube.
# What is a bot?
A bot is a program that automatically performs tasks for you on the Internet. Like a physical robot, you’ll need to give it instructions, telling it how to automate translating descriptions in YouTube Studio.
# How are bots made using Axiom.ai?
With the help of Axiom’s no-code bot builder, you can easily make bots that combine steps to replicate your actions in YouTube Studio. You can build as many bots as you want for any web-based application, not just YouTube, without a single line of code!
# Can anyone make a bot to automate actions in YouTube Studio?
The answer is yes! You don’t need to know how to code. If you’re completely new to this, keep following the guide and by the end you’ll have made a bot that automates translations in YouTube Studio. Don’t forget that all new accounts get 2 free hours of runtime to test your bots - no credit card required.
# How does the bot automate translations in YouTube Studio?
The bot you’re about to make will read a YouTube ID from a Google Sheet, as well as the text and language you want to translate it into.
Then the bot will load the Google Translate page into a browser, paste the text into the translate box and click translate. Once that's done, the bot scrapes the translated text.
Its next action is to use the YouTube ID to open the correct video’s ‘translate’ page. It then clicks ‘create translation’, sets the language, enters the translation and saves.
And it won’t stop there: it will continue looping through any additional rows in the Google Sheet.
# What else can you automate using bots in YouTube Studio?
YouTube Studio users have plenty of repetitive tasks that bots can automate. For example, extracting data for reporting or even creating new posts. Plus you can extend the same bot to multiple YouTube accounts.
# Get started: the first steps for building your bot
# Set up Google Sheet
Create a new Google Sheet. You can do this in your Chrome browser by entering the shortcut 'sheet.new', presuming you already have an account.
First, name your sheet something like 'Automate YouTube translations’, then set up two tabs titled 'Translate' and 'Translated.’
Add data to the ‘Translate’ tab on your sheet. Each translation should be added to a new row, in this format:
- Column A: add the YouTube video ID
- Column B: add the title you wish to translate
- Column C: add the description you wish to translate
- Column D: specify the language you wish to translate the text into (Match how the languages are listed on Google Translate).
# Start from blank
To build your bot from scratch, click on 'Start blank.’
# Add a ‘Read from Google Sheet’ step
Find the ‘Read data to a Google Sheet’ step (you can use the search function to do so). Add the step to Axiom for you to configure.
In the field called 'Spreadsheet', you can search for the Google Sheet you created. Once found, click to select.
For 'Sheet name' click on the drop-down and select the tab 'Translate'.
On the first cell, toggle the switch and enter 'A1'. This setting tells the bot where to start reading data.
On the last cell, click the toggle switch and enter 'AD1'. You have limited the bot to read a single row. We can set the bot to loop later on.
If you want to learn more about Google Sheet steps watch these videos. (opens new window)
# Part One: Automate translations of titles and descriptions using Google Translate
# 1. Add an ‘Interact with a page's interface’ step
This ‘interact’ step will be used to automate Google Translate by inputting data and extracting the resulting translations.
In the ‘Enter URL’ field, enter the URL for Google Translate https://www.google.com/search?q=google+translate (opens new window)
# 2. Set up sub-steps
Now add the following sub-steps to populate the google translate form.
- Add a new sub-step called ‘Enter Text’. Click ‘Select’ then select the ‘Enter text’ field on the Google Translate page. Click on ‘Insert Data’ and pass the title text to be translated.
- Add a ‘Click Element’ sub-step and select the language drop down.
- Add an ‘Enter Text’ step, click ‘Select Data’ and choose the column with the language choice, ensuring it matches Google’s own language listing.
- Add a ‘Press Key(s)’ step and record a return to submit the choice made in step 3
- Add a ‘Get data from a webpage’ step and select the translated title
- Add a ‘Click element’ sub-step and select the ‘x’ to clear the translated text ready to input the description text for translation
- Then add an ‘Enter Text’ sub-step, click on the yellow ‘Enter data’ button and select the column with the description in the data preview that appears on-click.
- Now add a ‘Get data from a webpage’ sub-step. Select the translated description.
- Add a ‘Display a message’ step, insert data from ‘Interact’ step to check it’s working. Hit run to test it. The content should appear in a pop up like this add image
Awesome work! You have built the first part of the bot. We will now teach you how to pass the translated titles and descriptions to the next ‘Interact’ step that will automate the translations.
# Part Two: Automate translations in YouTube Studio
# 1. Add a new ‘Interact with a page's interface’ below ‘Display a message’ step
This ‘Interact’ step will be used to automate the generation of the translations in YouTube. Once set up, it will select the language and enter the translated title and description.
- In the ‘Enter URL’ add this partial URL ‘https://studio.YouTube.com/video/, then click on ‘Insert data’ and select the Google Sheet variable. The data preview will slide up: select the unique YouTube ID. Then add ‘/translations’. Congratulations! You have learned to construct URLs with variables. A very useful trick for automating the browser. Your URL should look a little like this: https://studio.YouTube.com/video/PebeNFAKbEU/translations
- Next, we need to use a ‘Click Element’ sub-step and click on ‘ADD LANGUAGE’
- Then input the language used for the translation. Use the ‘Enter Text’ sub-step, then click ‘Enter data’ and select the language.
- Now add a ‘Press Key(s)’’ step. Record a press of the ‘Return’ key to submit the language.
- Now add a ‘Click Element’, select ‘ADD’ in the Title & Description column. The language fields will appear in a pop-up.
- Now add two ‘Enter Text’ steps for the ‘Title’ and ‘Description’ fields. Pass the content from the Google Sheet by selecting 'Insert data’ then in the preview that pops up, select the title and description. If you see no data preview, column A should be the title and column B the description.
- Add ‘Click Element’ step to publish the translation. Note you will need to add some text to make the button active when selecting it.
- Add a ‘Wait’ step of 3000ms to ensure the content saves.
Okay, you’re almost done and getting good at building bots!
# Loop the bot
All you need to do now is to set the bot up to loop.
- Add a ‘Write to Google Sheet’ step and select the sheet called ‘Translated.’ Pass the Google Sheet data to log the completed translations.
- Add ‘Delete Google Sheet’ step and choose the ‘Translated’ sheet to remove the completed row so that the bot loops onto a new row.
- Finally, add ‘Jump to another step’’ and enter the number of steps to jump to (in this case 1) and enter the number of loops you want in ‘Maximum cycles’.
The bot is now ready and will loop through its tasks. You can automate!
# Test run your Youtube Studio bot
Before you do a test run, cdisable the sub-step that clicks ‘Publish’. If not, make sure you do this now.
It's best practice to test every bot to check it’s production-ready. With the ‘Publish’ button disabled, you can do a test run that will not add a translation.
We recommend test running your bot with the desktop app.
Things to check for:
- Is the text translated?
- Is the text entered in the correct language?
- Is the translation saving?
Go ahead and click ‘run’. Get ready for some magic.
# Debugging your Youtube Studio bot
If you experience any issues with the bot not clicking buttons, try re-selecting the button or text input. To change the selection, move the cursor slowly over the object and re-select.
The Click step also has a handy feature that allows you to select the button by the text, which can resolve many issues.
If the Publish button is clicked, but the Translation is not saving. Make sure you have added the 'Wait' at the end of the sub-step in the second 'Interact' step.
Don't forget we have excellent customer support. If you need help, get in touch.https://axiom.ai/customer-support (opens new window)
Bots can save you hours of time and resources normally spent on repetitive tasks. Now you’ve built and run your first bot, why not use your new super power to automate other tasks? Another popular use of Axiom in the YouTube ecosystem is to automate the Add text
# Axiom Support
If you do get stuck or need some guidance, we are here to help. Simply post your request here https://axiom.ai/customer-support (opens new window)
# Need to scale your YouTube Sutido bot?
If you have multiple YouTube accounts to manage, with hundreds of videos to translate, one bot may not be enough. You can run two or three bots concurrently with our Pro Max and Ultimate subscriptions.