Back to library
AI
tutorial

Create Reusable AI Workflows as Custom Slash Commands

Turn repetitive multi-step AI tasks into instant slash commands.

Convert your most frequent terminal-based AI workflows into reusable custom slash commands to automate complex sequences.

Qwen

The Scenario

You frequently perform the same multi-step task, such as generating e-commerce product photos and then drafting WeChat marketing copy for them.

Before & after

The old way

Users have to remember and manually type out long sequences of prompts or commands every time they perform a specific recurring task. This often takes 10–15 minutes of repetitive work.

With AI

Run your complex workflow once and use the save feature to turn it into a custom slash command. This reduces future setup to about 1 minute.

The Prompt

/save-workflow [WORKFLOW_NAME] [STEPS_OR_DESCRIPTION]

v0.19.2 introduced the ability to save workflows as reusable slash commands. This is particularly useful for complex multi-step processes like generating different styles of covers or multi-channel marketing copy.

Source

Qwen Code Blog: AI Coding Updates and Guides | Qwen Code Docs
"workflows can be saved as slash commands and reused"