title | description | integrations | categories | ||
---|---|---|---|---|---|
Slack sample |
Samples using Slack APIs |
|
|
This sample project demonstrates AutoKitteh's 2-way integration with Slack.
The code file program.py
implements multiple entry-point
functions that are triggered by incoming Slack events, as defined in the
autokitteh.yaml
manifest file. These functions also
execute various Slack API calls.
Slack API documentation:
This project isn't meant to cover all available functions and events. It merely showcases a few illustrative, annotated, reusable examples.
- Listen for Slack events such as mentions, slash commands, new messages, edited messages, and emoji reactions.
- Process the event data to extract relevant information (e.g., user, message, or action details).
- Send responses or updates messages in Slack channels or threads based on the event type.
- Initialize your connection with Slack
- Deploy project
- Mention the Slack app in a message (e.g., "Hi @autokitteh") to trigger a response
- Interact with a Slack block element (e.g., click a button or select from a dropdown)
- Send a message or reply in a Slack channel
- Add a reaction (emoji) to a message in Slack
- Use a registered slash command (e.g.,
/autokitteh <channel name or ID>
)
Important
Self-hosted users who set up their Slack App using https://docs.autokitteh.com/integrations/slack/connection will have their commands registered as expected. If you set up your app differently, your registered commands may vary.
Note
Ensure the Slack app is added to the relevant channel for these events to trigger the workflow.
Follow these detailed instructions to deploy the project on a self-hosted server.