PipedreamHQ / pipedream

Connect APIs, remarkably fast. Free for developers.
https://pipedream.com
Other
8.32k stars 5.27k forks source link

Extend Slack Actions to support the Slack Bot app #4818

Closed dannyroosevelt closed 1 year ago

dannyroosevelt commented 1 year ago

And can we also enable polling triggers? Will need to investigate how to support instant triggers for the Slack Bot use case.

For the dev or QA team: are there specific actions that exist for Slack today that obviously will not work with a Slack Bot token? Or is it all specific to the included scopes?

jcortes commented 1 year ago

Observations

Hi @dannyroosevelt for what I've seen so far these are the only scopes that are not supported by Bot Token that are already implemneted as User Token in Pipedream's slack app

channels:write
dnd:write
stars:read
stars:write
users.profile:write
search:read

Also I saw that there is no equivalent scope in Bot Token but similar ones like

User Token Scope -> Bot Token Scope
chat:write:bot -> chat:write
chat:write:user -> chat:write
files:write:user -> files:write
jcortes commented 1 year ago

The following actions are not supported by the Bot Token

add-star
remove-star
complete-reminder
create-reminder
delete-reminder
list-reminders
get-reminder
find-message
kick-user
update-profile

And the action verify-slack-signature doesn't need to be supported because it doesn't use the token as a dependency

dannyroosevelt commented 1 year ago

Thanks for confirming, @jcortes!

Can you work on extending support for the actions that are supported? And potentially polling triggers as well?

jcortes commented 1 year ago

Hi @dannyroosevelt I've just pushed two sources

ghost commented 1 year ago

Not Receiving Events on both triggers image image

jcortes commented 1 year ago

Hi @Hassan-Abbas-SQA I couldn't reproduce. Can you give more details on your test please! Thanks

ghost commented 1 year ago

@jcortes i selected General as channel and then i sent messages to this channel but didn’t received the events

image
jcortes commented 1 year ago

Hi @Hassan-Abbas-SQA did you already send messages using slack_bot actions to general channel? you can either use send-message-private-channel, send-message-public-channel or send-group-message

ghost commented 1 year ago

@jcortes actions are not working for me what is these error for?

image image
jcortes commented 1 year ago

Hi @Hassan-Abbas-SQA about the first screenshot according to the docs seems like the name you are setting has unallowed special characters or upper case characters.

invalid_name_specials: Value passed for name contained unallowed special characters or upper case characters.

About the second one I think the bot should need a special plan where it is able to first create a group and then you can list them out with the options property, maybe in your case there is no group already created in your workspace.

jcortes commented 1 year ago

for the second case i have many groups like General but it is not showing

Are you sure? because according to the docs this feature is only available on paid plans

ghost commented 1 year ago

for the second case i have many groups like General but it is not showing

Are you sure? because according to the docs this feature is only available on paid plans

oops sorry i mistaken a channel with group

ghost commented 1 year ago

Failed

image image

image

image

Passed image

image image image image
ghost commented 1 year ago

@jcortes thanks man for the quick fix

image image

but the only New message in channel is not emitting events

ghost commented 1 year ago

@jcortes sorry i still can’t see any events image

ghost commented 1 year ago

TestPassed image