Use Joule Studio, Classic Edition to Create and Deploy a Joule Skill
Use Joule Studio, classic edition to create and deploy a Joule skill that consumes services from two different systems.
Overview
You will learn
- How to consume action projects in a Joule skill
- How to release and deploy the project containing the Joule skill
- How to test the Joule skill in the standalone assistant
Prerequisites
Prerequisites
- Access to an SAP BTP tenant configured for Joule and Joule Studio, classic edition. See Set Up Joule Studio, classic edition or the Discovery Center mission.
- You have configured the destinations to the OData services
- You have created and configured the action projects
Steps
Intro
Joule Studio classic in SAP Build is the design time focused on developing AI capabilities. Joule Studio classic gives SAP customers and partners the possibility to develop AI capabilities, such as custom Joule skills and custom AI agents, to extend the capabilities of Joule co-pilot and optimize organization-specific automation.
Open the SAP Build Lobby.
The lobby is a central page for creating, accessing, and managing your projects in SAP Build.
Choose Create.

Lobby Select the Joule Skill tile, then choose Next.

Select Joule Skill Enter name
CreateBadgeand descriptionCreate a badge for an employee given the employee's ID, then choose Review.
Enter name and description On the following screen choose Create.
Choose Create > Joule Skill.

Joule Studio classic create Enter name
CreateBadgeand descriptionCreate a badge for an employee given the employee's ID, then choose Create.
Joule Studio classic create popup The description is important because Joule will use it to identify the correct skill to select during a conversation.

Joule Studio classic fresh project
Choose Trigger (or «) to open the side panel.
Disable Allow Joule to generate a response.

Open side panel for trigger Choose Parameters, then choose Configure beside Skill Inputs.

Open side panel for trigger Choose Add Input three times and enter:
Name Description Required EmployeeIDEmployee IDselect StatusStatusCommunityIDCommunity ID
Configure inputs Choose Apply.
Choose Configure beside Skill Outputs.
Choose Add Output three times and then enter:
Name Description Type Required BadgeBadgeNumber select Employee IDEmployee IDString select Employee NameEmployee nameString select 
Configure outputs Choose Apply.
Expand Skill Outputs.

Output parameters Close the side panel.
Choose Save.
Choose Design Console. You should see errors.

Design console errors Close the Design Console.
Choose the + between Trigger and End.

Joule Studio classic add action Choose Call Action.

Joule Studio classic browse all actions Choose Browse All Actions.

Joule Studio classic add action Select the action GET Retrieves business partner data by using business partner number and then choose Add.

Joule Studio classic create variable Choose Select a Destination, then choose + Create a Destination Variable.

Joule Studio classic create variable Enter
S4HANA_MOCKand a description, then choose Create.Select the destination variable.

Joule Studio classic select variable Choose Inputs, then choose the
BusinessPartnerfield to open the Skill Content pane.
Joule Studio classic map input Choose EmployeeID.
Choose Outputs and expand the tree to see it.

Joule Studio classic inspect output Close the pane and then choose Save.
Choose the + between the first action and End.

Joule Studio classic action Choose Call Action.

Joule Studio classic browse actions Choose Browse All Actions.

Joule Studio classic select action Select the action POST Invoke action createBadge, then choose Add beside it.

Joule Studio classic create variable Choose Select a Destination, then choose + Create a Destination Variable.

Joule Studio classic create variable Enter
Badge_Serviceand a description, then choose Create.Select the Badge_Service destination variable.
Choose Inputs, then choose the
businesspartnerIdfield to open the Skill Content pane.Expand the tree in the Skill Content pane and map the fields as shown.

Joule Studio classic map inputs Choose Outputs and then expand the tree to see the result.

Joule Studio classic inspect outputs Close the pane and then choose Save.
Choose the + between the second action and the End element.

Add send message Choose Send Message.

Open message editor Choose Open Message Editor.

Message editor Enter
Badge Requestin the Title field.In the Text field, enter
Badge has been created for. Then use <> to open Data Mapping and add thebadgeIdandfirstnameparameters.
Data mapping in message editor In the Illustration field, choose an appropriate illustration.
Choose Add Button.
Enter
Go to Badge System.Enter
https://dev-advocates-sap-build-full-66wu1vlc.launchpad.cfapps.us10.hana.ondemand.com/buildapps237846.buildapps237846/index.html
Edited and previewed message Check the preview and then choose Save.
Close the side pane and choose Save.
Choose End.

Mapped data to skill outputs Map the fields as shown.
Close the side pane and choose Save.
Choose Release.

Release Choose Release.

Released Choose Show Project Version to change to the released version.
Choose Deploy.

Deploy Select your environment and choose Deploy.
Select the respective destinations

Destinations Choose Deploy.

Deployed
Go to the SAP Build Lobby.
Choose Control Tower -> Environments.
Choose your environment.
Choose Joule.

Joule tab in environment Choose Launch.

New conversation Enter
Please create a badge for the employee with the ID 1003764. The badge status is NEW and his community ID is john.doe@bestrunsap.comChoose Send.

Conversation result Choose the Go to Badge System button.
The logon screen for the application will appear.
Enter User Name:
code, Password:me??Jam7, then choose Continue.CREDENTIALS LOCKED?: Please note that the credentials are used by multiple people, and can lead to the credentials being locked. If they are locked, you can skip the rest of the step for viewing the creation of the badge within the UI.
You can view the newly created badge in the OData service manually, by opening a browser and entering the following URL and replacing with your badge ID:
https://badges.cfapps.eu10.hana.ondemand.com/service/BadgeRequests/Badges?$filter=badgeId%20eq%2034You will see the details about the badge.

Badge in Odata service Find your Badge ID in the list of requests.

Badge system list of badges
Resources
Discussion
Share feedback on this tutorial or join the conversation in SAP Community.