Part of
AI agent development
Implementation

n8n + SAP Joule Studio: Integration Guide

A SAP Joule Studio agent calls n8n over MCP, and n8n runs the steps for a supplier follow-up and unmatched invoice triage.

n8n and SAP Joule Studio connect through the Model Context Protocol (MCP), the open standard AI agents use to call tools in other systems. You expose an n8n workflow as an MCP tool. Then you register the n8n MCP endpoint as a destination in the SAP BTP cockpit, and add that MCP server to a Joule agent in Joule Studio. When a user asks Joule for something the workflow handles, the agent calls the tool. n8n runs the steps in a fixed order, with its own credentials and log, and the result comes back to Joule. Building it for you is AI agent development work we take on.

The split is useful because each side is good at a different job. Joule understands the request and knows the user's SAP context. n8n runs a sequence across SAP and non-SAP systems the same way every time. It retries what fails, waits for a person where you ask it to and records every step. SAP and n8n are also moving closer on their own. On May 12, 2026 SAP announced a strategic investment in n8n. SAP and n8n also announced a multi-year agreement under which n8n's workflow platform will be embedded natively in Joule Studio. Neither announcement gives a date for that, so this guide covers the connection you can build today.

What do SAP Joule Studio and SAP BTP provide?

Joule is the assistant your users talk to in SAP applications. Joule Studio is where you extend it. SAP describes Joule Studio as its development environment for custom AI agents, apps and workflows. It runs on SAP BTP (SAP Business Technology Platform), so you need a BTP account with the right service assignments and Joule licensing. It has two builders. The skill builder, released earlier in 2025, creates Joule skills for rule-based, deterministic tasks. Since SAP's announcement of December 19, 2025, the agent builder has been generally available. It creates agents that plan and run multi-step work across systems.

For this integration, three details in SAP's announcement matter. Agents can connect to external MCP servers through destinations configured in the BTP cockpit. Human-in-the-loop oversight, where a person reviews critical decisions, is on by default. Joule Studio also enforces principal propagation, which passes the user's identity along. A triggered skill or agent therefore runs within the user's own security context and authorization checks. That last point covers SAP's side. Once a call goes out to an external MCP server, the destination's authentication decides what identity n8n sees. Design n8n's side with the same care. Our SAP Joule Studio page covers the skills and agents we build inside SAP.

n8n MCP server and client: three ways to connect Joule

n8n has three MCP features, and they point in different directions. The first two make n8n an MCP server that Joule can call. The third makes an n8n agent an MCP client of someone else's server.

OptionWhat it exposesAuthUse it when
MCP Server Trigger nodeTool nodes in one workflow, at one URLNone, bearer or headerYou want a small, hand-built tool set for Joule
Instance-level MCPWorkflows you mark Available in MCPOAuth or a personal access tokenYou want one connection and central control
MCP Client Tool nodeAnother server's tools to an n8n agentBearer, header, OAuth2An n8n agent needs tools from elsewhere

For a Joule agent, the MCP Server Trigger node is usually the better start. It supports streamable HTTP and server-sent events, and it only runs the tool nodes attached to it. You control exactly what each tool does. Instance-level MCP is broader. Every client you connect sees every workflow you have enabled, and its tools can also create and edit workflows. n8n's docs note that you cannot restrict specific workflows to specific clients. If you run n8n in queue mode with several webhook replicas, route all MCP traffic to one dedicated replica, because n8n's docs warn that the connections break otherwise. Our explainer what is an MCP server covers the protocol itself.

How a Joule request runs through n8n

Step through one request, from the user's sentence in Joule to the approval in Teams and the answer back in Joule, and watch the execution log fill up.

Worked example
One Joule request, run as an n8n workflow
1

A buyer asks Joule

In Joule, a buyer asks to chase every supplier whose compliance certificate has expired. The custom Joule agent built in Joule Studio reads the intent and the buyer's identity.

2

The agent picks an n8n tool over MCP

The agent's tool list includes an MCP server, reached through a destination in the BTP cockpit. It calls the request_supplier_documents tool with the buyer as a parameter.

3

n8n checks the call and starts the workflow

The MCP endpoint in n8n requires a bearer token, so a call without the destination's credential is refused. The workflow starts and gets an execution ID.

4

n8n reads SAP and non-SAP data

An HTTP Request node reads the vendor master from S/4HANA through its OData API with a read-only technical user. A second node reads certificate dates from the compliance database.

5

A person approves before anything is sent

n8n drafts three supplier emails and posts them to the buyer in Microsoft Teams. The workflow waits. Nothing leaves the company until the buyer approves.

6

n8n sends, logs and answers Joule

The buyer approves all three. n8n sends them, opens a tracking ticket and returns a short summary to Joule, which tells the buyer what was sent.

Execution log
  1. 10:14:02 joule agent=vendor-compliance user=buyer-12 intent=chase_expired_certs
  2. 10:14:03 mcp tools/call request_supplier_documents dest=N8N_MCP
  3. 10:14:03 n8n exec 48211 trigger=mcp auth=bearer ok
  4. 10:14:05 read s4.vendors=212 cert_db.expired=3
  5. 10:14:07 approval channel=teams items=3 status=waiting
  6. 10:21:40 approved=3 sent=3 ticket=CMP-1182 returned=joule
Illustrative names and IDs. Joule decides which tool to call; n8n decides what happens, in a fixed order, and a person signs off before anything leaves the company.

Two choices in that flow carry most of the risk. The n8n tool reads S/4HANA with a technical user, a system account that can only read, so a confused agent cannot change master data. The step that sends anything outside the company waits for a person. n8n supports that natively. You can require human approval in Slack, Microsoft Teams, Gmail, Outlook and other channels before an AI agent runs a specific tool. If the person denies the call, n8n cancels it and reports that back to the agent. Our post on MCP security covers tokens, gateways and approvals across every MCP server you run.

How to connect Joule Studio to n8n, step by step

  1. Build the workflow in n8n first. Make it work from a manual trigger with test data from a sandbox S/4HANA system, read-only where it can be, with an approval step before any write.
  2. Expose it as an MCP tool. Add an MCP Server Trigger node, connect the workflow as a tool, and require bearer or header authentication. Write the tool description as one sentence that names the business action, the inputs and the result. The Joule agent reads that description when it chooses a tool.
  3. Make the endpoint reachable. If n8n runs on a public HTTPS address, BTP reaches it directly. If it runs inside your network, SAP's Cloud Connector is the standard route from BTP to on-premises systems. It runs as an agent in your network and acts as a reverse invoke proxy, which opens the connection outward. You do not open the firewall to inbound traffic. Confirm in your sandbox that your Joule Studio release accepts the destination type you choose for MCP.
  4. Create the destination in the BTP cockpit. Point it at the n8n MCP URL and store the credential there, so the token never sits in the agent definition.
  5. Add the MCP server to the Joule agent. In the agent builder, add the MCP server as a tool through that destination, and write the agent's instructions so it knows when to use it.
  6. Test in the sandbox, end to end. Ask Joule for the task in a few different phrasings. Check that the call arrives in n8n's execution log with the right inputs. Refine the tool description until the agent picks it reliably.
  7. Promote to production. Transport the Joule Studio project with your Basis team, the administrators who run your SAP systems. Promote the n8n workflow with its own credentials per environment, and name an owner for the log.

Which work belongs in Joule, n8n or SAP?

The integration goes wrong when one side does the other's job. An agent improvises a sequence that should be fixed, or a workflow tries to interpret a vague request. Pick a piece of work to see where it belongs.

Picker
Which side should own this piece of work?
Joule skill
Joule agent
n8n workflow
Existing SAP integration
A named person

Questions answered from S/4HANA data belong in a Joule skill, and multi-system planning in a Joule agent. Fixed cross-tool sequences belong in an n8n workflow. High-volume SAP-to-SAP sync belongs in your existing SAP integration, and payment or purchase order changes stay with a named person.

The SAP side remains the system of record. n8n reads and writes through SAP's APIs with a scoped technical user, never through the database. S/4HANA's APIs are documented on the SAP Business Accelerator Hub. For the wider pattern of agents reading and writing ERP and CRM data, see enterprise AI architecture.

Two n8n and SAP workflows worth building first

Supplier follow-up from Joule. The example above is a good first build because it reads SAP and writes nothing to it. A procurement manager asks Joule which active vendors have open compliance flags. An n8n tool gathers the data from S/4HANA and the compliance database, drafts the follow-ups and waits for approval before sending. It is the Joule conversation on our SAP Joule Studio page, with n8n doing the cross-system work.

Unmatched invoice triage on a schedule. Not every workflow starts in Joule. An n8n workflow can run each morning and read supplier invoices that lack a matching purchase order or goods receipt. An agent node classifies each mismatch and posts a triage card to the finance team in Teams, with the evidence attached. Joule can then answer questions about the queue through the same MCP tools. Our AI invoice automation service builds this kind of flow.

The approach is the one we already run on other ERPs. A Dutch Odoo implementation partner tried for a year to build a dental care group's scheduling inside Odoo itself. We built an agent layer over the ERP that now schedules 1,500 appointments a week. It runs on n8n and Odoo, not SAP, but the principle carries over. The ERP stays the system of record, and the automation works on top of it. Ovidius is an n8n Select Partner, listed in n8n's own expert directory, and our n8n page covers self-hosting, queue mode and plans.

Compare before you build
AI Agent Platform Comparison

n8n, Zapier, Sim and the other agent platforms side by side, so you can see which one fits before you build.

Compare platforms

Frequently asked questions

Can SAP Joule call n8n workflows?

Yes. A Joule agent built in Joule Studio can connect to an external MCP server through a destination in the BTP cockpit. n8n can act as that MCP server through its MCP Server Trigger node or instance-level MCP. The agent then calls an n8n workflow as a tool.

Does n8n have an SAP S/4HANA node?

No. n8n's built-in node package has no SAP node. Workflows reach S/4HANA through its OData and REST APIs, using the HTTP Request node and a scoped technical user. That also keeps every call visible in the execution log.

Do we need n8n Enterprise to connect to SAP?

Not necessarily. Community, Business and Enterprise all self-host and run queue mode. They differ in sign-in, change control and security tooling. Choose the plan by your security team's requirements, such as single sign-on and a secrets vault, rather than by the SAP connection itself.

Can self-hosted n8n stay behind our firewall?

Yes. SAP's Cloud Connector runs inside your network and opens the connection outward, so BTP can reach systems there without inbound firewall rules. Test that your Joule Studio release accepts that destination type for MCP before you commit to the design.

Is n8n becoming part of Joule Studio?

Yes, according to both companies. SAP and n8n announced on May 12, 2026 that n8n will be embedded natively in Joule Studio under a multi-year agreement. Neither company has published a date, so plan on the MCP connection described here until it ships.

We build Joule skills and agents, the n8n workflows behind them and the approvals between them, on self-hosted n8n in your own cloud. Start with the SAP Joule Studio page, prove one workflow with an AI pilot, or book a discovery call.

More on this topic

Put your first workflow on the board

Answer a few questions about your team and what you want automated, then a senior partner scopes it with you on the call.