Orkes logo image
Product
Platform
Orkes Platform thumbnail
Orkes Platform
Orkes Agentic Workflows
Orkes Conductor Vs Conductor OSS thumbnail
Orkes vs. Conductor OSS
Orkes Cloud
How Orkes Powers Boat Thumbnail
How Orkes Powers BOAT
Try enterprise Orkes Cloud for free
Enjoy a free 14-day trial with all enterprise features
Start for free
Capabilities
Microservices Workflow Orchestration icon
Microservices Workflow Orchestration
Enable faster development cycles, easier maintenance, and improved user experiences.
Realtime API Orchestration icon
Realtime API Orchestration
Enable faster development cycles, easier maintenance, and improved user experiences.
Event Driven Architecture icon
Event Driven Architecture
Create durable workflows that promote modularity, flexibility, and responsiveness.
Human Workflow Orchestration icon
Human Workflow Orchestration
Seamlessly insert humans in the loop of complex workflows.
Process orchestration icon
Process Orchestration
Visualize end-to-end business processes, connect people, processes and systems, and monitor performance to resolve issues in real-time
Use Cases
By Industry
Financial Services icon
Financial Services
Secure and comprehensive workflow orchestration for financial services
Media and Entertainment icon
Media and Entertainment
Enterprise grade workflow orchestration for your media pipelines
Telecommunications icon
Telecommunications
Future proof your workflow management with workflow orchestration
Healthcare icon
Healthcare
Revolutionize and expedite patient care with workflow orchestration for healthcare
Shipping and logistics icon
Shipping and Logistics
Reinforce your inventory management with durable execution and long running workflows
Software icon
Software
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean leo mauris, laoreet interdum sodales a, mollis nec enim.
Docs
Developers
Learn
Blog
Explore our blog for insights into the latest trends in workflow orchestration, real-world use cases, and updates on how our solutions are transforming industries.
Read blogs
Check out our latest blog:
Conductor CLI Guide: Register, Run, Retry, and Recover Durable Workflows Without Leaving Your Terminal šŸ’»
Customers
Discover how leading companies are using Orkes to accelerate development, streamline operations, and achieve remarkable results.
Read case studies
Our latest case study:
Twilio Case Study Thumbnail
Orkes Academy New!
Master workflow orchestration with hands-on labs, structured learning paths, and certification. Build production-ready workflows from fundamentals to Agentic AI.
Explore courses
Featured course:
Orkes Academy Thumbnail
Events icon
Events
Videos icons
Videos
In the news icon
In the News
Whitepapers icon
Whitepapers
About us icon
About Us
Pricing
Get a demo
Signup
Slack FaviconDiscourse Logo icon
Get a demo
Signup
Slack FaviconDiscourse Logo icon
Orkes logo image

Company

Platform
Careers
HIRING!
Partners
About Us
Legal Hub
Security

Product

Cloud
Platform
Support

Community

Docs
Blogs
Events

Use Cases

Microservices Workflow Orchestration
Realtime API Orchestration
Event Driven Architecture
Agentic Workflows
Human Workflow Orchestration
Process Orchestration

Compare

Orkes vsĀ Camunda
Orkes vsĀ BPMN
Orkes vsĀ LangChain
Orkes vsĀ Temporal
Twitter or X Socials linkLinkedIn Socials linkYouTube Socials linkSlack Socials linkGithub Socials linkFacebook iconInstagram iconTik Tok icon
Ā© 2026 Orkes. All Rights Reserved.
Back to Blogs

Table of Contents

Share on:Share on LinkedInShare on FacebookShare on Twitter
Worker Code Illustration

Get Started for Free with Dev Edition

Signup
Back to Blogs
PRODUCT

Using ChatGPT to create Conductor Workflows

Riza Farheen
Riza Farheen
Developer Advocate
Last updated: February 24, 2023
February 24, 2023
5 min read

Related Blogs

Fail Fast, Recover Smart: Timeouts, Retries, and Recovery in Orkes Conductor

May 12, 2025

Fail Fast, Recover Smart: Timeouts, Retries, and Recovery in Orkes Conductor

Task-Level Resilience in Orkes Conductor: Timeouts and Retries in Action

May 12, 2025

Task-Level Resilience in Orkes Conductor: Timeouts and Retries in Action

Workflow-Level Resilience in Orkes Conductor: Timeouts and Failure Workflows

May 12, 2025

Workflow-Level Resilience in Orkes Conductor: Timeouts and Failure Workflows

Ready to Build Something Amazing?

Join thousands of developers building the future with Orkes.

Start for free

ChatGPT from OpenAI has been an internet sensation for the past few months. ChatGPT is an AI-based chatbot that can generate human-like outputs based on its trained data.

By now, most of you might have already tried ChatGPT for your personal or business needs or just to get acquainted with the tool. Our team at Orkes, too, gave a hands-on approach to demonstrate how effectively ChatGPT can be utilized for creating Conductor workflows.

Let’s take a look at how our trial progressed!

Conductor Workflows using ChatGPT

We gave an initial shot at creating a Conductor Workflow to calculate the sum of two numbers and return the value. Here’s our first attempt result:

ChatGPT generated workflow to find the sum of 2 numbers in YAML

Initially, the workflow was generated in YAML format, but we required it in JSON format.

ChatGPT generated workflow to find the sum of 2 numbers in JSON

As you can see, it’s not perfect, with certain parameters being missed. So, we just copied the code to Orkes Developer Edition: a free tool from Orkes, to visualize the accuracy. And here are the problems found.

Issues for the ChatGPT-generated Conductor Workflow

So I input these errors into ChatGPT’s interface itself.

Resolving the encountered issues

It looks like those two errors were fixed, and one of the existing parameters, ā€œversionā€, was removed. So I continued the conversation with the error message I received on this.

Resolving the encountered issue with the workflow version

So now the workflow was almost accurate with the input parameters to the workflow, num1, and num2 not defined in the workflow input. However, this is an optional thing to be added to the workflow definition, but you do need to pass it while running the workflow.

So, I stopped my trial workflow at this point and manually added the missing input parameters to the workflow. Here's the final workflow JSON:

json
{
  "name": "sum_workflow_chatgpt",
  "description": "A simple workflow to calculate the sum of two numbers generated by chatgpt",
  "version": 1,
  "tasks": [
    {
      "name": "sum_task",
      "taskReferenceName": "sum_task",
      "inputParameters": {
        "num1": "${workflow.input.num1}",
        "num2": "${workflow.input.num2}"
      },
      "type": "SIMPLE"
    }
  ],
  "inputParameters": [
    "num1",
    "num2"
  ],
  "outputParameters": {
    "result": "${sum_task.output.result}"
  },
  "schemaVersion": 2
}

Ta-da🄳! The workflow is ready now!

The next step is to set up the worker for this. Let’s take Java worker as an example and see what ChatGPT offers for the worker setup.

ChatGPT generated Java worker for Netflix Conductor

Not so perfect because a few things are missing. A complete working sample of the worker would look like this.

java
package io.orkes.samples;
import com.netflix.conductor.client.worker.Worker;
import com.netflix.conductor.common.metadata.tasks.Task;
import com.netflix.conductor.common.metadata.tasks.TaskResult;
import com.netflix.conductor.common.metadata.tasks.TaskResult.Status;
import org.springframework.stereotype.Component;


@Component
public class SumWorker implements Worker {


   private static final String TASK_DEF_NAME = "sum_task";

   @Override
   public String getTaskDefName() {
       return TASK_DEF_NAME;
   }


   @Override
   public TaskResult execute(Task task) {


       int num1 = Integer.parseInt(task.getInputData().get("num1").toString());
       int num2 = Integer.parseInt(task.getInputData().get("num2").toString());
       int result = num1 + num2;

       TaskResult taskResult = new TaskResult(task);
       taskResult.setStatus(Status.COMPLETED);
       taskResult.getOutputData().put("result", result);

       return taskResult;
   }
}

Things ChatGPT missed in Conductor Workflows

Now that we have the ChatGPT-generated Workers and Workflow ready (Although our manual intervention is therešŸ˜‰). There are a few things that ChatGPT didn’t mention throughout the trial, such as the workflow missing a few parameters, such as the task name and schema version. On repeated attempts, even some of the task type was also misinterpreted.

Additional ChatGPT generated Workflow Examples

We conducted a few more trials on several use cases, and here are the workflow definitions that ChatGPT has defined.

Shipping an order

json
{
  "name": "ship-order-workflow-chatgpt",
  "description": "Workflow for shipping an order generated by ChatGPT",
  "version": 1,
  "tasks": [
    {
      "name": "get-order-details",
      "taskReferenceName": "get_order_details",
      "inputParameters": {
        "orderId": "${workflow.input.orderId}"
      },
      "type": "SIMPLE"
    },
    {
      "name": "validate-order",
      "taskReferenceName": "validate_order",
      "inputParameters": {
        "orderDetails": "${get_order_details.output.orderDetails}"
      },
      "type": "SIMPLE"
    },
    {
      "name": "generate-shipping-label",
      "taskReferenceName": "generate_shipping_label",
      "inputParameters": {
        "orderDetails": "${get_order_details.output.orderDetails}"
      },
      "type": "SIMPLE"
    },
    {
      "name": "ship-order",
      "taskReferenceName": "ship_order",
      "inputParameters": {
        "orderDetails": "${get_order_details.output.orderDetails}",
        "shippingLabel": "${generate_shipping_label.output.shippingLabel}"
      },
      "type": "SIMPLE"
    }
  ],
  "inputParameters": [
    "orderId"
  ],
  "schemaVersion": 2
}

Telecom subscription and billing management

json
{
  "name": "telecom-subscriber-billing-workflow-chatgpt",
  "description": "Workflow for Telecom subscriber and billing management generated by ChatGPT",
  "version": 1,
  "tasks": [
    {
      "name": "get-subscriber-details",
      "taskReferenceName": "get_subscriber_details",
      "inputParameters": {
        "subscriberId": "${workflow.input.subscriberId}"
      },
      "type": "SIMPLE"
    },
    {
      "name": "validate-subscriber",
      "taskReferenceName": "validate_subscriber",
      "inputParameters": {
        "subscriberDetails": "${get_subscriber_details.output.subscriberDetails}"
      },
      "type": "SIMPLE"
    },
    {
      "name": "get-billing-details",
      "taskReferenceName": "get_billing_details",
      "inputParameters": {
        "subscriberDetails": "${get_subscriber_details.output.subscriberDetails}"
      },
      "type": "SIMPLE"
    },
    {
      "name": "validate-billing",
      "taskReferenceName": "validate_billing",
      "inputParameters": {
        "subscriberDetails": "${get_subscriber_details.output.subscriberDetails}",
        "billingDetails": "${get_billing_details.output.billingDetails}"
      },
      "type": "SIMPLE"
    },
    {
      "name": "process-payment",
      "taskReferenceName": "process_payment",
      "inputParameters": {
        "billingDetails": "${get_billing_details.output.billingDetails}"
      },
      "type": "SIMPLE"
    },
    {
      "name": "update-subscriber-details",
      "taskReferenceName": "update_subscriber_details",
      "inputParameters": {
        "subscriberDetails": "${get_subscriber_details.output.subscriberDetails}",
        "billingDetails": "${get_billing_details.output.billingDetails}"
      },
      "type": "SIMPLE"
    }
  ],
  "inputParameters": [
    "subscriberId"
  ],
  "schemaVersion": 2
}

Note: We have not tested the above ChatGPT-generated workflows.

ChatGPT: Capabilities & Limitations

Taking our Conductor example using ChatGPT, it is clear that you cannot rely on an AI tool alone. ChatGPT being an AI model, has its own limitations too.

Code delivered in Seconds

It’s truly impressive that it helps in generating codes in a few seconds, which a developer may take hours to do. But it’s not a cent percent deliverable code. As in our case, you’ve witnessed that a manual interpretation of the code is required.

Outdated Model

The current version of ChatGPT is based on the 2021 data. We are in the first quarter of 2023 now, which makes certain discrepancies in the results it provides. Let’s wait and see what future updates can bring in.

Output Quality

The quality of the answers is not always the same. Throughout our trial process, we witnessed some ups and downs in the quality of the solutions provided. However, ChatGPT itself claims to learn and evolve with time.

Summing Up

As an AI-based model, ChatGPT has its own set of capabilities and limitations. Based on our trial, we have observed that while AI chatbots can be helpful in generating code samples, they may not always deliver complete solutions. However, you can leverage similar AI tools and make your work 10x faster, similar to how Conductor helps in building distributed applications 10x faster. šŸš€

So have you tried ChatGPT yet? If not, try creating a few Conductor workflows and let us know your results.