Copying Bots
Copying Bots
In this tutorial you will learn how to copy a bot and all of its resources.
Downloading the Bot
- Create a folder for your bot project
- Using the CLI, log into your organization using and download the bot you want to copy.
sb-cli bot download BOTNAME
This will include all workers, baas, and the default endpoint related to the bot.
Modify your bot
- Delete all
SRN
andID
fields from all of the resources. - Rename the bot, and all of this resources
- For bots, change the
Name
field - For workers, change the
Name
- For endpoints, change the
Address
- For BaaS, change the
Alias
Uploading Your BOT
- Re-upload the bot Definitions
sb-cli bot upload .
The .
just denotes current directory.
Secrets
Secrets are not exported or imported, but since they are referenced by Alias, all that is needed is to make sure that secrets still exist in the destination organization.
Test your bot!
You should be all set to test your bot in the platform now.
Last updated on