Templates
Pre-built workflow templates help you start quickly. Each template is a ready-to-use workflow graph with nodes, connections, and documentation.
Available templates
| Template | Category | Difficulty | What it does |
|---|---|---|---|
| Log when a post is published | Content | Easy | Creates a log entry whenever a post is published. Simple trigger → action chain. |
| Queue new comments for moderation | Comments | Easy | Holds new comments for approval. Useful for sites that need editor review. |
| Log every new WooCommerce order | WooCommerce | Easy | Records every new order in the execution log. Good starting point for order processing. |
Using a template
- In the workflow editor, click the Templates button in the top bar
- Browse available templates by category
- Click a template to see its description, dependencies, and outcomes
- Click Install — a new draft workflow is created from the template
- Customise the workflow (change email recipients, adjust conditions, add more nodes)
- Activate when ready
Template dependencies
Some templates require specific plugins. The install dialog shows which dependencies are needed and whether they're already installed. For example, the WooCommerce template requires woocommerce/woocommerce.php.
Creating custom templates
Templates are just exported workflow JSON with extra metadata (category, description, difficulty, risk level, dependencies). To create your own:
- Build and test a workflow in the editor
- Export it via
GET /pfw/v1/workflows/{id}/export - Add template metadata (
category,description,difficulty, etc.) - Place the JSON in the templates directory