Creating an AI Agent with Joule Studio
Joule Studio provides an intent-based development approach for building AI agents that address specific business requirements.
Instead of beginning with code, the development process starts with a description of the business problem and the desired outcome.
Joule Studio helps transform this information into structured requirements, technical specifications, and implementation artifacts that can be reviewed and refined throughout development.
The following sections explore the main phases of creating an AI agent, from defining business intent to testing and deployment.
Explore the Agent Development Lifecycle
Creating an AI agent involves several connected development phases.
Joule Studio supports a development lifecycle that begins with business intent analysis and continues through requirements generation, technical specification, implementation, testing, and deployment.

Each phase produces information or artifacts that contribute to the next stage.
The purpose of this approach is to maintain a connection between the original business objective and the technical solution that is ultimately implemented.
This helps development teams evaluate whether the agent continues to address the intended business requirements as it moves through the development lifecycle.
Define the Business Intent
The first step in creating an AI agent is to define the business problem and the intended outcome.
A business intent describes what the agent should accomplish rather than specifying how it should be implemented.
A well-defined intent should identify the problem being addressed, the users who will benefit from the solution, and the expected business value.
For example, an organization might want to create an AI agent that reviews supplier information, identifies potential risks, and provides recommendations to procurement specialists.
This business objective provides the starting point for Joule Studio to analyze the requirements and determine how the intended functionality could be implemented.

Refine the Intent with Enterprise Context
Joule Studio can support the analysis of business intent by incorporating relevant enterprise information.
Depending on the available context and integrations, this information may include business processes, application architecture, domain models, and SAP business knowledge.
For requirements that are not sufficiently defined, Joule Studio can use clarification questions to identify missing information or additional constraints.
For clearly defined requirements, Quick Create allows users to proceed without the initial clarification questions.
The result is a more structured description of the intended agent behavior that can be used during the next development phase.
Generate the Product Requirements Document
After defining and analyzing the business intent, Joule Studio can generate a Product Requirements Document (PRD).
The PRD translates the initial business objective into structured requirements that can be reviewed by business stakeholders and developers.

The PRD may include information about the business problem, target users, functional requirements, and criteria for measuring the solution's success.
Enterprise context can help align these requirements with relevant SAP applications, business processes, and architectural considerations.
For example, a PRD for a procurement agent could describe the information the agent needs to analyze, the expected recommendations, and the business outcomes the organization wants to achieve.
Reviewing the PRD is an important part of the development process.
Business stakeholders and developers should confirm that the documented requirements accurately reflect the intended functionality before proceeding to technical implementation.
The PRD also provides a reference point that can be revisited when requirements change or the solution is further developed.
Generate the Technical Specification
Once the requirements have been reviewed, the next phase is to translate them into a technical specification.
The specification describes how the proposed solution should be implemented.
It provides a more detailed implementation blueprint based on the requirements captured in the PRD.
This may include the solution's architecture, required capabilities, integration points, expected behavior, and relevant technical constraints.
For an AI agent, the specification helps define the components and technical capabilities needed to fulfill the intended business objective.
Joule Studio uses this specification as an input for generating the solution's implementation artifacts.

Generate and Review the Agent Implementation
After the technical specification has been established, Joule Studio can generate the implementation artifacts required for the agent.
The generated implementation is informed by the specification and relevant SAP development context.
Depending on the solution requirements, implementation may involve different technologies, integration mechanisms, and supporting workflows.

Review the Generated Code
Joule Studio supports access to generated source code and other implementation artifacts.
Developers can inspect the implementation to understand how the intended functionality has been translated into code and configuration.
The generated artifacts can then be reviewed, modified, or refined based on project requirements.
This enables developers to evaluate implementation decisions rather than treating AI-generated output as a black box.
Refine the Implementation
Developers can continue working with the generated artifacts using the web-based development experience or supported external development tools.
For example, a developer may need to adjust business logic, refine an integration, or modify how the agent processes information.
Generated code can also be managed through Git to support version control and collaborative development.
This combines AI-assisted generation with established software development practices.
Test and Evaluate the Agent
After implementation, the next phase is to evaluate whether the agent behaves as intended.
Testing AI agents involves more than confirming that the generated code executes successfully.
It also requires evaluating whether the agent produces appropriate results and follows the requirements established during development.

Validate the End-to-End Solution
End-to-end testing helps determine whether the agent performs its intended tasks across the complete execution flow.
This may include checking interactions with tools, services, and other components required by the solution.
Testing the complete workflow helps identify issues that may not be visible when individual components are evaluated separately.
Evaluate Agent Behavior
Agent evaluation focuses on the quality and appropriateness of the agent's behavior.
Joule Studio's testing and evaluation approach can provide information about validation results, behavioral checks, and potential issues.
These results help developers compare the agent's behavior with the expected outcomes defined in the requirements.
Identify and Resolve Issues
When testing identifies an issue, developers can review the results and determine which part of the solution requires further investigation.
Depending on the available evaluation capabilities, component-level results may help identify where a failure occurred.
The solution can then be refined and tested again before deployment.
This iterative approach helps improve the reliability of the generated agent.
Deploy and Manage the Agent
After the agent has been implemented and validated, it can be prepared for deployment.
Deployment makes the solution available in a managed execution environment, subject to the required permissions and configuration.
Joule Studio supports deploying agentic solutions to an SAP-managed runtime environment.

Deploy to a Managed Runtime
The managed runtime provides the execution environment in which agents can interact with models, tools, enterprise services, and business processes.
It supports operational capabilities required to run agentic solutions within enterprise environments.
Monitor Agent Performance
Deployment is not the final stage of managing an AI agent.
Once the agent is running, organizations need visibility into its execution and behavior.
Observability capabilities such as tracing, metrics, and logging help teams investigate execution issues, evaluate performance, and identify opportunities for improvement.
Depending on the available monitoring capabilities, teams can also review usage and operational information.
Manage the Agent Lifecycle
Agents may require updates as business requirements, connected systems, or technical capabilities change.
Lifecycle management supports the ongoing administration of deployed agents, including governance, monitoring, and subsequent improvements.
SAP AI Agent Hub is presented as a central management capability for discovering and governing agents.
By combining deployment, monitoring, and lifecycle management, organizations can continue improving their agentic solutions after the initial release.
End-to-End Demo: Building with Joule Studio
Watch the following demonstration to see how a business intent is transformed into a governed, context-grounded agentic solution.