# Fallback values in flow (webhook) template

**URL:** <https://community.directus.com/t/fallback-values-in-flow-webhook-template/769>\
**Category:** Help\
**Tags:** flows\
**Created:** [July 15, 2025, 10:55am UTC](https://community.directus.com/t/fallback-values-in-flow-webhook-template/769 "2025-07-15T10:55:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ted\_Steen](https://sea2.discourse-cdn.com/flex002/user_avatar/community.directus.com/ted_steen/32/627_2.png) [@Ted\_Steen](https://community.directus.com/u/Ted_Steen)\
**Post date:** [July 15, 2025, 10:55am UTC](https://community.directus.com/t/fallback-values-in-flow-webhook-template/769/1 "2025-07-15T10:55:43Z")

</div>

I’m passing some arguments to a webhook flow ({{$trigger.payload.my\_field}}) but if it is undefined I want it to default to an empty string. Can’t find any documentation about how to achieve that, can someone point me in the right direction?

---

<div class="post-metadata">

**Author:** ![ahmad\_quvor](https://sea2.discourse-cdn.com/flex002/user_avatar/community.directus.com/ahmad_quvor/32/310_2.png) [@ahmad\_quvor](https://community.directus.com/u/ahmad_quvor)\
**Post date:** [July 15, 2025, 1:35pm UTC](https://community.directus.com/t/fallback-values-in-flow-webhook-template/769/2 "2025-07-15T13:35:08Z")

</div>

Hello,

You can use script to transform the payload and define a empty string.
