Packaging and Deploying a Rules Based Einstein Chatbot
When you receive the chatbot translations back from the Language I/O Localization team, follow these steps to deploy your chatbots in Salesforce.
Create the Translations Metadata Package
Note: Make sure your packaged files do not exceed 5MB. Workbench has a maximum file size limit of 5MB.
- Add each of the TRANSLATION files to a folder named “translations”.
- Create a “package.xml” XML file using a text editor (for example, Sublime or VS Code).
- Add a Translations <member> for each language.
Example
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
<types>
<members>de</members>
<name>Translations</name>
</types>...
<types>
<members>es</members>
<name>Translations</name>
</types>
<version>58.0</version>
</Package>
- Compress the “package.xml” and the “translations” folder containing the TRANSLATIONS files into a ZIP file.
Note: The “package.xml” and the “translations” folder must be at the root of the ZIP file. This means you must ZIP the file and folder together, not in a folder that contains them.
Deploying the bot
- Open your browser and go to https://workbench.developerforce.com.
- Select either “Sandbox” or “Production”, then make sure that the API version is set to v58.
- In the menu, select Migration > Deploy.
- Click "Choose file" and select the zip file that contains the updated bot.
- Check the box next to "Check Only". This verifies the package is valid before you deploy the Chatbot:
- If there are any errors, fix them. Then, repeat the process from Step 3.
Note: Workbench has a maximum file size limit of 5MB. If the file is too large, an error appears that says “No file uploaded”. To fix this, you can break up the TRANSLATION files into multiple smaller packages for upload. - Once all errors are fixed, or if there are no errors, uncheck the "Check Only" box to deploy the Chatbot in your org.
Comments
0 comments
Please sign in to leave a comment.