Tagged Posts

#Tutorial

6 posts tagged with "Tutorial"

tutorial

Creating Your First Agent Workflow

Mar 21, 2026 4 min read

Creating Your First Agent Workflow

In this tutorial, you’ll create a simple workflow that uses an AI agent to analyze a code repository and generate a summary. This will introduce you to Mule’s core concepts: agents, workflows, and job execution.

What You’ll Build

By the end of this tutorial, you’ll have:

  1. An AI agent configured for code analysis
  2. A workflow with an agent step
  3. A completed job with analysis results

Step 1: Configure an AI Provider

Before creating an agent, you need an AI provider. If you haven’t already, configure one:

Read Article
tutorial

Building a Custom WASM Module

Mar 21, 2026 6 min read

Building a Custom WASM Module

WASM modules extend Mule with custom validation and processing logic. In this tutorial, you’ll build a module that validates code changes meet certain criteria before allowing a workflow to proceed.

What You’ll Build

A WASM module that:

  • Receives code change data via JSON input
  • Validates the changes against configurable rules
  • Returns validation results with error codes

Prerequisites

  • Go 1.26+ installed (Mule uses Go 1.26)
  • TinyGo or standard Go for compilation
  • Basic understanding of JSON processing

Step 1: Set Up Your Project

Create a new directory for your module:

Read Article
tutorial

Async Workflow Execution

Mar 31, 2026 5 min read

Async workflow execution allows you to run long-running workflows without blocking your application. This is essential for tasks like building large projects, running tests, or processing multiple repositories.

When to Use Async Workflows

Use async workflows when:

  • Workflows exceed timeout limits - Long-running tasks that would timeout synchronously
  • Parallel execution needed - Trigger multiple workflows simultaneously
  • Background processing - Start a workflow and check status later
  • WebSocket integration - Real-time updates without polling

Creating an Async Workflow

1. Mark Workflow as Async

When creating a workflow, set is_async to true:

Read Article
tutorial

Git Integration

Apr 4, 2026 6 min read

Git Integration

Mule provides powerful Git automation capabilities through WASM modules. This tutorial covers how to automate Git operations like creating branches, managing worktrees, and pushing changes from your workflows.

Overview

Git integration in Mule is achieved through dedicated WASM modules that expose Git operations as workflow steps. These modules use host functions to safely execute Git commands in isolated working directories.

Available Git Modules

ModuleDescription
git-worktreeCreate and manage Git worktrees for parallel development
git-branch-pushCreate branches and push to remote repositories
github-commentPost comments to GitHub issues and pull requests
github-issuesFetch and filter GitHub issues
create-pull-requestCreate GitHub pull requests programmatically
issues-to-markdownConvert GitHub issues to formatted Markdown

Getting Started

Prerequisites

  1. A Git repository initialized and accessible from Mule
  2. Git credentials configured (personal access token or SSH key)
  3. WASM modules uploaded to your Mule instance

Setting Up Git Credentials

Store your Git credentials securely:

Read Article
tutorial

Working Directory Management

Mar 30, 2026 3 min read

Working Directory Management

Mule supports working directory management for workflows, allowing you to execute workflow steps in isolated directories. This is particularly useful for git operations, file processing, and parallel development workflows.

Overview

Each job can have its own working directory that persists across workflow steps. This enables:

  • Git operations: Create worktrees, commit changes, and push branches from isolated directories
  • File isolation: Process files without affecting the host filesystem
  • Parallel execution: Run multiple jobs concurrently in different directories
  • State persistence: Maintain state between workflow steps

How It Works

When a job is created with a working directory:

Read Article
tutorial

Batch Processing and Parallel Execution

Mar 30, 2026 5 min read

Batch Processing and Parallel Execution

Mule supports parallel workflow execution through WASM modules, allowing you to launch multiple workflows simultaneously and process data batches efficiently.

Overview

Instead of executing workflows sequentially, you can use WASM modules to:

  • Launch multiple workflows in parallel: Process several items simultaneously
  • Batch processing: Apply the same workflow to multiple inputs
  • Parallel task execution: Run independent tasks concurrently
  • Result aggregation: Collect and combine results from multiple executions

Key Concepts

Host Functions for Workflow Execution

Mule provides host functions that WASM modules can use to trigger workflows and agents:

Read Article