Skip to content

Latest commit

 

History

History

slack

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
title description integrations categories
Slack sample
Samples using Slack APIs
slack
Samples

Slack Sample

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.

How It Works

  1. Listen for Slack events such as mentions, slash commands, new messages, edited messages, and emoji reactions.
  2. Process the event data to extract relevant information (e.g., user, message, or action details).
  3. Send responses or updates messages in Slack channels or threads based on the event type.

Cloud Usage

  1. Initialize your connection with Slack
  2. Deploy project

Trigger Workflow

  • 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.

Self-Hosted Deployment

Follow these detailed instructions to deploy the project on a self-hosted server.