Artificial Intelligence Blogs Posts
cancel
Showing results for 
Search instead for 
Did you mean: 
teng_teng69
Associate
Associate
0 Likes
1,254

This is Part 3 of a 4-part hands-on workshop series on building AI-powered conversational skills using SAP Joule Studio.

Overview

In this module, you'll use Joule Studio to create and deploy a Joule skill that consumes services from SAP S/4HANA Cloud. This is where the magic happens - you'll build an intelligent conversational skill that can interact with users and backend systems.

Prerequisites

  • Access to an SAP BTP tenant with Joule and Joule Studio
  • Completion of Part 1: Associate Environment
  • Completion of Part 2: Create Action Projects

What You'll Learn

  • How to create a new Joule skill project
  • How to configure skill inputs, outputs, and responses
  • How to integrate actions with your skill
  • How to deploy and test your skill

Estimated Time

30 minutes

Understanding Joule Studio

Joule Studio is SAP's AI-powered development environment for creating conversational AI skills. It provides an intuitive interface for building intelligent applications that can understand natural language and interact with backend systems.

Integration Focus: In this module, you'll build a skill that integrates with the SAP S/4HANA Cloud Public Edition Sales Order (A2X) OData V4 API to provide intelligent conversational access to sales order data. Official API reference: CE_SALESORDER_0001

Step 1: Create a Joule Skill Project

1. Open the SAP Build Lobby.

1-joulestudio-skill-lobby

2. Choose Create.

2-joulestudio-skill-lobby-create

3. Select the Joule Skill tile, then choose Next.

3-joulestudio-skill-create-project

4. Enter name Sales Order Assistant and description Supply Sales Order Info., then choose Review.

4-joulestudio-skill-create-skill

5. On the following screen choose Create.

5-joulestudio-skill-create-skill-2

6. Enter name showGeneralInfo and description a skill to show the general header info of a given sales order., then choose Create.

Tip: The description is important because Joule will use it to identify the correct skill to select during a conversation.

6-joulestudio-skill-create-new

Step 2: Configure Skill Parameters

7. Choose Trigger to open the side panel.

7-joulestudio-skill-trigger

8. Choose Parameters, then choose Configure beside Skill Inputs.

9-joulestudio-skill-inputs-configure

9. Click Add Input, enter:

  • Name: SalesOrderNo
  • Description: Sales Order Number
  • Mark Required
  • Choose Apply

10. Choose Design Console. You should see errors (this is normal at this stage).

10-joulestudio-skill-errors

Step 3: Add First Action - Get Sales Order

11. Choose the + between Trigger and End.

11-joulestudio-skill-firstaction1

12. Choose Call Action.

12-joulestudio-skill-firstaction2

13. Choose Browse All Actions.

13-joulestudio-skill-firstaction3

14. Select the action Get entity from SalesOrder by key and then choose Add.

14-joulestudio-skill-firstaction4

15. Choose Select a Destination, then choose + Create a Destination Variable.

15-joulestudio-skill-firstaction5

16. Enter S4HANA_CLOUD_SALES_ORDER and a description, then choose Create.

16-joulestudio-skill-firstaction6

17. Choose Inputs, then choose the SalesOrder field to open the Skill Content pane.

17-joulestudio-skill-firstaction7

18. Choose SalesOrderNo from the skill inputs.

18-joulestudio-skill-firstaction8

Step 4: Add Send Message - General Info

19. Choose the + between the first action and End.

19-joulestudio-skill-sendmessage

20. Choose Send Message.

20-joulestudio-skill-sendmessage-2

21. Choose Open Message Editor.

21-joulestudio-skill-messageeditor

22. Configure the General Info message card:

  • Type: Card
  • Title: Sales Order: [click to choose SalesOrder in the Data Mapping]
  • Text: [click to choose Sold-to Party in the Data Mapping]
  • Description: This order was created by [click to choose Created By in the Data Mapping].
  • Image: sap-icon://sales-order
  • Status State: Information

22-joulestudio-skill-message-card

23. Add an Action Button:

  • Title: Explore More
  • URL: [Sales order management page link in your S4/HANA system]
  • Image: sap-icon://detail-view

23-joulestudio-skill-message-card-section

24. Add an Edit Section with title General Info and attributes by clicking to choose values in the Data Mapping:

  • Total Amount: [choose TotalNetAmount]
  • Requested Delivery Date: [choose RequestedDeliveryDate]
  • Delivery Status: [choose OverallDeliveryStatus]

24-joulestudio-skill-message-card-section-detail

25. Choose Save to persist your message changes.

26. Choose Release.

25-joulestudio-skill-project-release

27. Choose Release in the popup.

26-joulestudio-skill-project-released

Step 5: Add Second Skill - Show Detailed Info

30. Make sure the Sales Order Assistant project is on the status of editable, click Create, then Joule Skill.

29-joulestudio-skill-secondaction1

31. Enter name ShowDetailedInfo and description A skill to show the detailed items info of a given sales order., then choose Create.

30-joulestudio-skill-secondaction2

32. Choose Parameters, then choose Configure beside Skill Inputs.

31-joulestudio-skill-secondaction3

33. Click Add Input, enter:

  • Name: SalesOrderNo
  • Description: Sales Order Number
  • Mark Required
  • Choose Apply

32-joulestudio-skill-secondaction4

34. Choose the + between Trigger and End, then choose Call Action.

33-joulestudio-skill-secondaction5

35. Choose Browse All Actions.

34-joulestudio-skill-secondaction6

36. Select the action Get entities from related _Item, then choose Add.

36-joulestudio-skill-secondaction8

37. Choose Select a Destination, then select the existing destination variable S4HANA_CLOUD_SALES_ORDER.

38. Choose Inputs, then choose the SalesOrder field to open the Skill Content pane. In the Skill Content panel, select SalesOrderNo to map it.

Step 6: Configure Detailed Message (List)

39. Choose the + before End, select Send Message, then Open Message Editor.

37-joulestudio-skill-secondaction9

40. Configure the Detailed Info message:

  • Type: List
  • Title: Sales Order Items
  • Text: Detailed item(s) are shown below:
  • Image: sap-icon://menu

41. Configure List Items by clicking to choose values in the Data Mapping:

40-joulestudio-skill-secondaction11

  • List content: [choose value]
  • Image: sap-icon://product
  • Title: [choose SalesOrderItem]
  • Text: [choose OriginallyRequestedMaterial]
  • Description: The volume is [choose ItemVolume] [choose ItemVolumeSAPUnit]
  • Status State: Information

40-joulestudio-skill-secondaction12

  • Detailed View:
    • Title: Material Info:
    • Attribute: Material Group: [choose ProductGroup]
    • Attribute: Original Plant: [choose Plant]
    • Attribute: Net Weight: [choose ItemNetWeight]
    • Attribute: Unit of Weight: [choose ItemWeightSAPUnit]

42. Choose Save.

Step 7: Deploy and Test

43. Choose your environment and then click Deploy.

 

43-joulestudio-skill-secondaction15

44. Select the S4HANA_CLOUD destination and click Deploy.

44-joulestudio-skill-secondaction16

45. Choose your environment, then choose Joule.

45-joulestudio-skill-assistant-launch

46. Choose Launch.

46-joulestudio-skill-assistant-launch-2

47. Enter Please get me the details for sales order 485511 and choose Send.

48-joulestudio-skill-conversation-end

 

Next Steps

In the final part, you'll learn how to integrate business processes and workflows into your skills, enabling end-to-end automation with email notifications.

Continue to Part 4: Process Integration

Part 3 of 4 | Joule Studio Workshop Series

1 Comment
JungHyuk
Discoverer
0 Likes

JungHyuk_0-1764554339639.png

I would like to know how to resolve this error.