Buttons, menus, and forms

Build interactive messages with separate click, selection, and form-submission branches.

Buttons and select menus attach to the most recent response. Begin with Send Message, then connect those component nodes. Open Modal opens a form directly from a command or a button click; it does not need a preceding message. Give each interactive component a unique ID within the bot so its interactions reach the intended branch.

Button Row

Add buttons with a label, style, optional emoji, and disabled state. A link button needs a URL and opens it without running a click branch. Interactive buttons use their click output to run actions.

Example: send “Choose your notification preference,” add an interactive Toggle updates button, and connect that button's click output to Manage Role → Toggle. Select the updates role and use {user.id} as the member. In the click branch, this identifies the person clicking the button. Finish with a private Send Message confirmation.

Choose only a role that members should be able to assign to themselves, and keep it below the bot role.

Select Menu

Choose a menu type: text options, users, roles, channels, or mentionables. Set the placeholder and minimum/maximum number of selections. Text options have a display label and a value used by the flow.

Connect the selection output to the actions that should run after a member chooses an option. Available values include:

VariableValue
{store:selected}All selected values, separated by commas
{store:selected.0}The first selected value
{store:selected.1}The second selected value, if present
{option:selected}The selection, available to conditions

For a single-choice menu, branch on {store:selected.0} and compare it with the option's value, not its display label. A Discord role/channel/user selector returns IDs.

Dynamic choices

For a text menu, choose Options source → List variable. Supply a JSON list, such as {store:results.records} from Data → Records → List. Set templates for each item's label, value and optional description:

  • Record label: {store:item.field.name}
  • Record value: {store:item.id}
  • Description: Downloads: {store:item.field.downloads}
  • For a list of strings, use {store:item} for both label and value.

Labels and descriptions are limited to 100 rendered characters. Values must be unique, nonempty, and no longer than 100 characters. Empty lists render a disabled menu; more than 25 items are rejected. Use a smaller query limit or a separate Pagination node when needed. Fixed-choice labels, values and descriptions also support variables.

The menu does not perform searches or pick a data source itself. Data query nodes control filtering, sorting and result limits, and a menu can also consume lists from other sources.

Open Modal

Set the form title and add short or paragraph text fields. Give each field its own ID, label, and optional placeholder, required state, and length limits. Connect the submit output to the follow-up actions.

A modal must open in response to a command or component interaction. Open it before sending a reply or running image generation. Put slow actions such as image generation in the submit branch.

In the submit branch, read text with {store:modal.FIELD_ID}. For example, a field named query can supply {store:modal.query} to Data’s Search input. A string command option is another way to collect search text; a form is optional.

Ask AI to build a form

For example: "Create a feedback command that opens a modal with a paragraph answer, saves each member's latest answer in a record, and sends a private confirmation after submission."

The existing Open Modal node handles forms, questionnaires, and surveys with typed answers. Use Select Menu or Button Row when members should choose from fixed answers. In a modal flow, connect saving, processing, and confirmation actions to the submit output. Actions following the modal in the original command do not wait for an answer.

A form supports up to five text inputs, each up to 4,000 characters. This Discord input limit is separate from the larger record-storage limit.

Interaction scope

Each click, selection, or submission starts a new interaction. The user variables refer to the person interacting. Outside Pagination, values created during the original command are not automatically available again; use a Data node to save and reload anything needed later. Pagination retains its opening inputs and the current page’s values for controls rendered inside that page.

Command permission requirements should match the operations in its component branches. Test with the permissions of a normal member as well as the bot owner.