Exporting a Prompt Template

If you are planning to run bots in a different environment than the one you created them in, you would have to export the Task Bot and the referenced Prompt Template to the Control Room where you want to run your bot.

Before you continue, we recommend reviewing Bot Lifecycle Management to understand the concept of exporting and importing bots and moving them across environments.

Note: You can export or import a Prompt Template. If you are exporting a Task Bot, the referenced Prompt Template in the Task Bot would also get exported as dependency.

Though you have selected the referenced Prompt Template as a dependency before exporting the Task Bot, it would still fail to run in the new environment as the associated Model connection does not get automatically exported as a dependency during this process.

You have to manually create a duplicate of the original Model connection with the same name and details in the migrated environment.

We recommend following these guidelines when replicating the Model connection in the new environment:
  • Provide the same Model connection name. This is a mandatory step.
  • Choose the same model and vendor. This is a mandatory step as well.
  • Create similar credentials with the same credential name, attribute, and locker. This is not relevant if you are using the insecure string option.
  • If you choose a different Credential Vault for a Prompt Template, you would have to update the Task Bot with the changes by clicking the Refresh icon in the Generative AI Prompt Template > Execute action details panel. This will ensure the credentials get updated in the Model connection.

If you make updates to a Prompt Template, that is referenced in a Task Bot, then you would have to check-out the Task Bot, make the updates using the Refresh icon in the Bot editor details panel, and then proceed to check back the Task Bot to see the updates.