> For the complete documentation index, see [llms.txt](https://documentation.siteglide.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.siteglide.com/cms/automations/guides-automations/a-custom-liquid-action-example.md).

# A Custom Liquid Action Example

Once you've read how our [introduction to Automations](https://documentation.siteglide.com/cms/automations.md), you're ready to start creating your own. Below is an example of a custom action in Automations.

A custom action is a great place to run a [GraphQL mutation](https://documentation.siteglide.com/developer-tools/graphql/tutorials/tutorial-9-using-mutations-to-create-new-records.md) if you want to modify something in the site's database.

This example will log data if the WebApp item's name contains 'Hello'.

<figure><img src="https://584571746-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ft7n2OYNNUr9PgpkBD2eX%2Fuploads%2Fgit-blob-091cc067d7105fb6fc7ae89f8fcb46d03e8cd081%2FSiteglide-Automations-Custom-Example.png?alt=media" alt=""><figcaption></figcaption></figure>

Learn more about the Log liquid tag here: <https://documentation.platformos.com/api-reference/liquid/platformos-tags#log> - one caveat, to read logs you won't usually be able to use pos-cli with a Siteglide site, use siteglide-cli instead:

{% content-ref url="/pages/ssFQTAVwK3FHNXq9ZdnI" %}
[Reference](https://documentation.siteglide.com/developer-tools/cli/reference.md)
{% endcontent-ref %}
