Joule Studio: Leveraging Agents, Joule Skills, and Document Grounding to extend your use case
Pre-requisites:
Joule StudioJoule BaseFor document grounding: AI Core (extended plan), AI Launchpad, Object Store
Joule Studio, part of SAP Build, enables developers to extend Joule with Agent Builder and Skills using a low-code/no-code. It provides seamless integration with SAP and Non-SAP data.
With Joule Studio, I created custom agent such that users can simply ask Joule to create a service order whenever an issue arises. Based on the instructions, Joule automatically gather the details, classify the issue based on the company policy using document grounding and create the order in S/4 HANA Public Cloud.
In this blog post, we’ll explore how you can take Joule further with Joule Studio by integrating agents, skills, and document grounding that make your application smarter and more dynamic.
1. Setup
Agent Builder
Ensure that you have AI Agent Builder activated. You’ll need to toggle the
Document Grounding
This is an amazing blog written by Daniel on setting up Document Grounding in Joule Studio: link
Make sure the extensibility_user role is assigned to your account to access the document grounding feature in Joule Studio.
When new files are added to the S3 folder, you can trigger a manual sychronisation to refresh and ground the documents.
Application Setup
To connect your application data to Joule Studio, you can either set up an MCP server or use the BTP Destination Service, depending on your integration needs.
Both options provide seamless connectivity, but the choice depends on the specific use case and the systems you’re integrating with Joule Studio.
In this project, I’m using destination service.
In BTP Destination Service, ensure that you include the additional properties listed for it to appear in Joule Studio:
sap.processautomation.enabled: truesap.build.usage: odata.gensap.applicationdevelopment.actions.enabled: true
2. Use Actions Project in Joule Studio to encapsulate the API actions
Once the BTP Destination is setup, it will appear in the OData Destination and you can create the Actions Project.
Once the actions project is setup, release and publish it.
3. Create new Joule Skill Project
Within a project, you can setup multiple skills and agents.
Skills are predefined, deterministic workflows that execute single, atomic operations with known inputs and outputs. They function as rule-based tasks and perform repetitive operations without requiring reasoning. For example, a skill in this project is to get information based on a service order ID.
Agents are autonomous, multi-tool systems that solve complex problems through dynamic reasoning, planning, and execution. Agents leverage large language models for reasoning, decision-making, and planning, while dynamically selecting and executing the right tools based on the specific context.
How Skills and Agents Work Together
Agent Planning: The agent analyzes the user request and determines which skills or tools are needed to accomplish the task.
Skill Execution: The agent invokes relevant Joule skills to perform specific operations like data retrieval or process execution.
Result: The agent combines outputs from multiple skills to provide comprehensive solutions and recommendations
Create a Skill
Provide a clear and detailed description of the scenario you want the skill to handle – the more specific you are, the better the outcome will be.
Add “Call Action” to pass the necessary fields to the API to trigger the process.
Add the variables to be passed to the API.
In my project, I have created multiple skills and added them as tools to my agent.
Demo sample:
Conclusion
In conclusion, extending Joule Studio to connect with your application data through the MCP server, BTP Destination Service or API connections, enables seamless integration with external systems. By developing Joule skills and agents, leveraging document grounding and other tools, you can enhance Joule’s capabilities and integrate it with your applications.
Check out the following resources to help you get started:
Activate Joule Studio
Developer’s Tutorial: Use Joule Studio to Create an Agent
Document Grounding in SAP Joule Studio
Joule Studio: Leveraging Agents, Joule Skills, and Document Grounding to extend your use casePre-requisites:Joule StudioJoule BaseFor document grounding: AI Core (extended plan), AI Launchpad, Object StoreJoule Studio, part of SAP Build, enables developers to extend Joule with Agent Builder and Skills using a low-code/no-code. It provides seamless integration with SAP and Non-SAP data.With Joule Studio, I created custom agent such that users can simply ask Joule to create a service order whenever an issue arises. Based on the instructions, Joule automatically gather the details, classify the issue based on the company policy using document grounding and create the order in S/4 HANA Public Cloud.In this blog post, we’ll explore how you can take Joule further with Joule Studio by integrating agents, skills, and document grounding that make your application smarter and more dynamic. 1. SetupAgent BuilderEnsure that you have AI Agent Builder activated. You’ll need to toggle the Document GroundingThis is an amazing blog written by Daniel on setting up Document Grounding in Joule Studio: linkMake sure the extensibility_user role is assigned to your account to access the document grounding feature in Joule Studio.When new files are added to the S3 folder, you can trigger a manual sychronisation to refresh and ground the documents. Application Setup To connect your application data to Joule Studio, you can either set up an MCP server or use the BTP Destination Service, depending on your integration needs.Both options provide seamless connectivity, but the choice depends on the specific use case and the systems you’re integrating with Joule Studio.In this project, I’m using destination service.In BTP Destination Service, ensure that you include the additional properties listed for it to appear in Joule Studio:sap.processautomation.enabled: truesap.build.usage: odata.gensap.applicationdevelopment.actions.enabled: true 2. Use Actions Project in Joule Studio to encapsulate the API actionsOnce the BTP Destination is setup, it will appear in the OData Destination and you can create the Actions Project.Once the actions project is setup, release and publish it. 3. Create new Joule Skill ProjectWithin a project, you can setup multiple skills and agents.Skills are predefined, deterministic workflows that execute single, atomic operations with known inputs and outputs. They function as rule-based tasks and perform repetitive operations without requiring reasoning. For example, a skill in this project is to get information based on a service order ID. Agents are autonomous, multi-tool systems that solve complex problems through dynamic reasoning, planning, and execution. Agents leverage large language models for reasoning, decision-making, and planning, while dynamically selecting and executing the right tools based on the specific context. How Skills and Agents Work TogetherAgent Planning: The agent analyzes the user request and determines which skills or tools are needed to accomplish the task.Skill Execution: The agent invokes relevant Joule skills to perform specific operations like data retrieval or process execution.Result: The agent combines outputs from multiple skills to provide comprehensive solutions and recommendations Create a SkillProvide a clear and detailed description of the scenario you want the skill to handle – the more specific you are, the better the outcome will be.Add “Call Action” to pass the necessary fields to the API to trigger the process.Add the variables to be passed to the API.In my project, I have created multiple skills and added them as tools to my agent.Demo sample: ConclusionIn conclusion, extending Joule Studio to connect with your application data through the MCP server, BTP Destination Service or API connections, enables seamless integration with external systems. By developing Joule skills and agents, leveraging document grounding and other tools, you can enhance Joule’s capabilities and integrate it with your applications. Check out the following resources to help you get started:Activate Joule StudioDeveloper’s Tutorial: Use Joule Studio to Create an AgentDocument Grounding in SAP Joule Studio Read More Technology Blog Posts by SAP articles
#SAP
#SAPTechnologyblog