Enterprise Governance for Multi-Platform Agents
One governance layer across every channel. Consistent PII protection and compliance receipts whether your agent runs on Discord, Slack, Teams, or custom platforms.
Add Tork to your AstrBot project.
npm install @torknetwork/node-sdkRegister Tork as a governance plugin in your AstrBot config.
// astrbot.config.ts
import { TorkPlugin } from '@torknetwork/node-sdk/astrbot';
export default {
plugins: [
TorkPlugin({
apiKey: process.env.TORK_API_KEY,
redactPii: true,
generateReceipts: true,
}),
],
};Tork governance applies uniformly across all AstrBot channels.
# Same governance on every platform
astrbot deploy --channels discord,slack,teamsimport { AstrBot } from 'astrbot';
import { TorkClient } from '@torknetwork/node-sdk';
const tork = new TorkClient({
apiKey: process.env.TORK_API_KEY,
config: {
redactPii: true,
generateReceipts: true,
language: 'en',
},
});
const bot = new AstrBot({
name: 'enterprise-agent',
channels: ['discord', 'slack', 'teams'],
});
// Universal governance middleware — runs on ALL channels
bot.useGlobal(async (message, channel, next) => {
// Govern inbound message
const inbound = await tork.govern(message.content);
if (inbound.piiDetected.length > 0) {
console.log(`[${channel}] PII redacted: ${inbound.piiDetected.join(', ')}`);
message.content = inbound.governedText;
}
// Process the message
const response = await next();
// Govern outbound response
const outbound = await tork.govern(response.content);
response.content = outbound.governedText;
// Attach receipt ID for audit trail
response.metadata = {
...response.metadata,
torkReceiptId: outbound.receiptId,
channel,
};
return response;
});
// Channel-specific compliance logging
bot.on('governed', (event) => {
console.log(`[${event.channel}] Receipt: ${event.receiptId}`);
console.log(`[${event.channel}] PII found: ${event.piiCount}`);
});
await bot.start();Embed a verifiable trust badge to prove your agent passes Tork governance checks.
<!-- AstrBot Multi-Platform Trust Badge -->
<a href="https://tork.network/badge/YOUR_BADGE_ID">
<img
src="https://tork.network/api/v1/badge/svg/YOUR_BADGE_ID"
alt="Tork Governed — AstrBot (Discord, Slack, Teams)"
/>
</a>Add independent governance in under 5 minutes. Free tier available.