Skip to main content

Introduction

What is workflow?

During the development of Mini Programs and Official Accounts, developers often encounter the following scenarios:

  • Receive callback messages from the WeChat server, such as Official Account event notifications and WeChat Pay payment callbacks;
  • Run scheduled tasks, such as data cleanup and statistics, at 0:00 every day;
  • Orchestrate task logic, such as batch processing tasks using cloud functions and other scenarios.

To help developers better address the above business scenarios, we have launched the Workflow feature. Workflow is a visual orchestration tool for server-side business logic introduced by WeChat CloudBase, helping developers organize and manage business logic more clearly, flexibly, and efficiently.

Workflow feature has the following key advantages:

  1. Visualization: Developers configure and debug by dragging and dropping simple nodes, rapidly developing business processes to make them more intuitive and understandable, while facilitating communication and collaboration among team members;

  1. Scalability: Workflow provides script nodes based on cloud functions, supporting the implementation of complex logic with custom code to meet diverse business scenarios and requirements.

What capabilities does workflow offer?

Capability 1: Receive and process messages and events pushed by the WeChat Official Account platform, including:

Capability 2: Supports JS script nodes for quickly writing and debugging custom code

Capability 3: Supports quick replies to WeChat Official Account or Mini Program customer service messages. By using the "Respond to HTTP Request" node to return custom responses, it enables message reply functionality

Workflow Roadmap

The WeChat CloudBase team is planning to launch more workflow-related capabilities, such as: scheduled tasks, Webhook, receiving WeChat Pay callbacks, WeChat/WeChat Pay Open APIs, cloud function scheduling, etc. We warmly welcome developers to participate in the beta testing and fill out the survey to provide us with more valuable suggestions.

Workflow Usage Process

Step 1: Download and install the latest stable version of WeChat Developer Tools

WeChat Developer Tools version requirement: 1.06.2306020 or above Download

Step 2: Use the CloudBase Console

Go to the CloudBase Console in WeChat DevTools, enter the cloud functions list. You can open the workflow plugin panel by clicking Create Workflow.