An introduction to Slack applications, chatbots, and chatops. Learn the basics of Slack application development including features like incoming webhooks, bot users, events API, slash commands, Slack APIs, RTM API, and some best practices.
HTTP requests with a JSON payload curl -X POST -H 'Content-type: application/json' \ --data '{"text":"This is a line of text.\nAnd this is another one."}' \ https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXX XXXXXXXXX
action URL would receive a payload of JSON You receive: • the callback_id you set when creating the message • the specific name of the clicked button • and the corresponding value of that same clicked button
Call you with HTTPS requests (Push subscription) Subscribe to only what you want If the RTM API is a fire hose, the Events API is a watering can — easy to wield and useful
• read: Reading the full information about a single resource. • write: Modifying the resource in any way e.g. creating, editing, or deleting. • history: Accessing the message archive of channels, DMs, or private channels.
Time Messaging API • New Conversations API (Part of Web API) Public channels, private channels, DMs... They are all conversations! • SCIM API The Slack SCIM API is used by SSO partners to help provision and manage user accounts and groups. Only available on the Plus plan and Slack Enterprise Grid
command or button within 3000 milliseconds If your execution takes more time; • Return the 200 OK response immediately • Use response_url or Web API to send your response
Slack Developer Kit for Python • Slack Developer Kit for Hubot • Botkit • Microsoft Bot Framework • Widely-used open source libraries available for a lot of languages