Skip to content
Formatting issues w...
 
Notifications
Clear all

Formatting issues with ChatGPT + callin.io

5 Posts
2 Users
0 Reactions
3 Views
Augusto_Alegre
(@augusto_alegre)
Posts: 3
Active Member
Topic starter
 

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.

image

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!

 
Posted : 04/06/2024 4:32 pm
Benjamin_from_Make
(@benjamin_from_make)
Posts: 35
Eminent Member
 

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.

 
Posted : 05/06/2024 8:51 pm
Augusto_Alegre
(@augusto_alegre)
Posts: 3
Active Member
Topic starter
 

Hello! That's a great suggestion.

Here's a look at the output from the HTTP module:

It's quite peculiar, especially since it's markdown.

 
Posted : 05/06/2024 9:21 pm
Benjamin_from_Make
(@benjamin_from_make)
Posts: 35
Eminent Member
 

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:

image

Therefore, in your mapping, consider adding a replacement, like this:

It should appear like this for you:

image

Please let me know the outcome.

Cheers,

Benjamin

 
Posted : 06/06/2024 6:09 am
Augusto_Alegre
(@augusto_alegre)
Posts: 3
Active Member
Topic starter
 

Hey Benjamin! That's fantastic, it worked perfectly! A very robust solution indeed. Thank you!

 
Posted : 10/06/2024 9:36 pm
Share: