Adding custom configuration to flow trigger

hi,
I am developing a custom flow trigger which is needed some configuration before merchant can use it, is it possible to add custom configuration for triggers?

i need to implement something like Flow’s Scheduled time Trigger:

or Customer joined segment (Shopify TRIGGER):

but i can’t find any documentation for it.

1 Like

You should be able to add additional fields to your trigger via the shopify.app.toml file: Flow trigger reference

[[extensions]]
name = "Auction Bid"
type = "flow_trigger"
handle = "auction-bid"
description = "Your description"

[settings]

  # Adds a customer selection field
  [[settings.fields]]
  type = "customer_reference"

  # Adds a single line text field 
  [[settings.fields]]
  type = "single_line_text_field"
  key = "your field key"

There trigger can have multiple fields, and of different types such as:

Thank you for your response,

I’ve used those setting, but it will not render anything on trigger setting,
It seems those setting are used for defining the conditions of trigger and merchant can use them on Condition nodes based on the values that triggered the flow.

It is fine so far, in fact those setting are needed, but i want to configure the trigger node itself.

No you cannot add configuration fields on the trigger itself. Flow currently uses those as a way to filter the event subscription for a few triggers, but those are very much tied to the event/subscription. Since a trigger does not call your code, I’m not sure how having configuration fields would benefit you. What are you trying to do?