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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide some default behavior on Slack sink Kamelet #923

Closed
christophd opened this issue May 12, 2022 · 1 comment
Closed

Provide some default behavior on Slack sink Kamelet #923

christophd opened this issue May 12, 2022 · 1 comment

Comments

@christophd
Copy link
Contributor

The Slack sink Kamelet uses the Webhook API in Slack and this assumes some special Json format in the message body (e.g. {"text": "Hey, you've won a prize"}).

At the moment we expect the user of the Kamelet to provide this Slack specific Json body. I think we can add some default behavior into the Kamelet to automatically wrap the message body content (e.g. when plaintext message body is given) to auto generate the Slack Json format.

This would ease the use of this Kamelet a lot.

@christophd
Copy link
Contributor Author

sorry my bad. the underlying Camel component takes care of everything. so we can already provide the plain text to the Kamelet that gets posted to the Slack channel.

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

No branches or pull requests

1 participant