insights.message

Prev Next

Description

Toggles a message insight that persists for the lifetime of an app.


Input Parameters

Name Type Required Description
key Text Yes Unique identifier for insight
on Boolean Yes Visibility toggle (true = show, false = hide)
[category] Text No Category to group insight within
[message] Text No Insight message

Returns

No return value.


Examples

// show a message insight to the user
ai.insights.message("insight1", true, "Testing", "Consider echo.");
JavaScript
// hide (remove) a message insight
ai.insights.message("insight1", false);
JavaScript

Remarks

Use this function to display message-based insights to an attached intelligence experience.

Tip

Dr. Know products support insights using an Insights Panel.