Advanced5 min read

Set up conditional Slack notifications

Post to Slack only when confidence meets your threshold using fire_condition syntax.

By default, action tools fire every time an agent completes. With fire conditions, you can post to Slack only when the result meets your quality bar — high confidence and successful outcome. Lower-quality results get held for manual review instead of being posted automatically.

Step 1: Create a Slack incoming webhook

In Slack, go to Apps → Incoming Webhooks → Add to Slack. Pick the channel you want to post to. Copy the webhook URL. It looks like:

https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX

Step 2: Store it in Secret Vault

Go to Settings → Integrations → Secret Vault → Add secret. Name it SLACK_WEBHOOK. Paste the webhook URL as the value. Save.

Step 3: Add the Slack tool to an agent

In your team editor, click the tools icon on the final agent (typically the one that produces the summary output). Add Tool → Slack Message. Configure:

Webhook URL

{{secret.SLACK_WEBHOOK}}

Message body

*{{agent.title}}*

{{agent.output}}

_Confidence: {{agent.confidence}} | Status: {{agent.outcome}}_

Fire condition

outcome == "completed" AND confidence >= 0.85

How it behaves

When the agent finishes with outcome == "completed" and confidence >= 0.85, the Slack message is posted automatically. When confidence is lower (the agent flagged uncertainty or lacked data), the action is skipped and the run stays in your dashboard for manual review.

Tip:You can set a second Slack action with the condition confidence < 0.85 pointing to a different channel (e.g. #forge-review). High-quality results go to the main channel; uncertain results go to a review queue.
Set up conditional Slack notifications — Forge Guides — Forge