Search

Notifier Plugin Reference

On this page

The provider-neutral notifier facade lets workflows send conversational notifications without coupling them to Slack, Discord, or another channel-specific implementation. Concrete adapters are discovered as external plugins and are addressed by their backend name.

This facade is separate from the legacy notify provider. Existing notify.send workflows continue to work; use notifier.* when an adapter-backed, provider-neutral contract is required.

Operations

OperationPurposeRequired inputsOutputs
notifier.sendSend a message to a channelchannel (unless a default is configured), textmessage_id, channel
notifier.updateUpdate an existing messagechannel (unless a default is configured), message_id, textmessage_id
notifier.reactAdd an emoji reactionchannel (unless a default is configured), message_id, emojiok
notifier.uploadUpload a file when supported by the adapterchannel (unless a default is configured), filename, contentfile_id, optional permalink

All operations also accept the following optional inputs where applicable:

InputTypeDescription
backendstringAdapter runtime ID. If omitted, notifier.backend is used.
richobjectProvider-neutral rich payload passed unchanged to the adapter.
thread_idstringExisting conversation thread for send.
titlestringOptional upload title.

The facade validates inputs before delegation. backend must be a non-empty, undotted adapter ID and cannot be notifier. A channel is required unless a non-blank notifier.default_channel is configured; an explicitly blank channel is rejected.

Configuration

Configure the canonical facade at the top level of .awf/config.yaml:

notifier:
  backend: slack
  default_channel: "#builds"

An operation-level backend or channel overrides the configured default. The selected adapter must be installed and expose the matching short operation (send, update, react, or upload). AWF delegates, for example, notifier.send with backend: slack to slack.send.

The legacy notify.send provider has separate settings. See Plugin Configuration.

Workflow example

name: notify-review
version: "1.0.0"

inputs:
  - name: pr_url
    type: string
    required: true

states:
  initial: analyze

  analyze:
    type: agent
    provider: claude
    prompt: "Summarize the pull request: {{.inputs.pr_url}}"
    on_success: notify

  notify:
    type: operation
    operation: notifier.send
    inputs:
      text: "Review complete for {{.inputs.pr_url}}"
      rich:
        color: "#2da44e"
        fields:
          - name: status
            value: complete
    on_success: done

  done:
    type: terminal
    status: success

With the configuration above, the workflow sends through slack.send to #builds. To target another installed adapter for one operation, add backend: discord to that operation’s inputs.

Adapter requirements

An adapter plugin uses its runtime ID as the backend name and exposes short operation names. For example, a slack adapter should provide slack.send, slack.update, and slack.react; slack.upload is optional. Adapter-specific payload translation belongs inside the adapter, while rich remains unchanged at the notifier boundary.

If an adapter or operation is unavailable, AWF reports the requested qualified operation and the sorted list of discovered backend IDs. Adapter errors and caller cancellation are propagated without replacing the caller’s context.

View original on GitHub