'How to insert RichLink (Chip Block) in Google Docs using Google App Script

enter image description here

Google Docs has recently introduced a feature where we can refer to

  • Date
  • Person
  • Google Drive Document

in the form of a Chip Block (as shown in the picture above)

I am trying to generate such chip block using Google App Script.

Rich Link Documentation does not have any code snippet or method to add a Rich Link inside a document.

Document Service page also doesn't have detail regarding how to insert a Rich Link.

I wonder whether the feature is not yet implemented in the Google App Script Api



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source