Skip to content

Code generation for workflows

A workflow is a sequence of API methods combined to simulate a specific process that users want to execute with their tool. Currently, you can create a workflow for a single version of the library in a given programming language.

View existing workflow

  1. From the left hand side menu, navigate to Code > Workflow.

workflow screen

  1. Select the language, organization, service, and version for which you want to view the code for the workflow. After you make the selection, the list of existing workflows should be visible.

workflow filter selection

  1. Click the Show button icon to view the workflow generated code instantly. Previously generated code is retrieved from our cache, ensuring faster access without needing to fetch it from LLMs again.

view workflow code

  1. The code is visible even for unpublished workflows. To publish, click the “Publish” button.

publish workflow code


Generate code for a workflow

  1. Click the “Add Workflow” link on the main workflow screen.

New workflow start

  1. Select the required parameters for your new workflow

select criteria workflow

  1. Give your workflow a meaningful name that is easy for you and others to understand.

workflow name

  1. Enter your workflow as a prompt on the screen and press Enter. Wait for a moment while the workflow code is generated. If you’re satisfied, publish the workflow; otherwise, reprompt to refine the code.

generate and publish workflow