Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

Modify slack webhook url validation to allow workflow (#6041) (#6042)

Mab91c581823627
diff --git a/api/core/tools/provider/builtin/slack/tools/slack_webhook.py b/api/core/tools/provider/builtin/slack/tools/slack_webhook.py
index 18e4eb86c8a..f47557f2ef5 100644
--- a/api/core/tools/provider/builtin/slack/tools/slack_webhook.py
+++ b/api/core/tools/provider/builtin/slack/tools/slack_webhook.py
@@ -20,7 +20,7 @@ class SlackWebhookTool(BuiltinTool):
webhook_url = tool_parameters.get('webhook_url', '')
- if not webhook_url.startswith('https://hooks.slack.com/services/'):
+ if not webhook_url.startswith('https://hooks.slack.com/'):
return self.create_text_message(
f'Invalid parameter webhook_url ${webhook_url}, not a valid Slack webhook URL')