Skip to main content

Staging and live environments

In certain cases, you may need to use two environments for your AI agent: a staging (development) environment and a live (production) environment. In the staging environment, you can immediately view the changes you make to the AI agent, whereas the production environment should contain the assistant that your customers converse with. Check out the following guide, which demonstrates the full procedure of creating the staging and production environments.

New environment​

To create the dev environment, follow these steps. This environment is similar to any other environment, but you set up a rule to route the conversation to a draft version of an AI agent.

  1. Select your avatar and go to the Profile section.
  2. Select the + button next to the Environments tab on the sidebar.
  3. Choose a name for your new environment and decide whether you want Human chat enabled or not.
The Create new environment dialog with the name Development, a description, and the Human chat option.The Create new environment dialog with the name Development, a description, and the Human chat option.

Routing rules​

After creating your new environment, you need to set up a routing rule to route the conversation to the draft version of the AI agent. This version reflects the state of your agent as you see it when editing, without publishing a new version.

  1. Go to Deploy → Rules.
  2. Select the dropdown menu in the subnavigation bar and select the environment that you created. In this example, it is Development.
  3. Select the + Create button.
  4. Choose a name for your rule and select Create.
  5. Select Add action and select Assign AI agent from the menu.
  6. In a production environment, you would select the latest version of the agent, but in the development environment, you should select the draft version.
  7. Activate the rule and save changes.
A rule in the Development environment with the Assign AI agent action set to the draft of the Customer support AI agent.A rule in the Development environment with the Assign AI agent action set to the draft of the Customer support AI agent.

Next steps​