Events you can use
Options left empty match everything. With Gmail, a reply in an email conversation that already has a thread
continues that thread rather than starting a new one. The Email App’s rules are set up with its addresses: see
Email.
Create a trigger
Owners and admins create triggers.- Open Settings → Apps and the App.
- In an account’s menu, choose Triggers, then Add a trigger.
- Fill in:
- When: the event, and its options.
- Starts a thread for: the teammate.
- In project: the project its threads belong to, if any.
- Instructions (optional): what the teammate does with each event, such as “Find the cause and open a pull request if the fix is small.”
- Name: how the trigger is listed, and the start of each thread’s title.
- Choose Create trigger.
Custom apps and webhooks
For a service Brigade doesn’t integrate (Sentry, a form, your own backend), add a Custom app from the catalog in Settings → Apps. In its menu, choose Webhooks, then Add a webhook: pick the teammate, project, instructions and name, and how to Verify the sender with:- A signing secret Brigade generates, for a sender that can sign its requests.
- Nothing (the URL alone), for one that can’t. Anyone with the URL can then start a thread.
- The signature is the HMAC-SHA256 of the raw body, keyed with the secret, in hex, after
sha256=. A request with a missing or wrong signature is refused. - Send JSON when you can. Any other body is passed on as text. Bodies are limited to 1 MB.
- Senders retry. Put an
idfield in the JSON body (or anX-Request-Idheader) so a retried event doesn’t start a second thread. Without one, the same body within 5 minutes counts as one event.
What the thread receives
Each event starts a thread titled with the trigger’s name and the event, such as “Failed payments: Payment failed: $49.00”. Its first message has:- Your instructions, under “Instructions for each event of this trigger”, if the trigger has any.
- A short summary of the event, for built-in Apps.
- The raw event, marked as untrusted input. Files attached to an email come with it.
Ask a teammate in a thread
You can also ask in a thread: “every time a payment fails, look up the customer and draft an email”. The teammate picks the App account and event, or a new custom app for any service that can send a webhook, and writes the instructions.- An owner or admin approves each one. A trigger lets an outside event start work on someone’s accounts, so the teammate’s request opens an approval in the thread and under Needs you, for owners and admins only. They choose Add the trigger or Decline. A member who isn’t an admin can’t approve it in their own thread.
- Once approved, its threads run on the accounts of the member who asked, in that thread’s project. A new custom app is added, and the teammate gets the URL in the same turn so it can set up the sender itself.
- The signing secret is never written in the thread. It is saved in Settings → Secrets for that teammate’s use only.