CTA — Link in Comments

The LiSA Player generates a message whenever a link in the comments is clicked. This is particularly useful in native app environments, where opening a URL in a browser requires special handling.

This message is sent by the LiSA Player to the host app / environment.

Properties

Along with all standard CTA message properties, a Link in Comments message includes the following additional properties:

Name
Type
Description

auxiliaryData

Required.

The auxiliaryData property is an object that holds additional metadata related to a Call-to-Action. Please refer to AuxiliaryData for detailed information.

ctaType

Required.

comment

Legacy Properties

Name
Type
Description

action

Required.

click ⚠️ Please use messageType instead.

target

Required.

link ⚠️ Please use messageType instead.

url

Required.

The url field represents the destination or action associated with the CTA click event. Its value can vary based on customer implementation:

  • Standard URL: A direct link to an internal or external page (e.g., "https://example.com").

  • Serialized JSON Object: A structured representation of the action, allowing for more complex interactions — e.g.

⚠️ Please use auxiliaryData.url instead.


Type Definition

interface CommentCtaMessage extends Omit<
  CtaMessage,
  'auxiliaryData' | 'ctaType'
> {
  auxiliaryData: CommentCtaAuxiliaryData;
  ctaType: 'comment';
}

AuxiliaryData

Name
Type
Description

url

Required.

The url field represents the destination or action associated with the CTA click event. Its value can vary based on customer implementation:

  • Standard URL: A direct link to an internal or external page — e.g.

  • Object: A structured representation of the action, allowing for more complex interactions — e.g.

Examples

Standard URL

Object Structure

Last updated