ByteChef LogoByteChef

Sample Repositories

Every public ByteChef sample repository - code workflows, custom components, the embedded sample app and the ComponentKit integrations - with what each one shows.

ByteChef keeps a working sample for each way you extend or embed the platform. Every repository builds or checks locally, and its README walks through deploying it. Each table links the page that explains the feature.

Code workflows

A whole project or integration defined in code - see Code Workflows. Each sample has a local check that evaluates the file the way the server does and runs its tasks once.

Each sample includes a workflow started by the Gmail New Email trigger, one that calls the Gmail Search Email action, and notifySlackOnNewEmail, which posts each new email to Slack through a declared slack connection and picks its channel from Slack's own channel input. Each also has a workflow with a component task, a task that runs a component action named by its type: listOrders in the automation project answers an API Platform request, and logNewEmailSender in the embedded samples logs each new email's sender with the Logger component.

  • Automation project - a project deployed to Automation → Projects; it also has a workflow that takes a name input and returns a greeting. See Code Workflows.
  • Embedded catalog code project - a catalog project run by reference for your connected users; its greetOnRequest workflow has a Request trigger. See Automation Code Workflows.
  • Embedded code integration - an integration built on the Gmail component, so its Gmail calls need no declared connection. See Code Integrations.

Checking and deploying a code workflow sample

Every sample's README has the full steps. In short:

SampleLocal checkFile to deployDeploy endpointAPI key
Automation project, JavaScriptnpm run checksrc/sample_code_project.jsPOST /api/automation/v1/projects/deploy?workspaceId=<id>Workspace API key
Automation project, Pythonpython3 scripts/check.py src/sample_code_project.py name=Adasrc/sample_code_project.pysamesame
Automation project, Java./gradlew buildbuild/libs/sample-code-project-java-1.0.0.jarsamesame
Catalog code project, JavaScriptnpm run checksrc/sample_catalog_code_project.jsPOST /api/embedded/v1/automation-project-code-workflows/deployEmbedded API key
Catalog code project, Pythonpython3 scripts/check.py src/sample_catalog_code_project.pysrc/sample_catalog_code_project.pysamesame
Catalog code project, Java./gradlew buildbuild/libs/sample-catalog-code-project-java-1.0.0.jarsamesame
Code integration, JavaScriptnpm run checksrc/sample_code_integration.jsPOST /api/embedded/v1/integration-code-workflows/deployEmbedded API key
Code integration, Pythonpython3 scripts/check.py src/sample_code_integration.pysrc/sample_code_integration.pysamesame
Code integration, Java./gradlew buildbuild/libs/sample-code-integration-java-1.0.0.jarsamesame

The JavaScript and Python checks evaluate the file the way the server does and run each task once against a stub context; they need only Node.js or Python 3.9 or later and install nothing. The Java samples need JDK 25 and compile against the ByteChef SDK jars in their libs/ folder. The file part is projectFile on the two project endpoints and integrationFile on the integration endpoint, and every endpoint takes the environment from the X-ENVIRONMENT header (PRODUCTION when absent). You can also upload the file from the UI: Import Code Project on Automation → Projects or Embedded → Automations, and Import Code Integration on Embedded → Integrations. These menu items, like code workflows themselves, are Enterprise Edition only.

The JavaScript samples also carry a TypeScript version checked with npm run check:ts, and the Python samples a mypy --strict type check. Both need the @bytechef/workflow-api or bytechef-workflow-api type package, which is not published yet; see Typed authoring for installing it from the ByteChef repository.

Custom components

Your own component, uploaded and used like a built-in one - see Custom Components, which quotes each sample and walks through building, checking and deploying it.

LanguageRepositoryShows
Javabytechef-sample-custom-component-javaA Gradle project that builds a jar with one component, sampleCustomComponentJava, and one action. See the Java sample.
JavaScriptbytechef-sample-custom-component-javascriptOne source file with one component, sampleCustomComponentJavaScript, and one action. See the JavaScript sample.

There is no Python custom component sample; the Custom Components page has a Python example.

Embedded

RepositoryShows
bytechef-embedded-sample-appA reference SaaS app that embeds ByteChef end to end: the integration marketplace, connections, the Automation Hub, workflow templates and the custom workflow builder. See Sample App.
bytechef-embedded-componentkit-vercel-ai-sdkThe ComponentKit /tools endpoints consumed from a TypeScript app through the Vercel AI SDK. See Component Kit.
bytechef-embedded-componentkit-spring-aiThe same endpoints consumed from a Java app through Spring AI. See Component Kit.

Templates

Pre-built workflows and projects live in bytechef-workflows - every workflow and project there is published as a template you can preview and import. See Templates.

How is this guide?

Last updated on

On this page