---
title: >-
  [Developer Preview] Shopify Flow - Use return data in your actions - Shopify
  developer changelog
description: >-
  Shopify’s developer changelog documents all changes to Shopify’s platform.
  Find the latest news and learn about new platform opportunities.
source_url:
  html: >-
    https://shopify.dev/changelog/developer-preview-shopify-flow-use-return-data-in-your-actions
  md: >-
    https://shopify.dev/changelog/developer-preview-shopify-flow-use-return-data-in-your-actions.md
metadata:
  effectiveApiVersion: ''
  affectedApi: []
  primaryTag:
    displayName: Tools
    handle: tools
  secondaryTag:
    displayName: New
    handle: new
  indicatesActionRequired: false
  createdAt: '2023-07-27T20:17:54-04:00'
  postedAt: '2023-07-28T00:00:00-04:00'
  updatedAt: '2024-02-02T10:05:16-05:00'
  effectiveAt: '2023-07-28T00:00:00-04:00'
---

July 28, 2023

Tags:

* Tools

# \[Developer Preview] Shopify Flow - Use return data in your actions

Your [Flow actions](https://shopify.dev/docs/apps/flow/actions/reference#optional-add-a-custom-return-data-type) can now return data into the Flow environment, allowing your merchants to build new types of automations making use of your app and data.

Several Flow actions make use of return data, allowing merchants to use data from other services. For example the [OpenAI connector](https://help.shopify.com/en/manual/shopify-flow/reference/connectors#openai) returns AI-generated text from OpenAI's completion API. Flow's "Get data" actions, including [Get order data](https://help.shopify.com/en/manual/shopify-flow/reference/actions/get-order-data), return a list of objects that can be used in the workflow.

To use return data, your action must be defined through the [Shopify CLI](https://shopify.dev/docs/apps/tools/cli). You must use CLI version 3.48 or higher.
