BotFrame

Triggers · Workflow trigger

Button or select used

The Button or select used trigger as it appears in the workflow editor.

What starts it

Handle a button press or menu selection.

When the selected Discord event happens, this trigger starts the workflow and makes User ID, User mention, Channel ID, Guild ID, Component value available to connected nodes.

Typical use

Continue a workflow when a specific button or select menu is used.

How to use it

  1. Add it as the workflow startChoose Button or select used when creating the workflow’s Discord event.
  2. Connect the workflow pathConnect its Flow output to the first node that should run.
  3. Choose settings and connect valuesSet Component type, Custom ID, Event value. Connections can also supply values produced by earlier nodes.

Settings

These are the options shown when you add this trigger. A connected value can replace a setting when the workflow runs.

SettingStarting valueWhat it controls
Component typebuttonChooses the Discord interaction that starts the workflow.
Custom IDopen_ticketMatches this workflow with the corresponding Discord button, menu, or form.
Event valuecustom_idChooses which detail from the Discord event is provided to the workflow.

Value connections

Value connections pass information between nodes without changing the order of the workflow. When an input is not connected, BotFrame uses the value selected in the node or details from the starting Discord event when available.

Inputs

This trigger gets its information from the Discord event that starts the workflow.

Outputs

User IDUser
Optional
User mentionUser
Optional
Channel IDChannel
Optional
Guild IDServer
Optional
Component valueText
Optional

What happens when it runs

When the selected Discord event happens, this trigger starts the workflow and makes User ID, User mention, Channel ID, Guild ID, Component value available to connected nodes.

You can use this item in a published BotFrame workflow. You can also test it in the simulator.

These details match the node currently available in the BotFrame workflow editor.