Text paragraph

The TextParagraph widget displays a paragraph of text with optional simple HTML formatting. For example:

  • Display bold, underlined, or italicized text with HTML <b>, <u>, <i> tags.
  • Link to websites with HTML <a href="https://www.google.com">hyperlinks</a>.
  • Add some color with HTML <font color="#ea9999">font tags</font>.

Design and preview cards with the Card Builder.

Open the Card Builder

Each TextParagraph widget renders as a new paragraph, and can be thought of as similar to an HTML <p> tag.

The following is a card consisting of two TextParagraph widgets used to display two paragraphs with simple HTML formatting:

Format text in a TextParagraph widget

The TextParagraph widget supports simple text HTML formatting. When setting the text content of these widgets, just include the corresponding HTML tags. For more information about which HTML tags are supported, see Card text formatting.

JSON representation and fields

JSON representation
  "text": string


The text that's shown in the widget.


When a Google Chat app or card returns an error, the Chat interface surfaces a message saying "Something went wrong." or "Unable to process your request." Sometimes the Chat UI doesn't display any error message, but the Chat app or card produces an unexpected result; for example, a card message might not appear.

Although an error message might not display in the Chat UI, descriptive error messages and log data are available to help you fix errors when error logging for Chat apps is turned on. For help viewing, debugging, and fixing errors, see Troubleshoot and fix Google Chat errors.