Technology Blog Posts by SAP
cancel
Showing results for 
Search instead for 
Did you mean: 
woojin
Product and Topic Expert
Product and Topic Expert
0 Kudos
672

🚀  Series Overview: Custom Agentic Chatbot with SAP AI Core and Joule Studio

 

Part 3 (1) — Setting Up Joule Studio Connection (Destination & Environment)

 

Now that your custom AI agent is deployed and running on SAP AI Core, the next step is to connect it to Joule Studio, SAP’s conversational AI workspace. In this part, you’ll set up the foundation that allows Joule to communicate securely with your deployed agent.

By the end of this section, you will:

  • Create a Destination for your AI Core endpoint
  • Configure a Joule Environment for Skill deployment
  • Build and test Actions that call your backend APIs

Once these are complete, Joule will be ready to call your backend APIs, and in Part 3 (2), we’ll turn those APIs into an interactive Skill you can deploy and chat with.

 

1. Create Destination

Destinations in SAP BTP act as centralized connection configurations. They store the endpoint URL, authentication details, and headers needed to connect external systems like SAP AI Core.

⚠️Note: When calling SAP AI Core from Joule Studio, make sure the AI Core destination is configured in the subaccount where Joule Studio is deployed. 

  1. Go to BTP Cockpit Connectivity Destinations
  2. Click New Destination, and fill in the following details as this example:

 

2. Create Environment for Joule Skills

In SAP Build, Environments act as workspaces where your Joule Skills will be deployed and executed.

  1.  Go to SAP Build → Control Tower → Environments
  2. Click Create Environment, and enter your environment name (e.g., AgenticChatbot)

This environment will host your Joule Skills, including runtime logs, variables, and deployment status.

 

3. Create Actions

In Joule Studio, Actions define how your skill communicates with external systems — in our case, the AI agent backend deployed on SAP AI Core. Each Action corresponds to a REST API endpoint. Let’s use /v2/plan as an example. Refer to this post to see how does this endpoint looks like. 

 

Step 1. Create an Action

In Joule Studio:

  • Go to Actions → Create Action
  • Choose Build from Scratch (or upload an OpenAPI spec if you have one)

woojin_0-1759733621169.png

Step 2. Define Input

Click Input tab and define what data will send to your endpoint. 

woojin_0-1759736109971.png

Step 3. Define Output

Next, go to the Output tab. Here, we specify the response format expected from /v2/plan. This ensures Joule knows how to parse and display the backend's response properly. 

woojin_2-1759736255447.png

Step 4. Test and Connection

Now, open the Test tab and click Run Test with correct destination which we set up in previous step (1. Create Destination).

woojin_1-1759736198192.png

If the test passes successfully, click Release Publish Action. Your /v2/plan endpoint is now available for use in Joule Skill as an Action.

Step 5. Repeat for Other Endpoints 

Once you’ve successfully connected /v2/plan, you can repeat the process for other endpoints. Each endpoint can be defined as a separate Action, giving you modular control over the entire workflow inside Joule Studio.

woojin_0-1759813225140.png

 

At this point, you’ve completed all the backend connectivity steps, from creating destinations to validating the API in action. The groundwork is done.

👉  Next, we’ll move to the fun part: turning this API into an interactive Joule Skill that we can use from chat interface. Let’s continue in Part 3 (2) Creating a Joule Skill (Design & Release).