Discord Bot icon

Discord Bot

Send messages and manage slash commands for Discord bots

Send Modal

AI-generated

Summary

Sends a Discord modal as an interaction response, using the interaction ID and token either from the incoming item or entered manually.

Inputs

  • Use Interaction Data From Input — Whether to read interactionId and interactionToken from the incoming item, e.g. from the Discord Bot Trigger.
  • Interaction ID — Required only when Use Interaction Data From Input is false. The Discord interaction ID to respond to.
  • Interaction Token — Required only when Use Interaction Data From Input is false. The Discord interaction token to respond to.
  • Modal Custom ID (required) — Unique identifier for the modal; returned in the Modal Submit trigger payload as customId.
  • Modal Title (required) — Title shown at the top of the modal, max 45 characters.
  • Text Inputs — Builder for up to 5 text input fields. Each field has its own Custom ID and Label, plus optional Min/Max Length, Placeholder, Pre-Filled Value, Required flag, and Style (Short single-line or Paragraph multi-line).
  • Or Provide Components as Raw JSON — Advanced: raw JSON array of action-row objects for the modal components. When non-empty, overrides the Text Inputs builder.

Output shape

side-effect operation

The source does not describe a transformed item payload for this operation. The visible effect is the modal being shown to the Discord user who triggered the interaction.

Examples

Example 1: A user triggers a slash command; the workflow reads interactionId and interactionToken from the Discord Bot Trigger item, builds a modal with a few text inputs, and sends it so the user sees a form to fill out.

Sends a Discord modal (popup form) as a response to a Discord interaction.

Links

Discussion