Deployment
After using the playground to find a good configuration for your application, it's time to deploy the application. By deploying the application, you can integrate it with short code snippet in your applicatoin. You can later change the configuration from the UI without having to update the code.
Agenta provides a way to deploy an application to multiple environments: development, staging, and production. Each environment has its own unique configuration.
Deploying an application to an environment:
- Navigate to the playground for the variant you want to deploy.
- Click on 'Publish'. Make sure the variant is saved before deployment.
![](/images/basic_guides/04_save_before_deployment_light.png)
![](/images/basic_guides/04_save_before_deployment_dark.png)
- Select the environment and click on "Publish"
![](/images/basic_guides/05_select_environment_to_publish_light.png)
![](/images/basic_guides/05_select_environment_to_publish_dark.png)
The application is now deployed to the chosen environment and is accessible as an API endpoint.
Accessing the API endpoint:
- Go to the 'API endpoint' section.
- Choose the environment where the application was deployed.
![](/images/basic_guides/06_choose_evironment_to_deploy_light.png)
![](/images/basic_guides/06_choose_evironment_to_deploy_dark.png)
- Here, you'll find the application code in various languages, which can be embedded in your application code.
![](/images/basic_guides/07_select_app_code_light.png)
![](/images/basic_guides/07_select_app_code_dark.png)
Additionally, you can use the configuration in your application code without using Agenta deployment. This can be achieved by using the Python SDK or the REST API. More information can be found on the page 'Integrating Agenta with Your Application'.`