Issues related to two asterisks on WhatsApp API messages

provide feedback on the integration of the Gemini AI API with the WhatsApp API. Specifically, I would like to address an issue regarding text formatting when Gemini AI generates responses containing double asterisks (**).

Currently, when Gemini AI sends responses with double asterisks, the text formatting intended to bold or italicize words in WhatsApp does not work correctly. Instead of displaying bold or italicized text, the double asterisks appear as plain text, making the response look awkward. For example, what should appear as ๐—ฒ๐˜…๐—ฎ๐—บ๐—ฝ๐—น๐—ฒ ends up being displayed as ๐—ฒ๐˜…๐—ฎ๐—บ๐—ฝ๐—น๐—ฒ, which is not the desired outcome.

To address this issue, I suggest implementing a feature or configuration in Gemini AI that ensures:

  1. When WhatsApp API is connected to Gemini AI, any occurrence of double asterisks (**) in the text should automatically be converted to single asterisks (*). what should be ๐—ฒ๐˜…๐—ฎ๐—บ๐—ฝ๐—น๐—ฒ, instead becomes an ๐—ฒ๐˜…๐—ฎ๐—บ๐—ฝ๐—น๐—ฒ
  2. Ensure that formatting intended for bold or italic text remains consistent and correctly displayed in WhatsApp messages.

This adjustment would significantly improve the user experience by maintaining proper text formatting and avoiding the awkward display of double asterisks in WhatsApp messages.

Thank you for considering this feedback. I believe this enhancement will be beneficial for many users who integrate Gemini AI with WhatsApp API.

Welcome to the forums!

This is an interesting idea, but the Gemini API doesnโ€™t (and shouldnโ€™t) know what interface is being used to access it.

The Gemini API is a tool. How we use that tool is up to us.

If the markdown formatting from Gemini is an issue, it makes sense for you to write a library that reformats it in a way that is more friendly to WhatsApp or whatever formatting it supports. (Make it open source so others can use it too!)

On the other hand, I would agree that it would be great if we could force Gemini to use real plain-text instead of markdown.