Skip to main content

Shopify Flow: manage automations through AI Toolkit

You can now use an external agent to manage your Shopify Flow workflows through AI Toolkit. This release is for managing your own store's workflows via AI toolkit; third-party apps are prevented from using the underlying APIs directly.

What you can do:

Through AI Toolkit, you can ask your agent to manage automations in your shop:

  • Create, update, and delete workflows.
  • Activate and deactivate workflows.
  • Get a single or list of workflows.
  • Parse a .flow file into JSON that can be used with the API.
  • Get automation tasks and environment paths in order to build the workflow.

How to get started

You can use AI toolkit or the CLI to manage your automations. Using the new APIs directly require the write_automations scope, which is a Shopify approval scope and must be approved by Shopify.

AI toolkit

If you haven't previously used AI toolkit you should first get it working with your agent of choice.

If you previously used AI toolkit, the skill may be already available to you. If not you can ask your agent to update the shopify skill:

Install or update the shopify skill from Shopify AI toolkit so that I can manage Flow automations

CLI

You can use the shopify store execute command to call the API directly.

API

To use the automation APIs directly, you must request the write_automations in a Shopify app. This scope must be approved by Shopify.

Related docs

Was this page helpful?