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": {
    "type": "echo",
    "options": {
      "hello": "world"
    }
  }
}

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

{
  "action": {
    "type": "echo",
    "options": {
      "event_topic": {{ event.topic | json }}
    }
  }
}

… or even this:

{
  "action": {
    "type": "echo",
    "options": {{ event.data | json }}
  }
}

Combine 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?