The ChatBot platform allows you to communicate with customers all over the world. In this article, you’ll learn how to add a new language to your story using two methods.
Method 1: Adding filters inside Bot responses
-
Add a Bot response with Buttons or Quick replies and ask the visitor to choose the language.
-
Click one of the Buttons and enter the language as the name. Then select the Button type as Send message and add the postback value - it should be the same as the name of your language. Do that for every language you want to add and save your changes.
-
Add a User input, click on the block and select the curly brackets icon.
-
Choose the Parameter validation as Any, and in the Save to attribute section, choose Add custom attribute. Name your attribute (for example: selected_language), choose Add Attribute and then Done. Save your changes.
-
Add another Bot response where you’ll greet the customer in different languages. In this example, we’ll add a separate button response for each language and give the user an option to get more information about our location or working hours.
-
Once the buttons are added, click the Add filter option at the top of one of your language options, choose the attribute you created before (in this example, it’s selected_language) and enter the value of the postback from the second step (the name of the language). Choose Apply filter.
-
Do that for each language and save your changes.
Method 2: Duplicating interactions 
If you already have your story created in one language, you can use the duplicating option to add another language easily.
-
At the beginning of your story, add a Bot response with Buttons or Quick replies and ask the visitor to choose the language.
-
Click one of the buttons, enter the language as the name, select Button type as Send message and add the postback value - it should be the same as the name of your language. Do that for every language you want to add and save your changes.
-
Add a User input, click on the block and select the curly brackets icon.
-
Choose the Parameter validation as Any, and in the Save to attribute section, choose Add custom attribute. Name your attribute (for example: selected_language), choose Add Attribute and then Done. Save your changes.
-
Add one Filter block for every language you want to implement in your story and add it after your User input.
-
Right-click on the block you want to duplicate and choose Duplicate single block or Duplicate with children if you want to translate a whole flow.
-
Add it to one of the previously created Filter blocks.
-
Click on the Filter block, choose the Add new filter option and select the attribute you created before (in this example, it’s selected_language). Enter the value of the postback from the second step (the name of the language). Choose Apply filter and Save your changes.
-
Do that for each filter block to match the language.
-
Translate your block or the entire flow if you selected that option.