With the AI Toolkit, external agents can now create, update, delete, enable, and disable Flow workflows in your own store. You can also call it from the CLI. Using the API directly requires the Shopify-approved write_automations scope.
A person assembles triggers, conditions, and actions on screen in the Flow editor.
Through the AI Toolkit's shopify skill, you can ask an agent to "create this automation" or "stop it." It can also be called from the CLI.
Create, update, or delete workflows.
Activate or deactivate workflows.
Retrieve a single workflow or a list of workflows.
Parse .flow files into JSON that can be used directly with the API.
Retrieve the automation tasks (available tasks) and environment paths (referenceable paths) needed to build a workflow. This tells the agent what it can combine.
| Entry point | How to use | Prerequisites | Intended users |
|---|---|---|---|
| AI Toolkit | Ask your agent in natural language | Get AI Toolkit running in your agent, then install or update the shopify skill | People managing their own store |
| CLI | shopify store execute to call the API directly |
Not specified (the article doesn't include detailed CLI steps) | Developers who prefer the command line |
| Direct API | Call the automation APIs from a Shopify app | write_automations Request the scope and getShopify's approval |
Approved apps |
If you're new to AI Toolkit, first get it running in your agent of choice.
Existing users may already have the skill available. If not, ask your agent to update it.
Ask your agent to perform Flow operations such as creating, updating, or activating workflows.
Meaning: "Install or update the shopify skill from the Shopify AI toolkit so I can manage Flow automations"
This release is intended for managing your own store's workflows through the AI Toolkit.
Third-party apps are prevented from using the underlying APIs directly.
Using the API directly requires this scope, which needs approval from Shopify.
Flow management features are included in the shopify skill. Existing AI Toolkit users may be able to get started just by updating the skill.
shopify store executeA CLI is provided for calling the API directly without going through an agent. It's an easy entry point to build into scripts.
write_automations is a scope that requires Shopify's approval. Third-party apps are prevented from using it directly, sodon't design around shipping this as a feature of a public app.
There's an operation that parses .flow files into JSON usable by the API. It bridges existing workflow definitions into API-based management.
Because automation tasks and environment paths can be fetched, an agent can check which tasks are available and which paths it can reference before creating a workflow.Fetch → create → activateis the natural sequence. Since creating and activating are separate operations, you can add a review step before turning a workflow on.
shopify store execute to call the API directly. The article doesn't cover the .flow file format or the JSON schema details, so check the developer reference.write_automations , which Shopify must approve."