Quick overview
This workflow listens to Trello board events via a webhook, filters for card creations and list moves, and posts a formatted update to a Discord channel using an incoming webhook, with a fallback Discord alert if the primary post fails.
How it works
- Triggers when Trello sends a webhook event for activity on the configured board.
- Extracts key details from the Trello action payload (card name, URL, member, and list context).
- Filters events to keep only card creations and updates that include a destination list (card moves).
- Chooses the correct message format for a newly created card versus a moved card.
- Posts the formatted message to Discord using an incoming webhook.
- If the Discord post fails, captures the card and error details and posts a warning message to Discord as a fallback alert.
Setup
- Create and add Trello API credentials (API key and token) for an account that has access to the target board.
- Set the Trello board ID to watch (for example via the
TRELLO_BOARD_ID environment variable or by replacing the placeholder in the Trello trigger).
- Create a Discord incoming webhook for the target channel and add it as a Discord webhook credential for the Discord posting step (and optionally a second webhook for the failure-alert channel).