Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slack workflows generate a different type of webhook URL #891

Open
foundinblank opened this issue Jun 22, 2023 · 5 comments
Open

Slack workflows generate a different type of webhook URL #891

foundinblank opened this issue Jun 22, 2023 · 5 comments
Labels

Comments

@foundinblank
Copy link

馃摚 Notification Service(s) Impacted
Slack

馃悶 Describe the bug
If you use Slack's Workflow Builder tool, there's a Webhook option. However, if you do this, it generates a webhook URL that is completely different than what apprise expects:

https://hooks.slack.com/workflows/{token_1}/{token_2/{token_3}/{token_4}

Seems to me that the Slack service in apprise needs to be updated to handle this new format...

CleanShot 2023-06-22 at 1 21 36@2x CleanShot 2023-06-22 at 1 22 42@2x
@caronc
Copy link
Owner

caronc commented Jun 22, 2023

I didn't know this, thanks for sharing. I wonder if the payload changed as well?

@foundinblank
Copy link
Author

I don't know if the payload's shape changed, but the workflow gives you an option to define incoming variables in the payload to be used in other workflow steps.

@caronc
Copy link
Owner

caronc commented Jun 24, 2023

I don't think workflows is where you want to be. I've had time to play around. You just need to generate a straight webhook; see wiki docs here. Workflows are for triggers to take in effect after something happens in the channel. someone says hi... your account just automatically says hi back (whether you're there or not).

In summary:

  1. You want to create a bot or app

Apprise can then ingest this data and send notifications for you.

@caronc caronc added question and removed bug labels Jun 24, 2023
@foundinblank
Copy link
Author

The webhook functionality in Slack Workflows functions like any regular webhook; the webhook is meant to trigger the workflow. I can set up a workflow with a webhook triggering it, and trigger that by curl $webhook_url.

CleanShot 2023-06-28 at 2 11 15@2x

@glsdown
Copy link

glsdown commented Jun 29, 2023

Just to add that workflows are built so they can be triggered by a webhook. You can see more in the Slack documentation on it. So I think the main point here is that the webhook format used to trigger workflows is different to what apprise is expecting. I believe it's a relatively new thing for Slack to support webhooks to trigger workflows, but it's something we are very keen to make use of.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants