🤖

Module 3 - Youtube - Supplemental Lecture 3 - LLMs and workflows

Jul 13, 2025

Overview

The lecture covers how large language models (LLMs) can be used for automating and representing business workflows, focusing on process modeling, execution, and the integration of document processing steps.

Introduction to LLMs in Workflows

  • LLMs are increasingly used to formalize and automate business processes.
  • Recent advancements allow general-purpose LLMs to generate workflows without needing specialized models.
  • Common business workflows include invoice processing, onboarding, support ticket routing, and compliance reporting.

Workflow Generation with LLMs

  • LLMs can create structured descriptions of business processes from simple prompts.
  • Example: For invoice processing, LLMs list steps such as receiving, verifying, registering, matching purchase orders, approval, and recordkeeping.

Visual Process Representation: BPMN and Flowcharts

  • Workflows can be visualized using Business Process Modeling Notation (BPMN), often as flowcharts or swim lane diagrams.
  • Swim lane diagrams assign each process step to an agent or entity for clarity.
  • Diamonds indicate decisions, rectangles are activities, and arrows show the flow.

Robotic Process Automation (RPA) and Execution Platforms

  • RPA is the automation of routine tasks via software bots (not physical robots).
  • Tasks like copying data, sending emails, and verifying documents can be handled by RPA.
  • Workflow steps generated by LLMs can be converted to BPMN XML for use in execution platforms.

Integrating LLMs with Automated Workflows

  • LLM connectors can be embedded in process steps to automate document-related tasks (e.g., validation, summarization).
  • Execution platforms load BPMN XML, parse workflow steps, and execute the process, calling LLMs when needed.

Applications and Implications

  • Automating document processing with LLMs enhances efficiency in processes involving invoices, emails, and system queries.
  • The approach is especially valuable for organizations with formalized, mature processes.

Key Terms & Definitions

  • Large Language Model (LLM) — an AI model trained on vast text data to understand and generate human language.
  • Workflow — a formal sequence of steps to complete a business process.
  • Business Process Modeling Notation (BPMN) — a standard diagramming method to visualize business processes.
  • Swim Lane Diagram — a flowchart assigning activities to agents or departments.
  • Robotic Process Automation (RPA) — software that automates repetitive digital tasks.
  • BPMN XML — an XML-based format for representing business process models for execution.

Action Items / Next Steps

  • Review BPMN and swim lane diagram formats.
  • Explore how LLM connectors can automate specific process steps.
  • Read the referenced ACM Digital Library article on LLM-based workflow generation (2023).