The "echo" action type does just that: it echoes your input back to you. It's super useful for testing!

For developers

Options

Literally anything you can express in JSON. :)

Examples

Something super simple:

{% action "echo" %}
  {
    "hello": "world"
  }
{% endaction %}

But, as with all scripts, you can mix in Liquid variables, and here is where this action type becomes useful:

{% action "echo" %}
  {
    "event_topic": {{ event.topic | json }}
  }
{% endaction %}

… or even this:

{% action "echo" event %}

Use this in a task with a bunch of event topics to see a log of everything that's happening in your store.

Echo actions have zero side-effects – use them as often as they're useful. :)

Did this answer your question?