Leilei Zhou is a Product Manager for Joule Studio, focusing on Agent lifecycle management.
1. Introduction:
From Development to Production An AI agent is not simply production-ready because its code runs successfully in a developer’s environment. Its prompts, tools, model configuration, dependencies, and security settings must be validated consistently before reaching end users. In Joule Studio, users with developer role can create Agent, while Git integration provides a structured way to review changes and automate promotion workflows. With combination of Joule Studio and Git workflows, administrators can move Agents across three environments—Development, Test/Staging, and Production.
This article explains how to implement this promotion process for Agents in Joule Studio through Git workflows.
2. Three-Tier Environment and Promotion Model
A three-tier environment—Development, Test, and Production—is a common pattern in enterprise IT. Joule Studio can follow this established model to separate Agent development, validation, and operation across independent tenants. Each tenant includes Joule Work and Joule Studio, SAP Cloud Identity, and connections to SAP and non-SAP applications.
An Agent is initially created and developed in the Development Tenant. | |
| After the changes are ready for testing, the Agent is promoted to the Test Tenant, where it can be validated in a controlled environment. | |
Once the required checks are completed, an administrator can promote the Agent to the Production Tenant. |
Git workflows coordinate this promotion process by providing a structured way to review changes, execute validation steps, and manage the transition between tenants. Joule Studio remains the platform where users create and manage Agents.
3. End-to-End Agent Promotion Process
3.1 Prepare the Agent in Development
The promotion process starts in the Development Tenant. In Joule Studio, users can create and prepare an Agent through the following steps:
- Enter an intent and create the Agent : Enter the intended business outcome and follow the conversation in the chat box to complete the Agent creation process.
- Deploy and test the Agent in the Sandbox :Deploy the Agent to the Sandbox environment and try it with representative scenarios. Use this step to verify the Agent’s basic behavior before sharing it with other environments.
- Connect the Solution to a Git Repository: Connect the Solution to a Git repository and push the Solution to the repository. This makes the Solution available for the Git-based review and promotion workflow.
3.2 Customize the Git workflows for the Test and Production Tenant
After the Solution is pushed to the Git repository, the deployment workflow files used for promotion are generated automatically in the repository. This section uses GitHub as an example of a Git provider. The same principles can be applied to other supported Git providers with the corresponding configuration. The following steps show how to customize the workflow for the Test Tenant.
- Configure the Test Tenant in SAP Cloud Identity Services
Sign in to SAP Cloud Identity Services (SCI) for the Test Tenant with administrator permissions. Follow Step 1 of the GitHub setup guide to create and configure an application for the Test Tenant.
- Configure GitHub organization-level secrets
Sign in to GitHub with GitHub organization administrator permissions. Follow Step 2 of the GitHub setup guide to configure the variables and secrets required by the Test Tenant.
To distinguish the Test Tenant from other environments, use environment-specific names such as:
TEST_SCI_TENANT_URLTEST_SCI_CLIENT_ID
TEST_JOULE_STUDIO_URL
TEST_SCI_CLIENT_SECRET
- Create a Test deployment workflow
Copy the generated sample workflow file: .github/workflows/deploy.yml
and save the copy as: .github/workflows/deploy-to-test.yml
- Update the Test deployment workflow
Open deploy-to-test.yml and make the following changes:
1. Change the workflow name from ‘Deploy to Joule Studio' to ‘Deploy to Joule Studio Test Tenant'
2. Replace the default environment variable and secret names wherever they are used:
SCI_TENANT_URL → TEST_SCI_TENANT_URLSCI_CLIENT_ID → TEST_SCI_CLIENT_ID
JOULE_STUDIO_URL → TEST_JOULE_STUDIO_URL
SCI_CLIENT_SECRET → TEST_SCI_CLIENT_SECRET
- Run the Test Tenant deployment workflow
Open the Actions tab in the GitHub repository. You should see the new workflow named ‘Deploy to Joule Studio Test Tenant’. This workflow can now be used to deploy the Solution to the Test Tenant.
The same approach can be used to configure the Production Tenant, using its own SCI application, environment-specific secrets, and production deployment workflow.
3.3 Deploy and Validate the Agent in the Test Tenant
After the Test Tenant workflow has been configured, the Solution can be deployed to the Test Tenant for validation.
- Push changes to Git Repository: Commit the latest Agent changes and push them to Git repository.
- Run the Test tenant deployment workflow: Open the Actions tab in GitHub and select ‘Deploy to Joule Studio Test Tenant’.
- Monitor the deployment: Review the workflow run and its logs to confirm that the Solution is packaged and deployed successfully. The workflow uses the Test Tenant-specific URLs, client ID, and client secret configured in the previous step.
- Validate the Agent in Test Tenant: After deployment, open the Agent in the Test Tenant and test it with representative business scenarios. Verify the Agent’s responses, tool calls, integrations, and other expected behaviors.
Once the required tests and validations are complete, the Solution is ready for the next stage of the promotion process: approval and deployment to the Production Tenant.
3.4 Promote the Agent to the Production Tenant
Before deploying the Solution to the Production Tenant, create a release in Joule Studio and complete required approval process. A release represents the version of the Solution that is ready to be promoted to Production. For detailed instructions, see Create a release with the Web UI .
- Create a release in Joule Studio: Open the Solution in Joule Studio and create a release using the Web UI. After the release is created, identify the corresponding release tag.
- Open the Production deployment workflow in GitHub : In the GitHub repository, go to Actions and select Deploy to Joule Studio Production Tenant.
- Select the release tag : Start the workflow and select the release tag that corresponds to the release created in Joule Studio. This ensures that the intended Solution version is deployed to the Production Tenant.
- Run and monitor the deployment: Start the workflow and monitor its execution logs. After the workflow completes successfully, verify that the Agent is available and operates as expected in the Production Tenant.
5. Conclusions
A reliable Agent promotion process depends on clear separation between the Development, Test, and Production Tenants. Joule Studio provides the environment for creating and managing Agent Solutions and releases, while Git workflows support collaboration, validation, and controlled deployment across tenants.
When implementing this process:
– Keep tenant-specific configuration and credentials separate.
– Use appropriate permissions for Joule Studio and GitHub.
– Validate the Solution in the Test Tenant before Production deployment.
– Align the Joule Studio release with the corresponding Git release tag.
– Retain deployment logs and approval records for traceability.
This approach provides a structured path from Agent creation to Production deployment.
