Loading...
Loading...
Slack Webhook for posting messages. Use when user says "post to Slack", "Slack webhook", or "send Slack notification".
npx skill4agent add vm0-ai/vm0-skills slack-webhook/tmp/slack_request.json{
"text": "Hello, world."
}curl -X POST $SLACK_WEBHOOK_URL -H "Content-type: application/json" -d @/tmp/slack_request.json/tmp/slack_request.json{
"text": "*Bold* and _italic_ text"
}curl -X POST $SLACK_WEBHOOK_URL -H "Content-type: application/json" -d @/tmp/slack_request.json/tmp/slack_request.json{
"text": "Check <https://example.com|this link>"
}curl -X POST $SLACK_WEBHOOK_URL -H "Content-type: application/json" -d @/tmp/slack_request.json/tmp/slack_request.json{
"text": "New review submitted",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "Danny left the following review:"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "<https://example.com|Overlook Hotel>\n:star:\nDoors had too many axe holes."
}
}
]
}curl -X POST $SLACK_WEBHOOK_URL -H "Content-type: application/json" -d @/tmp/slack_request.json/tmp/slack_request.json{
"text": "Deployment status",
"blocks": [
{
"type": "section",
"fields": [
{
"type": "mrkdwn",
"text": "*Environment:*\nProduction"
},
{
"type": "mrkdwn",
"text": "*Status:*\nSuccess"
}
]
}
]
}curl -X POST $SLACK_WEBHOOK_URL -H "Content-type: application/json" -d @/tmp/slack_request.json| Syntax | Result |
|---|---|
| bold |
| italic |
| |
| |
| newline |
| hyperlink |
| emoji |
!curl -s -X POST $SLACK_WEBHOOK_URL -H "Content-type: application/json" -d @- << 'EOF'
{"text":"Deploy completed! :rocket:"}
EOFokinvalid_payloadno_texttextno_servicechannel_not_foundchannel_is_archivedaction_prohibitedslack