Bot message formatting in Facebook Messenger
Thx again, Artur.
Unfortunately, just instructing the model to avoid using markdown won't work because I have one agent serving multiple channels and some of the channels need markdown (e.g., web chat) and others not (e.g., Messenger). So, architectually, formatting of content should not be done at the agent level but instead in the channel-specific modules, because each channel might have different formatting requirements... and I don't want a separate agent for each channel ;-)
Do you have any idea how to parse agent messages on a per channel level? This would be very useful not only to remove markdown that a certain channel does not understand but also to remove citations if you don't want them in a certain channel.