Workflow send_message: optional username and avatar (Slack webhook parity)
Motivation
Slack incoming webhooks accept username and icon_url, so each integration shows up as its own app. Buzz webhook workflows have no equivalent: messages show as the workflow owner on desktop and as the relay key on mobile (#6323). Today the only way to get a distinct sender is a separate bot identity, which needs an admin to add it, a private key held by the service, and Nostr signing code.
Proposed solution
Add optional, templated username and avatar fields to send_message:
- id: post
action: send_message
text: "{{trigger.message}}"
username: "Auto-Enablement"
avatar: "https://example.com/icon.png"
The relay adds them as tags on the relay-signed message, for example buzz:display-name and buzz:display-avatar. Clients show the name and avatar, with a "workflow" badge, only when the relay signed the message.
Alternatives considered
- A dedicated bot identity per integration. This works, but it's heavy for simple notifications.
- A per-workflow identity derived by the relay. This is more involved and raises membership questions.
Additional context
- To limit impersonation, the badge should always be shown, and a name matching an existing member could be rejected.
- Related: #6323 (mobile author attribution) and #5769 (
{{trigger.text}}is empty for webhook triggers). - Duplicates: none found. #6323 is the closest.