In Enhanced Chat (Messaging for In-App and Web) with Agentforce Service (formerly Service Cloud), certain symbols within message text are interpreted as Markdown. This article explains the overview, causes, and workarounds for scenarios where specific symbols result in unintended formatting (such as code blocks or broken links).
Enhanced Chat supports Markdown for message text formatting. This allows service rep and end-users (site customers) to format messages (links, bold/italics, lists, etc.) using specific symbols.
Note: While Markdown is interpreted based on standard specifications, the scope of support and appearance may vary depending on the environment or client (Web / In-App SDK, BYOC, CSS). This article covers "typical behavior."
Common Syntax: The following are examples of commonly used syntax (actual rendering may vary depending on the device used).
Links
Syntax: [Display Text](URL)
Example: [Salesforce](https://www.salesforce.com/)
Note: Phone number links are also possible. Example: [Call](tel:0123456789)
Bold / Italics
Bold
Italics
Lists (Bulleted / Numbered)
Bulleted
Numbered
Blockquotes
Syntax: > Quote
Common Inquiries and Workarounds:
1. Unintended "Code Block" (Framed/Grey Background) Display
Issue: The text is displayed inside a box or requires horizontal scrolling, even though a bulleted list was intended.
Cause: In Markdown, indentations at the beginning of a line (e.g., 4 or more half-width spaces) or deep indentations under a list may be interpreted as a "Code Block."
Workaround: Do not include unnecessary spaces at the beginning of a line or immediately after a list symbol (Standard: about one half-width space). If indentation is required for operational reasons, reduce the indentation amount or start a new line and write it as normal text.
2. Links Broken by Square Brackets [ ] in URLs
Issue: When sending a URL containing [ ] (e.g., id=[12345]), the URL is split midway and does not link correctly.
Cause: [ ] are interpreted as Markdown link syntax, so part of the URL is treated as syntax.
Workaround: Perform URL encoding to convert [ to %5B and ] to %5D before sending.
3. Masking Characters ***** Becoming Invisible or Unintentionally Emphasized
Issue: Continuous asterisks like ***** become invisible (blank) or result in unintended formatting.
Cause: Asterisks * are interpreted as Markdown emphasis or horizontal rules.
Workaround: Escape the characters using backslashes (e.g., \*\*\*\*\*).
・Release Notes: Markdown Supported for Agentforce Service Agent in Messaging for In-App and Web
・Salesforce Help: Customize the Enter or Return Key in Enhanced Chat for Web
・External Site: Basic Syntax | Markdown Guide005239312

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.