Hello community,
I've set up an automation that sends outputs from a Make a request module (which connects to a custom chatbot) to Slack using a Create message module.
My current hurdle is correctly formatting the AI-generated content from the module so that it's visually appealing for the end-user.
I've looked at other discussions on similar subjects, but none seem to address this specific situation where Slack is receiving AI-generated content in markdown or HTML format.
Here are some visuals of the automation:
This is how the output should appear:
I've experimented with the markdown option in Slack.
My initial attempt involved just connecting the two modules:
Subsequently, I tried using HTML to Markdown and Markdown to HTML, along with various combinations, but without success.
The only method that yielded a well-formatted output was using Gmail as the final module, which converts markdown to HTML. However, I haven't been able to replicate this functionality with Slack.
Thanks a lot for your assistance!
Hello!
Welcome to the callin.io community! We hope you enjoy your time here!
Could you please share a screenshot of the HTTP module's output so we can see its structure?
If the workaround I suggested isn't suitable, would it be possible to ask the AI to generate a response in a format that slack recognizes? Sometimes, AI models are aware of the expected formats and can utilize them.
Hi!
I performed a few tests, and it appears Slack only accepts a single asterisk for bold text (I haven't tested other formatting).
This results in:
Therefore, in your mapping, consider adding a replacement, like this:
It should appear like this for you:
Please let me know the outcome.
Cheers,
Benjamin
Hey Benjamin! That's fantastic, it worked perfectly! A very robust solution indeed. Thank you!