diff --git a/docs/content/docs/configuration/providers/slack.md b/docs/content/docs/configuration/providers/slack.md index e3565f6..b65828c 100644 --- a/docs/content/docs/configuration/providers/slack.md +++ b/docs/content/docs/configuration/providers/slack.md @@ -25,9 +25,10 @@ Go to your [Slack integrations](https://api.slack.com/apps). Create a Slack integration. After the creation go to ***Features > OAuth & Permissions*** and then ***Scopes > Bot Token Scopes***. Here you need to add this permission: `chat:write` to send messages. You can also add `channels:join`, so that your integration can join public channels independently (optional). -Go in this page to ***OAuth Tokens for Your Workspace > Bot User OAuth Token*** and copy this token. This token should -have this format: `xoxb-123456abcdef...` You can also add in ***Settings > Basic Information > Display Information*** a -bot image, description, background color and the shown name (not functional, only for design). +Go in this page to ***OAuth Tokens for Your Workspace > Bot User OAuth Token*** click "install to Workspace" and copy +this token. This token should have this format: `xoxb-123456abcdef...` You can also add in +***Settings > Basic Information > Display Information*** a bot image, description, background color and the shown name ( +not functional, only for design). ### Step 4 diff --git a/internal/service/domain_flow.go b/internal/service/domain_flow.go index e6f3c7c..56c1a06 100644 --- a/internal/service/domain_flow.go +++ b/internal/service/domain_flow.go @@ -164,7 +164,7 @@ func validateFlowRequest(flowRequest model.FlowRequest) error { if flowRequest.Target == "" { return fmt.Errorf("name is a required attribute") } - if flowRequest.MessageTemplateType == "text/plain" || flowRequest.MessageTemplateType == "text/html" { + if flowRequest.MessageTemplateType != "text/plain" && flowRequest.MessageTemplateType != "text/html" { return fmt.Errorf("message-template-type is a required attribute; only 'text/plain' or 'text/html' are valid") }