Lewati ke konten utama

Integrations

Your TIER 1 meeting runs daily at 08:00 in the Brussels plant. When a deviation is escalated to TIER 2, the Production Manager needs an immediate Slack notification. When an action item is overdue, the Engineering channel in Microsoft Teams needs an Adaptive Card with a direct link to the item. ProBeya integrations deliver rich, formatted notifications to Slack and Microsoft Teams channels in real time, keeping your operational teams informed without requiring them to have ProBeya open.

Integrations vs. Webhooks: Choosing the Right Approach​

CriterionIntegrations (Slack/Teams)Webhooks (Generic HTTP)
Output formatRich formatted messages (Block Kit / Adaptive Cards)Raw JSON payload
TargetSlack channels, Teams channelsAny HTTP endpoint
AuthenticationPlatform webhook URLHMAC-SHA256 signature
Delivery guaranteeFire-and-forget (errors logged, not retried)Logged with retry (auto-disable after 10 failures)
Delivery logBasic event logFull delivery log with HTTP status codes
ConfigurationPlatform + events + webhook URLEvents + endpoint URL + signing secret
Best forTeam notifications, meeting alertsSystem integration, ESB, SIEM
Recommendation

Use Integrations for human-readable notifications to communication channels. Use Webhooks for machine-to-machine event processing. For a complete event-driven architecture, configure both: integrations for team awareness, webhooks for system automation.

Supported Platforms​

PlatformTypeMessage FormatAuthentication
SlackslackBlock Kit (sections, fields, action buttons)Incoming Webhook URL
Microsoft TeamsteamsAdaptive Cards (text blocks, fact sets, columns)Incoming Webhook URL

Supported Events​

Select which events trigger notifications. At least one event must be selected per integration:

EventDescriptionTIER Meeting Context
item.createdA new item is added to a boardNew issue raised during TIER 1 meeting
item.status_changedAn item's status column is updatedAction progressed from "Working" to "Done"
action.createdA new action is createdNew CAPA or corrective action assigned
action.completedAn action is marked as completeAction closed -- visible in next TIER review
action.escalatedAn action is escalated to a higher tierTIER 1 action escalated to TIER 2 -- alerts the next-level manager
comment.createdA new comment is posted on an itemCollaboration update visible to the channel
kpi.threshold_breachedA KPI crosses its warning/alert thresholdOEE dropped below target -- triggers investigation
audit.completedAn audit checklist is completedGemba walk or 5S audit results posted

Setting Up an Integration​

Slack Setup​

  1. In Slack, navigate to your workspace's App Directory and search for Incoming Webhooks.
  2. Click Add to Slack and select the target channel (e.g., #tier1-brussels).
  3. Copy the generated Webhook URL.
  4. In ProBeya, navigate to Settings > Integrations.
  5. Click Create Integration.
  6. Select Slack as the platform.
  7. Enter a name (e.g., "TIER 1 Brussels - Escalation Alerts").
  8. Paste the webhook URL from Slack.
  9. Select the events to subscribe to.
  10. Click Save.

Microsoft Teams Setup​

  1. In Teams, navigate to the target channel and click More options (...) > Connectors.
  2. Search for Incoming Webhook and click Configure.
  3. Name the connector (e.g., "ProBeya Alerts") and copy the generated URL.
  4. In ProBeya, navigate to Settings > Integrations.
  5. Click Create Integration.
  6. Select Teams as the platform.
  7. Enter a name and paste the webhook URL from Teams.
  8. Select the events to subscribe to.
  9. Click Save.

Notification Message Format​

Both platforms receive messages in their native rich format with consistent information:

FieldDescriptionExample
Event typeWhat happened"Action Escalated"
Entity nameThe affected item or action"Deviation - Line 3 OOS Event"
ActorWho triggered the event"Marie Dupont"
TimestampWhen it happened"2026-04-13 08:15 CET"
Direct linkURL back to the item in ProBeyahttps://acme.probeya.com/...

Slack Block Kit Example​

Messages use Slack Block Kit with sections, fields, and context blocks. The formatActionCreated helper generates consistent, scannable notifications with color-coded severity indicators.

Teams Adaptive Card Example​

Messages use Adaptive Cards with structured layout, colors, and links. Teams-specific formatting is handled by the formatActionCreated Teams helper, producing cards that render well on desktop, mobile, and tablet.

Enterprise Notification Architecture​

Pattern 1: TIER Meeting Escalation Chain​

TIER 1 Board → action.escalated → Slack #tier1-brussels
TIER 2 Board → action.escalated → Slack #tier2-brussels + Teams "Site Leadership"
TIER 3 Board → action.escalated → Teams "Executive Team" + Email via Webhook → PagerDuty

Create multiple integrations with different event filters to route notifications through the escalation hierarchy.

Pattern 2: Cross-Site KPI Alerting​

Brussels KPIs → kpi.threshold_breached → Teams "Brussels Operations"
Dublin KPIs → kpi.threshold_breached → Teams "Dublin Operations"
Singapore KPIs → kpi.threshold_breached → Slack #apac-operations
↓
All sites → kpi.threshold_breached → Teams "Global OpEx"

Pattern 3: Quality Event Notification​

Audit completion → audit.completed → Slack #qa-team
Action creation → action.created → Teams "Quality Managers"
Action overdue → action.escalated → Slack #qa-escalations + PagerDuty via Webhook

Managing Integrations​

Once connected, you can:

OperationDescriptionImpact
ConfigureUpdate name, webhook URL, or event subscriptionsNo downtime; changes apply to next event
ToggleEnable or disable without deletingDisabled integrations retain their configuration
TestSend a synthetic test messageVerifies URL reachability and message format
DeletePermanently remove (hard delete, not recoverable)All configuration lost

Integration Lifecycle​

StateDescription
ActiveIntegration receives formatted notifications for matching events
DisabledManually toggled off by admin; no notifications sent
DeletedPermanently removed from the database

Workspace-Level Routing​

Integrations are currently configured at the organization level. Each integration receives events for all boards and projects within the organization. To route notifications to different channels:

  • Create multiple integrations with different event filters.
  • Use event type granularity to separate escalation alerts from routine notifications.
  • Name integrations clearly (e.g., "TIER 1 Brussels - Escalations Only" vs. "All Sites - KPI Alerts").

Security​

  • All integration records are scoped to the current organization via organizationId filtering.
  • Webhook URLs are validated as proper URLs before storage.
  • Integration CRUD operations require an authenticated user with an active organization context.
peringatan

Webhook URLs grant the ability to post messages to your Slack or Teams channels. Treat them as secrets:

  • Do not share them outside your admin team.
  • Do not commit them to source control.
  • If a URL is compromised, revoke it in the Slack/Teams admin console and create a new one.

Integration Configuration Reference​

FieldTypeConstraintsDescription
typeEnumslack or teamsTarget messaging platform
nameString1--200 charactersHuman-readable label for identification
webhookUrlStringValid URLThe platform's incoming webhook URL
eventsString[]At least one requiredArray of subscribed event types
isEnabledBooleanDefault: trueWhether the integration is currently active

Recovery Procedures​

ScenarioResolution
Slack webhook URL revokedCreate a new Incoming Webhook in Slack, update the URL in ProBeya Settings > Integrations.
Teams connector expiredReconfigure the Incoming Webhook connector in Teams, update the URL in ProBeya.
Notifications not arrivingUse the Test button to verify reachability. Check if the integration is enabled. Verify the event types match.
Too many notifications overwhelming a channelNarrow the event subscriptions (e.g., only escalations instead of all actions). Create separate integrations for different channels.
Messages showing as plain text in TeamsVerify the connector type is set to teams (not slack). Teams requires Adaptive Card format.

Best Practices​

  • Create separate integrations for different notification purposes (escalation vs. routine).
  • Use descriptive names that identify the site, TIER level, and purpose.
  • Test each integration after creation to verify the webhook URL and message format.
  • Review and clean up stale integrations quarterly -- unused integrations waste notification bandwidth.
  • Combine integrations with Webhooks for a complete event-driven architecture: integrations for team awareness, webhooks for system automation.
  • For GxP compliance, document which events trigger which channel notifications in your system design specification.
  • Webhooks -- Generic outbound webhooks for machine-to-machine integration.
  • Connectors -- Bidirectional data sync with SAP, TrackWise, and other pharma systems.
  • API Keys -- Programmatic pull-based access for custom integrations.
  • Audit Log -- Integration events are logged for compliance.