chaskiq / chaskiq

A full featured Live Chat, Support & Marketing platform, alternative to Intercom, Drift, Crisp, etc from cience.com
https://chaskiq.io
Other
3.11k stars 453 forks source link

Slack Link Parsing Incorrect #274

Open Technopope opened 3 years ago

Technopope commented 3 years ago

Hi there,

Currently with the Slack Bot, if you post a link as a reply such as - https://www.example.com It will show up on chat as <https://www.example.com>, which basically beats the purpose of sending a link in a response to the customer.

However, according to this https://api.slack.com/reference/surfaces/formatting#automatic-parsing__disabling-automatic-parsing and this https://api.slack.com/reference/block-kit/composition-objects#text-object.

If we change the type to mrkdwn and add a new field verbatim to true, Slack should stop any pre-processing of the links, sending the URL's as it is, and we can also probably send Hyperlinked Text.

These changes can be made into the - app/services/message_apis/slack.rb and spec/controllers/api/v1/hooks/slack_spec.rb, in the ruby app.

michelson commented 3 years ago

thanks I will check this