build-action-flows

Introduction to Action Flows

24 páginasver na Celonis Academy

Let's Roll [06:00]

Ready to Automate?

Welcome to Action Flows! In the world of Process Intelligence, identifying a bottleneck or a value opportunity is just the first half of the journey. The real impact happens when you act on those insights.

Action Flows are the transactional engine of the Celonis Platform. They connect Process Intelligence directly to your tech stack, allowing you to turn insights into system-level reality through a low-code interface. Whether updating an ERP record, alerting a team, or triggering a bot, Action Flows bridge the gap between "knowing" and "doing".

What you will learn

In this course, we will move from foundational concepts to building your very first Action Flow. By the end, you’ll be able to:

Define the core purpose of Action Flows and the value they bring to business operations. Identify where Action Flows fit in the Celonis platform (and understand how they differ from the Orchestration Engine). Identify the three fundamental components of every flow: Triggers, Modules, and Connections. Navigate the Studio interface and use the drag-and-drop builder with confidence. Create, test, and troubleshoot a simple Action Flow from scratch.

Action Flows as your Stateless Execution Engine

It is helpful to think of Action Flows as the "transactional, fast-twitch muscle fibres" of your process. They are designed to be stateless, meaning they execute specific tasks in seconds or minutes without needing to manage the long-term "state" of a business process. They are the high-speed workers who perform the heavy lifting behind the scenes of your automated business logic.

Are you ready to take control of your processes? Let's dive in.

Start your Automation Motor

Next Lesson Start your Automation Motor

Before we dive into the technical details, it’s time to prepare for action.

A core part of this course is a hands-on building project. To master Action Flows, you won't just be reading about them; you will be constructing a functional flow that connects to live web services. You will learn to fetch real-time data (such as current weather or currency rates), process that information using AI and logic, and trigger a communication—closing the loop from start to finish.

Access to Central Training Environment Required

This course contains hands-on exercises that require access to this central Celonis training environment.

Not sure if you have access? Click below and we'll either add you to the environment or show you how to access it. Please make sure to disable adblockers on this page if the button is not working for you.

Add me or check my access

Create Your Workspace

We recommend navigating to Studio and creating a dedicated Space and Package specifically for this course. This will keep your training assets organized.

No Knowledge Model Required

Unlike many other assets in Studio, an Action Flow can technically live on its own to complete specific tasks. For this first project, you won't need to worry about complex data modeling—we'll focus entirely on the logic of the flow itself.

---

The Role of Action Flows [07:00]

Defining Action Flows: The "What" of Automation

Action Flows are the transactional engine of the Celonis Platform.

Architecturally, Action Flows are a specialized iPaaS (Integration Platform as a Service) built directly into Celonis. They provide a secure, high-speed bridge between your process intelligence and your tech stack. By using a low-code interface, they remove the need for complex custom coding, allowing you to turn insights into system-level reality in seconds.

Why "Transactional"?

In the world of automation, "transactional" refers to discrete, short-burst units of work. Action Flows are built for precision and speed, handling tasks such as:

Automatically updating specific records in an ERP. Sending a targeted alert to a team member based on a live condition. Triggering a bot to download a specific document.

Three Ways to Close the Loop

Action Flows aren't just for "autopilot" automation; they are flexible enough to support various business strategies. Depending on the complexity of the task, you will typically build one of three types of flows:

Full Automation Human-in-the-Loop Intelligent Reporting

The "Awareness" approach. The flow gathers data from multiple sources to create a specialized report, an email summary, or a Jira ticket to alert a team that action is required.

Whether fully automated or guided, Action Flows are often the hidden logic powering the "Action buttons" your business users interact with in their daily Celonis Views.

Action Flows vs. Process Orchestrations

As you explore the Celonis Platform, you will encounter two primary ways to drive action: Action Flows and the Orchestration Engine (referred to in Studio as a Process Orchestration asset). While they often work together, they serve different purposes.

The easiest way to understand the difference is through the analogy of an Orchestra 🎷:

CATEGORY ACTION FLOW PROCESS ORCHESTRATION Analogy

The Musician

Think of an Action Flow as a specialized musician. A violinist is an expert at one specific task: playing the violin. They are fast, precise, and transactional.

The Conductor

The Orchestration Engine (or Process Orchestration asset in Studio) is the Conductor. The Conductor doesn’t play an instrument; instead, they manage the entire performance. They know which musician should play and when.

State

Stateless

When the song ends, the musician doesn't need to "remember" the notes to perform the next task.

Stateful

The Conductor must remember the "state" of the entire symphony—where we are in the music and what happens next.

Focus

Action Flows are built for Task Automation. They execute a specific system update or notification in seconds and then finish their job.

The Orchestration Engine is built, as the name implies, for Process Orchestration. It manages long-running processes that span days or weeks, coordinating multiple Action Flows and human tasks over time.

While it is important to understand how these two engines complement each other, this course focuses exclusively on Action Flows. If you are completing this as part of the "Build Action Flows" training track, you will find a deeper dive into the relationship between these assets in a later asset.

If you're eager to learn all the details about the "Conductor", you can explore the "Orchestration Engine Fundamentals" course in the Academy at any time.

Technical Capabilities and Connectivity

Next Lesson Technical Capabilities and Connectivity

Now that you understand what an Action Flow is and how it differs from Process Orchestration, it’s time to look under the hood. Action Flows are built for the modern enterprise, providing high-speed integration across your entire digital ecosystem.

Global Connectivity

Action Flows aren't limited to the Celonis platform; they are your bridge to the rest of the world.

1,000+ System Connectors

Native, "plug-and-play" support for cloud and on-prem giants like SAP, Oracle, and Salesforce.

Universal HTTP

If it has an API, you can connect to it. Use standard calls to trigger custom scripts in ML Workbench or any external web service.

On-Prem Agent

Security is paramount. The On-Prem agent creates a secure "tunnel" to private networks, allowing you to reach systems behind corporate firewalls without compromising safety.

Enterprise Intelligence

A connection is only as good as the logic behind it. Action Flows process data with professional-grade intelligence.

Celonis Native

This isn't just an "add-on." Action Flows can query Data Models, interact with Knowledge Models, or write back to Data Pools in real-time.

Native GenAI

Stop building isolated bots. Embed intelligent reasoning, categorization, and summarization directly into any process step.

IT Governance

Built for scale. Full SSO support, professional-grade monitoring, and comprehensive audit logs ensure every execution is accounted for.

Technical specs like 1,000+ connectors and GenAI logic are impressive on paper, but they exist for one reason: to solve complex business friction. Let’s move from the how to the where and explore how this connectivity creates measurable value in real-life enterprise scenarios.

---

Action Flows in Practice [09:00]

Process-Agnostic Use Cases

Action Flows are versatile enough to handle tasks that aren't tied to a specific business department. These process-agnostic use cases are often the easiest way to start closing loops because they address universal pain points found in every office.

The Value: Labor Productivity

By automating these micro-tasks, you remove the manual friction that clutters a professional's workday. This allows teams to shift their focus from monitoring data to making decisions.

Key Examples:

Intelligent Notifications

Instead of a user constantly checking a dashboard, an Action Flow pushes a targeted alert to communication platforms like Slack or MS Teams only when a specific threshold is hit (e.g., "Alert me if an invoice over 100k GBP is overdue").

Approval Gateways

Creating a simple "Yes/No" interaction. A flow can wait for a manager to click a button in an email, then proceed based on that specific human input.

Data Translation

Acting as a "middleman" between systems—formatting dates, converting currencies, or cleaning text before it reaches a final report.

Document Handling

Automatically moving or renaming files. For example, when a contract is marked "Signed" in one system, the flow triggers a bot to upload the PDF to a specific folder.

While these agnostic tasks save time on an individual level, Action Flows also operate on a much larger scale. Beyond just sending alerts or moving files, they can act as the structural backbone of your IT landscape—ensuring that your core enterprise systems speak the same language.

On the next page, we’ll see how Action Flows transition from helper tasks to heavy-duty system integration.

Automation and Integration

Beyond simple alerts, Action Flows serve as a professional-grade Integration Platform (iPaaS). In this role, they act as the connective tissue between disparate software systems, ensuring that data moves seamlessly across your entire organization.

The Value: Data Integrity and Accuracy

When systems are disconnected, humans are often forced into manual data reconciliation—the tedious task of moving information between windows and systems by hand. This is not only slow but introduces a significant risk of human error. By automating these integrations, you ensure that every system has the same "single source of truth," keeping your process digital twin perfectly in sync.

Key Examples:

System-to-System Synchronization

Ensuring your CRM (like Salesforce) and your ERP (like SAP) are always in sync. When a customer’s address is updated in one, the Action Flow instantly triggers an update in the other.

Hybrid Connectivity (The On-Prem Agent)

Many organizations still keep their most sensitive data on local servers. Action Flows use a secure On-Prem Agent to bridge the gap, allowing your Celonis cloud environment to securely trigger actions inside your private, local networks.

Description of the image: Deep-dive IT Architecture

This diagram visualizes the IT architecture for Celonis Automation, focusing on how on-premise agent integrate with Celonis.

First, within the 'Customer Server (typically same as Celonis Extractor Server)' boundary, is the 'Celonis On-Prem Agent'. This agent communicates with an on-premise SAP system via a BAPI/RFC call, initiated by the agent calling the SAP BAPI with a specified SAP user. The Celonis On-Prem Agent also polls for tasks to Celonis. This communication is secured via HTTPS, encrypted over TLS 1.2, and passes through a firewall before reaching 'Celonis EMS'.

The 'Celonis' section highlights the 'Automation Scenario', which involves a combination of business logic (Celonis PQL) and third-party integrations (like SAP BAPI). These automations can be set up by a Business Analyst. Below this, it states that Celonis continuously identifies and automatically executes automations. The diagram also shows 'Celonis data models' and a 'Data Pipeline' feeding into the Celonis platform, with icons for SAP, Oracle, Microsoft Excel, Salesforce, and Google Chrome representing potential data sources.

Sustainability & ESG Enrichment

When a new shipping route is logged in your logistics system, an Action Flow can automatically send that distance data to an external Carbon Footprint Calculator. It then writes the CO2 emission estimate back into your Celonis Data Model to provide real-time sustainability insights.

Pro Tip: Universal Connectivity

While there are thousands of pre-made modules for major platforms, you can connect to any modern software using the HTTP module. If a system has an available API, Action Flows can communicate with it.

Synchronizing systems ensures your data is accurate across the board, but the real magic happens when you apply Process Intelligence to those systems. On the next page, we’ll see how Action Flows move beyond simple data movement to solve high-impact, process-specific challenges like credit blocks and duplicate payments.

Process-specific Applications

The most effective use of Action Flows occurs when they are targeted at specific bottlenecks within a core business process. Here, the flow isn't just "helping" with a task; it is actively protecting your margins and accelerating your cycle times.

The Value: Working Capital and Customer Experience

At this level, value is measured in dollars and days. By automating process-specific decisions, you prevent value leakage (like paying an invoice twice) and improve service levels (like shipping an order the moment a block is cleared).

Key Examples:

O2C: Credit Block Removal P2P: Duplicate Prevention AP: Touchless Processing

For low-risk, high-volume vendors, an Action Flow can perform a "3-way match" (comparing the Purchase Order, Goods Receipt, and Invoice). If they align within set tolerances, the flow posts the invoice for payment automatically.

The Impact: Massive reduction in cost-per-invoice and frees up AP teams for strategic vendor management.

Conclusion: From Practice to Performance

You’ve now seen how Action Flows scale from simple, process-agnostic alerts to complex, process-specific executions that protect your bottom line. Whether it’s clearing a credit block in seconds or syncing global ESG data, the goal remains the same: closing the loop between insight and action.

You have the theoretical foundation and the business context. Now, it’s time to look under the hood. In the next chapter, we move from the "Why" to the "How," exploring the actual components you’ll use to assemble these powerful automations.

---

Navigation [09:00]

Use Case Introduction

Before we open Celonis Studio and create our first Action Flow, let’s define exactly what you are going to build. For your first Action Flow, we will keep it simple and focused on the core "Trigger and Action" logic.

The Scenario: Your AI Sports Consultant

Throughout this chapter, we will build a single, cohesive Action Flow from scratch. To make this practical, we are going to solve a common dilemma: "Should I exercise outside today?"

The Mission

You are building an AI Sports Consultant. This automation will, in a first step, look up the weather in a dedicated location specified by you. It won't stop there, though; it will analyze the data and give you a personalized recommendation on which sport to pursue based on your own preferences and the current conditions in your city.

How it works

We will build this in four logical stages:

The Trigger: You provide the name of the city you are in. The Data: The flow fetches live weather data (e.g., temperature, rain, etc.) for that city. The Intelligence: An AI module will process that weather data alongside your personal sports preferences to "think" of the best recommendation. The Action: The Action Flow sends you a notification with the final verdict. Why this Use Case?

This scenario covers the three pillars of every professional Action Flow: Data Integration, Logic/Reasoning, and Automated Action. Mastering these here will allow you to build much more complex business automations—like AI-driven credit checks or automated procurement agents—later in your career.

Studio Navigation and Asset Creation

In the Celonis platform, Action Flows are managed within Studio as part of a Package. Think of a Package as a container that holds all the different assets—like Views, Knowledge Models, and Action Flows—needed for a specific project.

Locating your Workspace Open Studio: From the Celonis navigation bar, select Studio. Enter your Package: You will typically work within a dedicated space for your team or project. If you haven't yet created a dedicated package for this course, please go ahead and do so. Create the Asset: To start your weather project, click the + Create Asset button and select Action Flow as the asset to create.

Give the new Action Flow a name of your choice (e.g., My first Weather Flow).

Keep the key as is. The only time when you'll have to touch a key is if you're trying to create an Action Flow (or any other asset in Studio) with the same name as an asset that already exists or has existed.

A description - even though technically optional - should always be provided, especially when multiple people are working in the same package and on the same Action Flows.

Keep the default settings of both the Execution type (Automatic) and the Number of consecutive errors (3). We will touch on what these settings mean later in your learning journey.

Celonis will now generate a new, blank canvas where your Action Flow will live.

The Action Flow Editor

Next Lesson The Action Flow Editor

Now that you have created your asset, you are inside the Action Flow Editor. This is your primary workspace for the rest of this chapter. Watch the video below for an overview of the Action Flow Editor:

Press O for more options

2:47

Transcript

Welcome to the Action Flow editor. Once you’ve created your asset in Studio, you’ll land here. Think of this central Canvas as your blueprint—a visual workspace where you’ll drag, drop, and connect modules to define exactly how your data moves.

Adding a new module is as easy as clicking the center bubble and selecting from hundreds of pre-built apps.

Let's add, for example, the 'Get current weather' module. Upon clicking, the configuration panel opens instantly, allowing you to define your settings right away.

Whenever you make changes, be sure to hit 'Save' in the top menu bar. Here, you’ll also find advanced options like 'Import Blueprint'—perfect for those times you want to jumpstart your project using a pre-configured template instead of starting from scratch.

The "Run Once" button lets you… well - run the Action Flow once. This is helpful for initializing new modules, testing flows or simply manually triggering Action Flow executions.

The bubbles that appear once you run an Action Flow let you inspect both the inputs that the respective module received and used as well as the outputs it produced. The outputs are what succeeding modules can use in the progression of the Action Flow execution.

Closing the editor takes you to the Monitoring page. This is your command center. When you're ready to go live, you can set your Action Flow to 'Active' here.

You can also track every execution of your flow—past and present—right here.

You immediately see when an execution hits a snag. To investigate what has happened, just click into it. Both the simple and advanced logs provide the forensic detail you need to understand exactly what went wrong, guiding you to adjust your logic so those errors don't happen again.

To make changes to your Action Flow, simply hit 'Edit'.

Keep in mind that there is also a 'Viewing' mode that looks very similar to the editor but is mainly used for, as the name suggests, viewing an Action Flow as well as adjusting its scheduling.

If you find yourself there, just look for the 'Edit' button at the top to start building again.

You've just seen a sneak preview of what you will start to build yourself now: We'll add the Weather module we've just seen in the video to our own Action Flows. Let's go!

_Media:_

  • blob:https://academy.celonis.com/42ce13c2-fe94-4005-93f6-4b88d2259b0c

---

Add and Run the Weather Module [04:00]

Add and Configure "Get current weather"

Now that you are familiar with the interface, it’s time to add your first module. In Action Flows, every automation begins with a module that either starts the process or performs a specific task.

Adding the Module Open the Module Library: In your blank Action Flow, click the center "plus" bubble. Search for Weather: Type "Weather" into the search bar. Select the Action: From the list of available options, select "Get current weather". This module is designed to fetch real-time meteorological data for any location you specify. Configuring the Location

Once the module appears on your canvas, the configuration panel will open automatically. For this first version of your flow, we will provide a static location:

Enter location by: Let's stick to the default "cities" for now, but feel free to explore other options available. City Field: Click into the "City" or "Location" field and type a city of your choice (e.g., "Munich" or "Edinburgh"). Save the module configuration.

Hit also the Save button in the top menu bar to ensure your configuration is saved in its entirety. Your first module is now ready to be tested.

Run the Weather Module once

Next Lesson Run the Weather Module once

With your location configured and saved, it’s time to see the Action Flow in motion. Running the flow manually is the best way to verify that your connection to the weather service is working and that the data being returned is what you expect.

Executing the Flow

To trigger your flow, click the Run once button located in the top-left corner of the editor.

Because this is a simple, single-module flow, the execution will happen almost instantaneously. You will know it was successful when a green checkmark appears below the module.

Inspecting the Output

The most important part of running a flow is seeing the data "payload" that was fetched.

Open the Inspector: Look for the small white bubble (the "execution inspector") that appears above the top-right of the Weather module after it runs. Click it to open the log of that specific run. Note that for a single-module run, it will already have opened automatically once you hit the Run button. [cite: 414, 415, 416] Check the Data: You will see two sections: Input (the city you typed in) and Output (the current weather conditions in that city). Click on Output to see the real-time data retrieved, such as: Temperature Weather description (e.g., "Clear sky" or "Rain") Humidity and wind speed

This "Output" is what Celonis calls a Bundle. In the next steps, you will use the information found in this bundle to send a personalized notification.

The Path to Professional Automation

Running the module with a fixed city name was a great "smoke test" to prove whether the connection works. But in a real business environment, you wouldn't want to open the editor and change the city name every time you need a new report. To make this flow truly useful, we need to make it dynamic. By using Inputs, we can transform this from a static script into a flexible tool that can fetch weather data for any location on demand. Let’s look at how to set that up.

---

Dynamic Mapping and Inputs [03:30]

Set up a Location Input

To move from a static test to a dynamic automation, we first need to define an entry point for our data. This is done through the Inputs panel (found in the top menu bar), which creates a dedicated field for a user to provide information — like a city name — before the flow starts.

Creating the Input Parameter Open the Inputs Panel: Click the Inputs tab in the top menu bar of the Action Flow editor. Add a New Parameter: Click + Add item to create your first input. Configure the new input's name: Name it, e.g., City or Location. Type: Select Text from the dropdown menu. Keep "No" for the "Required" setting - We will see later why. Save: Click the Save button within the panel to finalize the input.

The Bigger Picture: Connecting to the Business

While we are creating this input manually today, think of this as a doorway. In a real business scenario, this input is what allows your Action Flow to communicate with the rest of the Celonis platform.

For example, a business user might click a button in a Celonis View (i.e., their dashboard) to trigger this flow. When they do, the specific data they are looking at—like a vendor's location or a shipping destination—is automatically passed into this input. By setting this up now, you are building an automation that can be triggered directly from the heart of the business process.

The Vending Machine Analogy

Think of an Action Flow like a vending machine. To make it work, the machine needs an Input—the code you type into the keypad (like "A1").

Without a keypad, the machine would be "hard-coded" to only ever give you the same bag of chips. By adding an Input, you are giving your flow a Keypad. This allows the user to tell the flow exactly which "item" (in our case, which City) they want it to process without having to take the machine apart and rewire it every time.

Now that you have your "keypad" (the Input) set up, you need to tell the Weather module to listen to it. Let's do this next.

Map the Input

Next Lesson Map the Input

What we are going to do now is replace the so far static location value in the weather module with our new input variable. This process is in the Action Flows world, usually referred to as Mapping. Instead of the module looking at a static word like "Munich," it will now look at whatever value is stored in your City input variable.

How to Map the Input Open the Weather Module: Click on your Get current weather module to open its settings. Clear the Old Data: Delete the city name you typed in earlier from the City field.

Find your Variable: Click into the now-empty City field. A mapping panel will slide out. Look for the section labeled Action Flow Inputs, which you'll find inside "Custom and system variables".

Insert the Variable: Click on your City variable to map it to the Weather module's city field. It will somewhat look like a "data pill", what you see in the city field now.

What is a data pill?

The "pill" is a visual representation of dynamic data. Whenever you see one, it means the Action Flow will plug in a value at the moment the flow runs. It’s no longer a fixed instruction; it’s a dynamic placeholder.

Save and Re-Run the Flow

Once the pill is in place, click OK to close the module settings and hit the Save button in the top-left menu bar. Your Weather module is now officially "wired" to your input.

Now it’s time to test the "keypad." By running the flow now, you will see how the input you created actually controls the Weather module. Click once again "Run once". Unlike before, the flow won't start immediately. A window will appear asking for your City input.

Enter your desired city and click "OK".

As before, open the output and inspect the results. Everything will still look the same as before, BUT…

Why this is a Milestone

You have just transitioned from a fixed script to a functional app. While it might seem simple for a single module, think about the bigger picture:

Imagine an Action Flow with 10 or 20 different modules—all of which need to know the name of the city to do their jobs. Without an Input, you would have to manually open every single module and type the city name 20 times (and possibly, change it).

By using an Input, you create a single source of truth. You type the city name once at the start, and the data pills automatically distribute that value across every module in your flow. This doesn't just save time; it ensures your automation is consistent, error-proof, and professional.

---

Build a Full Recommendation Flow [11:30]

Recap: The Action Flow's Goal

Now that we have our data source (Weather) and our user input (City), it’s time to move into the "Intelligence" phase of our build. We aren't just going to report the temperature; we are going to use Generative AI to act as a personal sports consultant.

The Two-Phase Build

To create a truly smart automation, we are structuring this flow in two distinct phases:

Phase 1: Data Gathering (Complete): We’ve already set up the flow to ask for a city and fetch the local conditions. This provides the "Facts." Phase 2: AI Reasoning (Next): We will add a Create AI Prompt module. This module will take the weather and combine it with personal preferences (e.g., I love running, but I don't like the rain) to generate a tailor-made sports recommendation. The Goal

Instead of a message saying "It's 15°C and raining," our flow will produce a personal recommendation like: "Since it's raining in London and you prefer indoor activities, why not skip the run and head to the local climbing gym today?"

Why use AI in Action Flows?

In a business context, this is one way of how you can handle "unstructured" decisions. While a standard module can tell you an invoice is late, an AI module can look at the history of that vendor and draft a specific, polite yet firm email based on the severity of the delay. We are using the "Sports Coach" example to master this exact logic.

Mapping Data between Modules

Now that our flow knows the weather, we need to pass that information to our "brain"—the AI. This is a major step: You are about to perform Module-to-Module mapping, which allows different services to share information automatically (and it is irrelevant whether the next module utilizes AI or not at this point ).

If using a personal training team and not the central team for data analysts, please enable the AI addendum as shown below.

Accept the AI Addendum (Personal Training Team only)

Note: In the central team, the AI Addendum is already accepted. Check the URL to see if you're in a central or personal training team:

Central training team URL: data-engineer-analyst-training.training.celonis.cloud

Personal training team URL: [unique ID]-[Date of creation].training.celonis.cloud

👉🏼 We usually recommend using the central rather than the personal training team!

🚨 Enable AI Services

Please ensure to read, understand, and accept the Celonis Artificial Intelligence Addendum in your training environment. Otherwise, you cannot complete the practical exercises in this course. To do so, navigate to "Admin & Settings", and then to "AI Settings":

Here, you have the option to enable AI Services as required:

Prerequisites: "No Run, No Data"

Before you can map data from one module to another, there is a golden rule in Action Flows: You must run the module at least once. The Reason: Celonis needs to "see" the actual data structure coming back from a module to know what variables are available.

If you try to map a module that hasn't executed yet, your mapping panel will be empty. Since we ran our Weather module in the last lesson, the data pills are ready and waiting for us.

Adding the AI Module

We can therefore go ahead and add the AI module to our Action Flow, which will take in the current weather conditions as an input, along with the rest of the prompt informing it what outputs we expect from it.

To add the "Create AI Prompt" module:

Hover over the right side of your Weather module and click the (+) icon. Search for Create AI Prompt (part of Celonis Apps) and click to add it. Because you used the plus icon, the two modules are now physically linked on your canvas. Draft your Prompt

It’s time to configure the AI Consultant. We want you to try drafting the prompt yourself. Click on the AI module, select a model of your choice (recommended: gpt-4o-mini since it's a light-weight task), and set the Role to Developer/System.

While there are other roles like Assistant or User, we use System here to define the core instructions and laws for our consultant. We won't go into the technical deep-dive of AI roles in this introductory course, but for now, remember that "System equals Rules".

Your prompt (the text content) should contain two parts:

The Facts: Use data pills from the Weather module (like Temperature and Description) to tell the AI what is happening outside. The Logic: Describe your personal sport preferences. For example: You love cycling and don't mind the cold, but if it's slippery (e.g., there’s rain, snow, or ice), you'd rather go to the gym.

Give it a try! Type your instructions into the prompt field and map the necessary weather pills where they belong.

One Possible Solution

How did you do? While there are many ways to write a prompt, here is one way to structure it:

"You are a sports consultant. The current weather is [Description], and the temperature is [Temperature]. The user prefers to cycle outside and doesn't mind the cold, but if the streets are slippery (e.g., there’s rain, snow, or ice), they’d avoid it at all temperature levels. Otherwise, they’d go to the gym. Give them a one-sentence recommendation based on the weather conditions and their preferences."

The way to map the weather outputs to the prompt is the same as before, when mapping your input to the weather module's location field.

Run the entire Action Flow

It is time to test your current Action Flow configuration! Once you hit run and specify the location, take a look at the AI module's output. Do you see something similar as below?

Hint: the final message output hides inside "choices" and "message".

Architect's Note: Is AI the right tool?

Using a "Create AI Prompt" module here is a powerful and fast way to get a recommendation. However, as an Action Flow (and AI) architect, you should always consider the cost of intelligence.

AI is Heavy: Using an LLM for a simple "If it's raining, go swimming" decision is computationally expensive and consumes more energy than standard logic. The Alternative: In a more advanced flow, you could achieve this same result using a Router and Filter conditions. It’s more complex to build, but it's "cheaper" - both in terms of processing credits and environmental impact.

We are using AI today for speed, but always ask yourself: "Does this need a brain, or just a simple rule?"

It is now time to complete the circle and send our recommendation to ourselves via Email. After all, you wouldn’t want to access Celonis and this particular Action Flow every day to receive your recommendation, would you?

Send Recommendation via Email

Now for the final piece of the puzzle. We have gathered the data and processed it with AI; now we need to deliver that insight where you’ll actually see it. By using the Email module, we ensure the recommendation finds you, rather than you having to go looking for it.

Adding the Email Module

Similarly to before, add a "Send an Email" module to your flow. If you get stuck adding the module, expand the solution below.

How to: Add the Email Module Extend the Chain: Hover over the right side of your Create AI Prompt module and click the PLUS icon. Select Email: Search for the Email module (or "Send an Email"). Connection: Notice how your flow now has a clear three-step progression: Weather → AI → Email. Mapping the "AI Insight"

In the configuration panel for the Email module, you need to decide what goes where. This is where you combine your own words with the AI's smart output.

Connection: Add e.g. your Gmail account To: Type in your own email address. Subject: Type something catchy like: "Your Daily Sports Recommendation for " and map the City Input pill from the very beginning of your flow. Content: This is the most important part. Click into the body of the email, find the Create AI Prompt section in the mapping panel, and select the Message pill.

The Final Test Save: Click the Save icon in the top-left. Run once: Click the Run button and enter your city (e.g., "Munich"). Check your Inbox: Wait a few moments. You should receive an email that gives you a personalized sports instruction based on the AI's reasoning.

Reflection: The Power of End-to-End Automation

Look at your canvas. You’ve built a bridge between a global weather service, an AI model, and your personal communication tools. In a business setting, replace "Weather" with "Overdue Invoices" and "Email" with "Payment Reminders," and you can see how this logic scales to solve real problems.

Here's a challenge (optional)!

Right now, your email notification looks rather…. Raw. How could you modify the prompt in the AI module to include - for example… - HTML tags into the response that ensure a nice look and feel of the final email?

We don't provide a solution to this challenge in this course, but we highly encourage you to share your results on our Academy group in the Celonis Community (or just pay it a visit to get a hint on how to solve this…)!

---

Let your Notification Go Live [05:00]

Version and Deploy your Action Flow

Now that your "AI Sports Consultant" is fully built and tested, you are ready to move it from the "Drafting Table" to the "Real World." In other words, you would like to activate it. Perhaps you remember from the video earlier, when you took a tour around the Action Flow editor, that there's a particular toggle on the Action Flow's monitoring page.

So far, it's still greyed out. What needs to be done before you can activate the Action Flow and receive your daily sports recommendation is to create a new version of your package and deploy it.

We will not go into the details in this course of what versioning and deploying a package entail. For a quick overview on versioning and deploying, check out this video.

Create a version

Click the Create Version button at the top right inside your package.

As a best practice, only select the current asset, i.e., the Action Flow you've been working on and would like to activate. Otherwise, you may accidentally set something live that a colleague is currently working on, and that is not yet meant to be visible to others.

Confirm your choice by clicking "Create Version" again.

Deploy the version

Even after creating a version, Celonis needs to know which version you want to use for automation. Click the "Deploy" button at the top right inside your package. Most likely, you will want to deploy the "latest" version, which should be selected in the dropdown on the left. Confirm your choice by clicking "Deploy" once more.

You are now ready to finally activate your Action Flow and set up the desired scheduling!

Schedule and Activate your Action Flow

Next Lesson Schedule and Activate your Action Flow

Now that your package is deployed, it’s time to hand the steering wheel over to Celonis. We will first set the timing for our flow, and then attempt to "flip the switch" to make it live.

Setting the Schedule

Before we activate the flow, we need to define its rhythm. Keep in mind that scheduling is done via the Viewing page, not inside the editor.

For your scheduling, select (for example):

Frequency: Choose "Every day." Timing: Set it to 8:00 AM.

Activating the Flow

Now, let's make it official. Go back to your Action Flow monitoring page. Note how the history panel on the right-hand side tracks the changes you've just made to the schedule.

Look at the Active toggle in the top-right header…. And flip the switch! The disappointing thing is… nothing happens immediately - unless it was around 7:59 AM when you defined the schedule.

Here's one more disappointing fact (spoiler alert!): If you came back tomorrow morning to your Action Flow, you would encounter the following crime scene:

❗️ Your Action Flow has FAILED! But WHY? Click the option you think is correct:

A: Something went wrong during the deployment

In this case: not the answer. Try again.

B: No Input is provided

Correct! In a way, the Action Flow doesn't know how to continue! From the history panel, you can easily click into the erroneous execution and reveal the details of why it failed. In this case: "Missing value of required parameter 'city'". So the missing input is the issue. Well done!

C: The Upside Down released a demogorgon.. It ate the Action Flow

Nice try.. But no.

With this failure, we’re dipping our toes into the vast world of Error Handling. In the next lesson, we’ll explore a simple fix for this specific issue. Keep in mind, however, that this is just the first step in a much larger journey of learning how to build resilient, 'bulletproof' Action Flows that can handle the (un)expected.

BEFORE YOU MOVE ON - VERY IMPORTANT! Please DEACTIVATE your Action Flow!

"I do not activate and schedule Action Flows in my Training Environment!"

— Your Subconsciousness

While it's tempting to see your creation run on its own, every execution of the Create AI Prompt module consumes AI Tokens from the training team's allowance.

The Trade-off: Those tokens are a shared "currency" across all AI-related products in your training team. Every token used for a recurring sports recommendation cannot be used later to learn about Process Copilot, AI Annotation Builder, or other advanced intelligence features. The Architect's Mindset: Professional Action Flow architects build for sustainability. Part of mastering the platform is learning to prioritize high-value AI tasks over low-value automated ones.

Back to our error, though. Let's see how to deal with it.

---

Basic Error Handling [07:00]

Identify the Error Type

Experiencing your first failing Action Flow is never easy… But: in the world of automation, it's actually a vital point of your journey. An error isn't a broken flow—it's the platform telling you exactly where your logic needs a safety net. Before we fix the flow, we need to understand what went wrong.

The "Bundle Validation Error"

If you click on your failed execution, you will likely see a Bundle Validation Error. This is the platform's way of saying: "I tried to process this step, but a required piece of data was missing or invalid." In our case, because the flow ran on a schedule, the "City" input was empty, and the Weather module didn't know how to proceed.

Remember the Input's "Required" setting from before? If that was set to "Yes", our Action Flow would also have failed, but due to an initialization error.

The Action Flow "Error Gallery"

While Bundle Validation is our current hurdle, here are the other "usual suspects" you’ll meet as an architect:

Connection & Authentication Errors: Your "key" to a service (like an API key or password) has expired or changed. Data Type Mismatches: You tried to give a module a word when it specifically asked for a number (e.g., trying to calculate the temperature of "Sunny"). Rate Limit Errors: You are asking a service for data too quickly, and it has temporarily blocked you to protect its servers.

Now that we’ve unmasked our error, it’s time to move from diagnosis to resolution. While the 'Rescue Path' we are about to build is a powerful fix for this specific hurdle, keep in mind that we are just scratching the surface. In the wider world of Action Flows, error handling is a deep discipline—ranging from complex data filtering to 'self-healing' logic.

Check out our course "Handle Errors in Action Flows" to dive into the deeper waters of error handling. This course is also part of the "Build Action Flows" training track.

For now, let's master the foundational skill of building an emergency fallback.

Rescuing the Flow with Error Routes

Next Lesson Rescuing the Flow with Error Routes

We've successfully identified the cause of our failing Action Flow execution. Rather than letting the flow simply stop, we can build an Error Handling Route that provides the missing data and keeps the Action Flow moving.

What is an Error Handling Route?

An Error Handling Route is a specialized path that only activates if a module fails. It allows the flow to "catch" the error and try a different approach instead of crashing. An error handling route is always specific to a single module in your Action Flow, not the entire thing.

Implementing the Error Handling Route

After consultation with the user of our sports recommendation, we decided that if the input is missing, we go for the hometown of the user as a default.

🤔 We cannot just add a "default" value to our location input. Even if this may be the first intuition.

Therefore, we need a second backup "Get current weather" module. This backup module will be the first of the error-handling route; this time with a hard-coded location (just as we had set it up in the beginning).

An Error Handling Route can be added to any module and is triggered if that particular module cannot proceed due to an error. To add and define it:

Add the handler: Start by right-clicking the module that you want to add the error handling route to; in this case, it's our (existing) "Get current weather" module. Select "Add error handler". Add backup module: On this new route, add a second Get current weather module. Instead of using a data pill, hardcode your home city (e.g., "Munich"). Insert the Resume directive: After your backup weather module, add the Resume directive.

The Resume directive is one of many error-handling directives available in Action Flows.

It replaces the module output with a substitute output when an error happens. It is the "bridge" that takes you back to the main path. In the Resume directive's settings, you must provide the "Expected" data for the next modules: map the Temperature and Condition from your backup weather module here.

If you don't want to wait for the dedicated course, check out the documentation to learn more about the Resume and other error-handling directives.

👉🏼 Give it a try, adding the error-handling route, including the Resume directive, to your Action Flow. If you get stuck, check out the solution below.

This is how you could do it...

The following solution video shows how to add the error handling route. The video has no sound.

Steps taken in solution video Go to Action Flow Editor. Right-click "Get current weather" module. Select "Add error handler". Select (another) "Get current weather" module. Specify hard-coded value for "City" (e.g. "Landsberg am Lech"). Click Save. Add another module. Select "Resume". You don't have to provide fallback values for every output of the "Get weather module". Fallbacks for "Description" and "Temperature" are sufficient since these are the only data pills mapped later on in succeeding modules. Map "Description" data pill from the error-handling "Get current weather" module to the "Description" field. Map "Temperature" data pill from the error-handling "Get current weather" module to the "Temperature" field. Click Save (of the Resume module configuration). Optionally, auto-align the flow via the button in the top menu bar. Save the Action Flow. Exit the Action Flow Editor. Create a new Version. Deploy the new Version. Deactivate Action Flow. (Re-)Activate Action Flow. Inspect successful Action Flow execution via history panel and retrace error-handling steps.

Here's what a "successful" execution of the error handling route looks like:

_Media:_

  • https://fast.wistia.net/embed/iframe/5tknb4n2q1?videoFoam=true

---

Knowledge Check and Next Steps [04:00]

Wrap Up

Congratulations! You have officially transitioned from a curious observer to an Action Flow builder. You’ve successfully constructed a logic-driven, AI-powered automation that gathers live data and delivers personal insights directly to your inbox.

Learning Recap

During this journey, you have achieved the following:

Mastered the Components: You can now identify and use Triggers, Modules, and Connections. Dynamic Design: You learned how to use Inputs and data pills to create flexible automations that work for any use case. AI Integration: You successfully pinged an LLM to perform "unstructured" reasoning within an automated process. Resilience: You took your first steps into Error Handling, building a "Rescue Path" to ensure your automation survives even when data is missing. What’s Next?

This course was just the beginning of your Action Flows journey. To continue growing your skills, we recommend you follow along the upcoming milestones in the "Build Action Flows" Training Track.

Good luck ⭐ Your Celonis Academy team

Knowledge Check — 5 questões
1. What is the fundamental purpose of the "System" role in the AI Prompt module?
2. Which sequence of steps is required before the "Active" toggle can be enabled?
3. Why do we avoid enabling schedules in a Training environment?
4. What does a "Bundle Validation Error" typically indicate in the Execution History?
5. How does the "Resume" directive help with error handling?