slackapi / deno-slack-sdk

SDK for building Run on Slack apps using Deno
https://api.slack.com/automation
MIT License
155 stars 27 forks source link

How to automatically trigger a workflow on app start/install using Slack CLI #205

Open despolov opened 1 year ago

despolov commented 1 year ago

Hello,

Im developing an app using the documentation and guides from api.slack.com using the "new way" with Slack CLI.

How can a workflow be automatically triggered when the app is installed for the first time or it is opened after the installation? For example I can give "Tempo" (timesheet app of Atlassian Corporation), where on app install, there is a greeting message which prompts the user to authenticate (screenshot attached for visual example). image

I want to achieve the same flow as the Tempo app, but cant find anything about this (auto triggering of workflows on app install/open) in the documentation.

filmaj commented 1 year ago

Hello! Are you trying to determine when your app is installed via the CLI by others, in workspaces you do not control?

despolov commented 1 year ago

You could say that. The app is in my team workspace and only there. Someone from my team can go in the apps section and choose to add it from here: image When the app is added in the "Apps" section below the "Direct messages" section I want to know that this has happened so I can trigger a workflow to authenticate the team member or just simply client.chat.postMessage

despolov commented 11 months ago

Hi,

Any updates on this?

filmaj commented 10 months ago

Sorry @despolov , no update here yet. I have raised this internally, and in general we acknowledge the current distribution limitations.