Loading...
Loading...
Send Slack messages via incoming webhook. Use for notifications, alerts, and status updates to Slack channels.
npx skill4agent add winsorllc/upgraded-carnival slack-notifyAGENT_LLM_SLACK_WEBHOOK_URLconst { sendSlackMessage } = require('./index.js');
// Simple message
await sendSlackMessage('Hello from PopeBot!');
// Formatted message with blocks
await sendSlackMessage('Job Complete', {
blocks: [
{
type: 'header',
text: { type: 'plain_text', text: '🎉 Task Completed' }
},
{
type: 'section',
text: { type: 'mrkdwn', text: 'The job finished successfully in *5 minutes*.' }
},
{
type: 'actions',
elements: [
{
type: 'button',
text: { type: 'plain_text', text: 'View Logs' },
url: 'https://example.com/logs'
}
]
}
]
});
// Thread reply
await sendSlackMessage('Update on above', { thread_ts: '1234567890.123456' });<@USER_ID>#channel